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

Issue 1785953002: Ignore viewport meta tags when Request Desktop Site is enabled. (Closed)

Created:
4 years, 9 months ago by aelias_OOO_until_Jul13
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, dshwang, eae+blinkwatch, jam, nasko+codewatch_chromium.org, rwlbuis, sof, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ignore viewport meta tags when Request Desktop Site is enabled. This matches desktop Chrome, and it applies the default "min-width: 980px;" in viewportAndroid.css -- putting responsive pages into their desktop/tablet layout. The enableViewport/enableMetaViewport settings distinction had bit-rotted somewhat since they've always been the same value (in fact disabling the latter setting didn't actually drop support for it) so I needed to do some cleanup there as well. BUG=586286 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/5252baa9fbff3f1ffda51a4390cdf43070af22d7 Cr-Commit-Position: refs/heads/master@{#386313}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix layout tests #

Patch Set 3 : Fix more tests #

Total comments: 3

Patch Set 4 : Disable HandheldFriendlyMeta and MobileOptimizedMeta as well #

Total comments: 15

Patch Set 5 : Fix comment #

Patch Set 6 : Fix nasko@ code review comments #

Patch Set 7 : Call delegate() directly from NavigationControllerAndroid #

Total comments: 4

Patch Set 8 : Use std::set #

Total comments: 2

Patch Set 9 : Change loop style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -18 lines) Patch
M android_webview/native/aw_settings.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/content_startup_flags.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/navigation_controller_android.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_controller_android.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_controller_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_android.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/video-autoplay-experiment-modes.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/scrollbars/layout-viewport-scrollbars-hidden.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 45 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785953002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785953002/1
4 years, 9 months ago (2016-03-11 04:50:03 UTC) #3
aelias_OOO_until_Jul13
Hi bokan@, PTAL for initial review.
4 years, 9 months ago (2016-03-11 04:56:01 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/195245)
4 years, 9 months ago (2016-03-11 05:54:17 UTC) #8
bokan
lgtm. Media queries will still get the device's screen width in: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/css/MediaValues.cpp&sq=package:chromium&l=50&rcl=1457699457 I'm ok landing ...
4 years, 9 months ago (2016-03-11 20:34:36 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785953002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785953002/40001
4 years, 9 months ago (2016-03-12 01:57:53 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-12 04:39:25 UTC) #13
aelias_OOO_until_Jul13
Adding OWNERS: sievers@ for content/ rbyers@ for Source/core/ boliu@ for android_webview/ https://codereview.chromium.org/1785953002/diff/1/content/browser/android/content_startup_flags.cc File content/browser/android/content_startup_flags.cc (right): ...
4 years, 9 months ago (2016-03-14 20:14:30 UTC) #15
Rick Byers
core LGTM
4 years, 9 months ago (2016-03-14 20:18:58 UTC) #16
boliu
a_w rs lgtm
4 years, 9 months ago (2016-03-14 20:22:12 UTC) #17
johnme
Drive-by: this seems a good change. We didn't do this when first implementing RDS because ...
4 years, 9 months ago (2016-03-15 11:38:10 UTC) #19
aelias_OOO_until_Jul13
On 2016/03/15 at 11:38:10, johnme wrote: > Drive-by: this seems a good change. We didn't ...
4 years, 9 months ago (2016-03-15 18:39:27 UTC) #20
aelias_OOO_until_Jul13
https://codereview.chromium.org/1785953002/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1785953002/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode3137 third_party/WebKit/Source/core/dom/Document.cpp:3137: if (settings() && !settings()->viewportMetaEnabled() && viewportDescription.isMetaViewportType()) On 2016/03/15 at ...
4 years, 9 months ago (2016-03-15 19:14:15 UTC) #21
aelias_OOO_until_Jul13
https://codereview.chromium.org/1785953002/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1785953002/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode3137 third_party/WebKit/Source/core/dom/Document.cpp:3137: if (settings() && !settings()->viewportMetaEnabled() && viewportDescription.isMetaViewportType()) On 2016/03/15 at ...
4 years, 9 months ago (2016-03-15 19:29:26 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785953002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785953002/60001
4 years, 9 months ago (2016-03-15 19:29:52 UTC) #24
johnme
lgtm :)
4 years, 9 months ago (2016-03-15 19:36:22 UTC) #25
no sievers
+nasko https://codereview.chromium.org/1785953002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1785953002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode1571 content/browser/frame_host/navigation_controller_impl.cc:1571: delegate_->UpdateOverridingUserAgent(); Does passing this to the RWH here ...
4 years, 9 months ago (2016-03-15 20:00:05 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-15 21:49:09 UTC) #30
nasko
Sorry for the delay. I think the delegate way might be avoidable, which you already ...
4 years, 9 months ago (2016-03-18 21:05:26 UTC) #31
aelias_OOO_until_Jul13
https://codereview.chromium.org/1785953002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1785953002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode1571 content/browser/frame_host/navigation_controller_impl.cc:1571: delegate_->UpdateOverridingUserAgent(); On 2016/03/18 at 21:05:25, nasko (slow) wrote: > ...
4 years, 9 months ago (2016-03-18 22:49:18 UTC) #32
nasko
Apologies for the delay. This has slipped through the cracks with all the perf work ...
4 years, 9 months ago (2016-03-25 23:29:05 UTC) #33
no sievers
https://codereview.chromium.org/1785953002/diff/60001/content/public/browser/navigation_controller.h File content/public/browser/navigation_controller.h (right): https://codereview.chromium.org/1785953002/diff/60001/content/public/browser/navigation_controller.h#newcode494 content/public/browser/navigation_controller.h:494: virtual void UpdateOverridingUserAgent() = 0; On 2016/03/25 23:29:05, nasko ...
4 years, 8 months ago (2016-03-28 19:53:59 UTC) #34
aelias_OOO_until_Jul13
PTAL. nasko@, I addressed all your concerns. https://codereview.chromium.org/1785953002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1785953002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode1571 content/browser/frame_host/navigation_controller_impl.cc:1571: delegate_->UpdateOverridingUserAgent(); On ...
4 years, 8 months ago (2016-04-07 03:06:14 UTC) #35
nasko
Looks much better! Thanks for making these changes. Just a couple minor things. https://codereview.chromium.org/1785953002/diff/120001/content/browser/frame_host/navigation_controller_android.cc File ...
4 years, 8 months ago (2016-04-08 22:32:35 UTC) #36
aelias_OOO_until_Jul13
https://codereview.chromium.org/1785953002/diff/120001/content/browser/frame_host/navigation_controller_android.cc File content/browser/frame_host/navigation_controller_android.cc (right): https://codereview.chromium.org/1785953002/diff/120001/content/browser/frame_host/navigation_controller_android.cc#newcode15 content/browser/frame_host/navigation_controller_android.cc:15: #include "content/public/browser/render_view_host.h" On 2016/04/08 at 22:32:35, nasko (very slow ...
4 years, 8 months ago (2016-04-08 23:31:36 UTC) #37
nasko
LGTM with a couple of style comments. https://codereview.chromium.org/1785953002/diff/140001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1785953002/diff/140001/content/browser/web_contents/web_contents_impl.cc#newcode4900 content/browser/web_contents/web_contents_impl.cc:4900: for (FrameTreeNode* ...
4 years, 8 months ago (2016-04-09 00:02:27 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785953002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785953002/160001
4 years, 8 months ago (2016-04-09 23:39:54 UTC) #41
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-10 01:18:12 UTC) #43
commit-bot: I haz the power
4 years, 8 months ago (2016-04-10 01:19:09 UTC) #45
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/5252baa9fbff3f1ffda51a4390cdf43070af22d7
Cr-Commit-Position: refs/heads/master@{#386313}

Powered by Google App Engine
This is Rietveld 408576698