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

Issue 2443753002: Count presence of viewport tag as mobile-friendly

Created:
4 years, 2 months ago by wychen
Modified:
4 years, 1 month ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Count presence of viewport tag as mobile-friendly BUG=658416

Patch Set 1 #

Total comments: 2

Patch Set 2 : use matchesHeuristicsForGpuRasterization instead #

Total comments: 2

Patch Set 3 : fix naming #

Total comments: 2

Patch Set 4 : default false #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -64 lines) Patch
M third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp View 1 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ViewportDescription.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ViewportDescription.cpp View 1 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 3 chunks +3 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ViewportTest.cpp View 1 2 3 chunks +9 lines, -18 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
wychen
PTAL
4 years, 1 month ago (2016-10-24 21:18:19 UTC) #2
aelias_OOO_until_Jul13
https://codereview.chromium.org/2443753002/diff/1/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/2443753002/diff/1/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode785 third_party/WebKit/Source/core/frame/VisualViewport.cpp:785: return mainFrame()->view()->layoutSize().width() <= m_size.width() || Hmm, I think we ...
4 years, 1 month ago (2016-10-24 21:48:59 UTC) #3
wychen
https://codereview.chromium.org/2443753002/diff/1/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/2443753002/diff/1/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode785 third_party/WebKit/Source/core/frame/VisualViewport.cpp:785: return mainFrame()->view()->layoutSize().width() <= m_size.width() || On 2016/10/24 21:48:59, aelias ...
4 years, 1 month ago (2016-10-24 23:18:52 UTC) #5
wychen
aelias@, does this look better?
4 years, 1 month ago (2016-10-28 01:02:35 UTC) #8
aelias_OOO_until_Jul13
https://codereview.chromium.org/2443753002/diff/40001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2443753002/diff/40001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3359 third_party/WebKit/Source/web/WebViewImpl.cpp:3359: m_viewportSpecifiedByAuthor = true; Hmm, I realized this line here ...
4 years, 1 month ago (2016-10-28 01:11:51 UTC) #9
wychen
https://codereview.chromium.org/2443753002/diff/40001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2443753002/diff/40001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3359 third_party/WebKit/Source/web/WebViewImpl.cpp:3359: m_viewportSpecifiedByAuthor = true; On 2016/10/28 01:11:51, aelias wrote: > ...
4 years, 1 month ago (2016-10-28 21:21:38 UTC) #11
aelias_OOO_until_Jul13
lgtm modulo comment https://codereview.chromium.org/2443753002/diff/60001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2443753002/diff/60001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode420 third_party/WebKit/Source/web/WebViewImpl.cpp:420: m_isDesktopSiteOnMobile(true), Hmm, this has a slight ...
4 years, 1 month ago (2016-10-28 21:43:46 UTC) #13
wychen
There are a few tests about disambiguation and zoom in failing when switching from shouldDisableDesktopWorkarounds() ...
4 years, 1 month ago (2016-10-28 23:07:36 UTC) #14
aelias_OOO_until_Jul13
On 2016/10/28 at 23:07:36, wychen wrote: > There are a few tests about disambiguation and ...
4 years, 1 month ago (2016-10-29 00:23:53 UTC) #15
wychen
On 2016/10/29 00:23:53, aelias wrote: > On 2016/10/28 at 23:07:36, wychen wrote: > > There ...
4 years, 1 month ago (2016-11-02 04:49:09 UTC) #16
aelias_OOO_until_Jul13
4 years, 1 month ago (2016-11-02 06:32:33 UTC) #17
On 2016/11/02 at 04:49:09, wychen wrote:
> According to #c6, using presence of meta viewport wouldn't work.
> https://bugs.chromium.org/p/chromium/issues/detail?id=658416#c6
> I think we have to use more fine-grained rules, more or less like ps1.

OK, you can try a more fine-grained rule, but let's keep it simple.  Maybe you
could use the existing criteria, but with an exclusion if an explicit fixed
width is specified in the viewport tag which is >= 980 (which is the magic
number we layout desktop sites to in non-viewport-tag mode).

> 
> Disambiguation and pinch-zoom should follow the same rule as Reader Mode
> mobile-friendliness signal. I'm not so sure about GPU rasterization though.

The exclusion for GPU rasterization is mainly because GPU rasterization
performance is currently pretty bad with pinch zoom, and you need to pinch zoom
a lot on desktop sites.  So I think it's OK to use the same rule since in all
cases we're detecting wide desktop sites more accurately.

Powered by Google App Engine
This is Rietveld 408576698