RESOLVED FIXED 201441
results.webkit.org: Fix mobile vs desktop mode
https://bugs.webkit.org/show_bug.cgi?id=201441
Summary results.webkit.org: Fix mobile vs desktop mode
Jonathan Bedard
Reported 2019-09-03 17:15:15 PDT
We are too aggressive about jumping into mobile mode, desktops should never ever mobile and iPad should only revert to mobile if they're in portrait mode.
Attachments
Patch (2.77 KB, patch)
2019-09-03 17:19 PDT, Jonathan Bedard
no flags
Patch (3.13 KB, patch)
2019-09-04 11:27 PDT, Jonathan Bedard
no flags
Patch (5.46 KB, patch)
2019-09-04 15:24 PDT, Jonathan Bedard
no flags
Patch for landing (5.46 KB, patch)
2019-09-04 17:02 PDT, Jonathan Bedard
no flags
Jonathan Bedard
Comment 1 2019-09-03 17:19:11 PDT
Jonathan Bedard
Comment 2 2019-09-04 11:27:34 PDT
Zhifei Fang
Comment 3 2019-09-04 14:01:55 PDT
Comment on attachment 377990 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377990&action=review > Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:108 > +@media screen and (min-device-width: 768px) { This means we tied to the whole screen width, so on desktop, the small window browser will never trigger mobile mode, do we really want this ?
Jonathan Bedard
Comment 4 2019-09-04 14:14:40 PDT
(In reply to Zhifei Fang from comment #3) > Comment on attachment 377990 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=377990&action=review > > > Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:108 > > +@media screen and (min-device-width: 768px) { > > This means we tied to the whole screen width, so on desktop, the small > window browser will never trigger mobile mode, do we really want this ? In my opinion, yes. I kept seeing the 'mobile' mode triggering when resizing windows on my laptop. The size I needed to make the window to where I actually could have used mobile mode was so small, it wasn't really useful.
Zhifei Fang
Comment 5 2019-09-04 14:23:46 PDT
(In reply to Jonathan Bedard from comment #4) > (In reply to Zhifei Fang from comment #3) > > Comment on attachment 377990 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=377990&action=review > > > > > Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:108 > > > +@media screen and (min-device-width: 768px) { > > > > This means we tied to the whole screen width, so on desktop, the small > > window browser will never trigger mobile mode, do we really want this ? > > In my opinion, yes. I kept seeing the 'mobile' mode triggering when resizing > windows on my laptop. The size I needed to make the window to where I > actually could have used mobile mode was so small, it wasn't really useful. This could be wrong for iPad, for spilt screen. User may want something like this: +-----------------+ | | | | | | | Desktop |mobile| | | | | | | +-----------------+ For now it seems useless because we have a long config name, however the webkit.css should design for general usage, so that when next project reuse it, it can provide those benefits.
Jonathan Bedard
Comment 6 2019-09-04 15:24:21 PDT
Jonathan Bedard
Comment 7 2019-09-04 15:25:25 PDT
The newly uploaded patch removes the tablet/desktop distinction, so that except for some font sizes, tablets are treated exactly the same as desktops.
Zhifei Fang
Comment 8 2019-09-04 15:25:40 PDT
unofficially r=me
Aakash Jain
Comment 9 2019-09-04 16:34:25 PDT
rs=me
Jonathan Bedard
Comment 10 2019-09-04 17:02:59 PDT
Created attachment 378029 [details] Patch for landing
WebKit Commit Bot
Comment 11 2019-09-04 17:47:37 PDT
Comment on attachment 378029 [details] Patch for landing Clearing flags on attachment: 378029 Committed r249506: <https://trac.webkit.org/changeset/249506>
WebKit Commit Bot
Comment 12 2019-09-04 17:47:39 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 13 2019-09-04 17:48:17 PDT
Note You need to log in before you can comment on or make changes to this bug.