Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Issue 2898423002: Reset scroll and scale while toggling "Request desktop site" (Closed)

Created:
3 years, 7 months ago by jaebaek
Modified:
3 years, 6 months ago
CC:
blink-reviews, chromium-reviews, Jinsuk Kim
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

This CL resets scroll and scale when a reload occurs because of toggling "Request desktop site". BUG=693877 Review-Url: https://codereview.chromium.org/2898423002 Cr-Commit-Position: refs/heads/master@{#479276} Committed: https://chromium.googlesource.com/chromium/src/+/4c2b2cf9b350fd155fd0c1b9159b5f5c9477ff94

Patch Set 1 #

Total comments: 2

Patch Set 2 : [WIP] Page is zoomed in while toggling "Request desktop site" #

Total comments: 1

Patch Set 3 : Reset page zoom while requesting desktop site #

Patch Set 4 : unit test update #

Patch Set 5 : WebView bug #

Patch Set 6 : WebView bug #

Total comments: 1

Patch Set 7 : WebView bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -9 lines) Patch
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 1 chunk +4 lines, -9 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
jaebaek
PTAL
3 years, 6 months ago (2017-05-25 02:49:17 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/2898423002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2898423002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1108 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1108: if (!frame_->GetSettings()->GetViewportMetaEnabled()) { Unfortunately, there are indeed side effects: ...
3 years, 6 months ago (2017-05-25 02:56:08 UTC) #5
jaebaek
https://codereview.chromium.org/2898423002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2898423002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1108 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1108: if (!frame_->GetSettings()->GetViewportMetaEnabled()) { On 2017/05/25 02:56:08, aelias wrote: > ...
3 years, 6 months ago (2017-05-25 04:10:34 UTC) #6
aelias_OOO_until_Jul13
It should be a one-time thing tied to the transition itself, whereas settings are persistent. ...
3 years, 6 months ago (2017-05-26 02:35:49 UTC) #7
jaebaek
I tested the normal reload, mobile -> RDS, and RDS -> mobile. It seems this ...
3 years, 6 months ago (2017-06-02 08:07:42 UTC) #8
aelias_OOO_until_Jul13
On 2017/06/02 at 08:07:42, jaebaek wrote: > One question here: when doing the normal reload ...
3 years, 6 months ago (2017-06-06 02:57:19 UTC) #9
aelias_OOO_until_Jul13
https://codereview.chromium.org/2898423002/diff/20001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2898423002/diff/20001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3319 third_party/WebKit/Source/web/WebViewImpl.cpp:3319: document->Loader()->GetHistoryItem()->SetDidSaveScrollOrScaleState(false); This seems reasonable to me. Could you add ...
3 years, 6 months ago (2017-06-06 02:57:30 UTC) #10
jaebaek
Oh my god .. I did not realize I must create a unit test :( ...
3 years, 6 months ago (2017-06-07 09:44:13 UTC) #11
aelias_OOO_until_Jul13
On 2017/06/07 at 09:44:13, jaebaek wrote: > Oh my god .. I did not realize ...
3 years, 6 months ago (2017-06-08 01:18:35 UTC) #12
jaebaek
PTAL
3 years, 6 months ago (2017-06-13 12:42:02 UTC) #21
aelias_OOO_until_Jul13
lgtm https://codereview.chromium.org/2898423002/diff/100001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2898423002/diff/100001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode4276 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:4276: // Reload the page and end up at ...
3 years, 6 months ago (2017-06-13 22:41:59 UTC) #22
aelias_OOO_until_Jul13
Please also fix patch description to remove [WIP] from title and subject line, and describe ...
3 years, 6 months ago (2017-06-13 22:43:05 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2898423002/120001
3 years, 6 months ago (2017-06-14 01:34:53 UTC) #27
commit-bot: I haz the power
3 years, 6 months ago (2017-06-14 03:42:10 UTC) #30
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/4c2b2cf9b350fd155fd0c1b9159b...

Powered by Google App Engine
This is Rietveld 408576698