Chromium Code Reviews| Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp |
| diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
| index 88a37090d94e7a300e77612224a34c69260eede3..1b6492b2c31aefcf2ac1a872c454ff793dbc7432 100644 |
| --- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
| +++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
| @@ -1105,6 +1105,10 @@ void FrameLoader::RestoreScrollPositionAndViewStateForLoadType( |
| bool should_restore_scroll = |
| history_item->ScrollRestorationType() != kScrollRestorationManual; |
| bool should_restore_scale = history_item->PageScaleFactor(); |
| + if (!frame_->GetSettings()->GetViewportMetaEnabled()) { |
|
aelias_OOO_until_Jul13
2017/05/25 02:56:08
Unfortunately, there are indeed side effects:
1. O
jaebaek
2017/05/25 04:10:34
Does it mean that I must add a parameter which let
|
| + should_restore_scroll = false; |
| + should_restore_scale = false; |
| + } |
| // This tries to balance: |
| // 1. restoring as soon as possible |