Closed Bug 1323062 Opened 7 years ago Closed 6 years ago

Wall Street Journal shows desktop site on mobile

Categories

(Web Compatibility :: Site Reports, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mkaply, Assigned: karlcow)

References

()

Details

(Whiteboard: [sitewait] [viewport])

Attachments

(1 file)

http://www.wsj.com/

Navigates to the desktop version.

We should evangelize (or figure out if it is something we are doing).
Doesn't appear to be using user agent detection, as changing UA to Chrome doesn't help.
(moving to TE, since we use this product for software dev junk)
Component: General → Mobile
Product: Web Compatibility → Tech Evangelism
Whiteboard: [needsdiagnosis]
Karl, can you take a look? This might be related to viewport stuff.
Flags: needinfo?(kdubost)
<meta name="viewport" content="initial-scale=1.0001, minimum-scale=1.0001, maximum-scale=1.0001, user-scalable=no" data-reactid=".0.0.3">
Dennis, can you take a look -- I forgot Karl is on PTO this week. This site is important to a partner.

We need to check if they're sending the same responsive design to us and to Chrome Mobile, and if so, is this our viewport bug?
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(dschubert)
Resolution: --- → FIXED
(oops)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I use MITM proxy and change the viewport to 

  <meta name="viewport" content="initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" data-reactid=".0.0.3"/>

Then it looks good for me now.
A better approach for workaround iOS9 can use shrink-to-fit:

  <meta name="viewport" content="width=device-width, initial-scale=1, min-scale=1, max-scale=1, shrink-to-fit=no">
Why do we behave differently than Chrome?
Yeah, this is weird. I can confirm all of Erics observations (thanks for that!), if we replace 1.0001 by 1, the site works fine. This seems to be another edge case of Fennec viewport definitions. 1.0001 is used to workaround an issue in iOS9, and as Eric also mentioned, shrink-to-fit=no is a much better workaround. We should probably get them to use shrink-to-fit=no then.

Mike, to we have a direct contact to the WSJ developers? Setting it to needscontact.

> Why do we behave differently than Chrome?

Very fair question. The short version is: viewports are a mess. There are a lot of edge cases like initial-scale=0 that never got speced and behave different across browsers. We're in the process of investigating differences between the implementations, building an actual specification out of our results (see [0]) and getting "the correct behavior" implemented in Fennec. That being said, the work on this started recently and there is not much to report yet. Karl will hopefully work on this soon! :)

[0]: https://github.com/whatwg/compat/issues/62
Flags: needinfo?(dschubert)
Whiteboard: [needsdiagnosis] → [needscontact]
> Mike, to we have a direct contact to the WSJ developers? Setting it to needscontact.

Not with developers, but I think we can get in through some content/ad contacts.

Can you put together an email and I can have it forwarded it along?

The contact us section here:

https://customercenter.wsj.com/public/view/contactinformation.html

Seems to be for website problems as well.
(Karl may have WSJ contacts from the past.)
And.... maybe we should clamp 1.0001 to 1 in Gecko for viewport values? I wonder at what point we would not want to clamp though...
Philip Camacho might have contacts.
https://www.linkedin.com/in/philipcamacho
http://twitter.com/MozWebCompat/status/810658407732559872

We had as a contact in the past Bifur Zaleski. But not sure he is around now.
https://bugzilla.mozilla.org/user_profile?login=bifur%40zaleski.net
Assignee: nobody → kdubost
Status: REOPENED → ASSIGNED
Flags: needinfo?(kdubost)
Whiteboard: [needscontact] → [sitewait] [viewport]
Can someone post exactly what a note to WSJ would look like? We have contacts in BizDev.

I need a "You should fix this and this is why"

As a side note, do we know of other sites that have this problem? Should we fix it on our end?
(In reply to Mike Kaply [:mkaply] from comment #15)
> Can someone post exactly what a note to WSJ would look like? We have
> contacts in BizDev.
> 
> I need a "You should fix this and this is why"

Not sure exactly what you're looking for in terms of a note beyond explaining that the site looks broken in Fennec due to a workaround for a Safari bug, and providing the suggested fix (that doesn't regress their Safari issue). Comment #8 has the suggested fix. 

> As a side note, do we know of other sites that have this problem? Should we
> fix it on our end?

Yeah, we should. Karl, do we have a bug open for viewport bugs? If not, can we get one (or more) filed?
Flags: needinfo?(kdubost)
Mike (Kaply),
do not hesitate to give my contact information to WSJ if they need further help with the issue.

About clamping the value for the meta viewport, see. 
Bug 1313264
Depends on: 1313264
Flags: needinfo?(kdubost)
:mkaply for scale=1.0001, http://www.walmart.ca have this problem. 

You can refer to https://webcompat.com/issues/3498 
But as Thomas' diagnosis result, this only fix portrait mode, landscape mode still have problem.
So based on Eric's last comment, does the shrink-to-fit option not work for landscape and portrait?

So we actually don't have a fix?
:mkaply, for my test on Z3C, this fix works for wsj.com and walmart.ca on both landscape/portrait mode
(In reply to Mike Kaply [:mkaply] from comment #19)
> So based on Eric's last comment, does the shrink-to-fit option not work for
> landscape and portrait?
> 
> So we actually don't have a fix?

shrink-to-fit is an iOS only meta viewport value, currently, and fixes the problem the site devs were trying to solve. The fix suggested by Eric undoes the iOS hack, adds the correct iOS fix, and unbreaks Fennec, AFAICT.
Actually, I somehow missed Eric's shrink-to-fit suggestion. I just re-tested with it, and a local copy of the site seems to work fine for me on my Android phones in portrait and landscape orientation, so it might be the way to go (I don't have an iOS device to test with, though, so I can't confirm if it works on those).
> And.... maybe we should clamp 1.0001 to 1 in Gecko for viewport values? I wonder at what point we would not want to clamp though...

Did we decide if we are going to do this? Do we know how common this hack is?

Our WSJ contacts aren't coming back at all.
I've contacted WSJ through their site and supposedly it got forwarded on. We'll see.
So come to find out bug 1313264 is something different. It's clamping the lower bound, not rounding.

I've looked at Chromium

https://cs.chromium.org/chromium/src/ios/web/web_state/page_viewport_state.mm?type=cs&q=maximum-scale+package:%5Echromium$&l=62

And I don't see them turning 1.0001 into 1. The parse it as a double.

So this must have something to do with us treating 1.0001 differently...
Priority: -- → P1
Mike (Kapl)(In reply to Mike Kaply [:mkaply] from comment #26)
> So come to find out bug 1313264 is something different. It's clamping the
> lower bound, not rounding.
> 
> I've looked at Chromium
> 
> https://cs.chromium.org/chromium/src/ios/web/web_state/page_viewport_state.
> mm?type=cs&q=maximum-scale+package:%5Echromium$&l=62
> 
> And I don't see them turning 1.0001 into 1. The parse it as a double.
> 
> So this must have something to do with us treating 1.0001 differently...


On WebKit, I always wonder if it was happening here.
https://github.com/WebKit/webkit/blob/04c2bea6721a142bb73f9626e646c5aa5251c2d8/Source/WebKit2/Shared/CoordinatedGraphics/SimpleViewportController.cpp#L118-L145
See Also: → 1469747
See Also: → 1495045
I'm changing the dependency on this issue because there is the specific Bug 1469747 for 1.0001 values.
Depends on: 1469747
No longer depends on: 1313264
Depends on: 1494422
No longer depends on: 1469747
See Also: 1469747
I'd like to confirm whether bug 1494422 fixed this or not.  But I can't see the desktop versions on Firefox 62 in the first place.  Am I missing something, or the site has been already changed?
Karl?
Flags: needinfo?(kdubost)
Yes they changed the site since. I guess Mike Kaply contact was effective.
https://bugzilla.mozilla.org/show_bug.cgi?id=1323062#c25

Right now:
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">


Walmart.ca has still a 1.0001 viewport style.
<meta name="viewport" content="width=device-width, initial-scale=1.0001, minimum-scale=1.0001, maximum-scale=1.0001, user-scalable=no">

https://www.walmart.ca/en And it's currently working on 64.0a1 (2018-10-21) (64-bit) 
* Desktop with RDM + Firefox Android UA.
* Android device.
Flags: needinfo?(kdubost)
I'm changing this as fixed as the site has changed.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago6 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Web Compatibility
Component: Mobile → Site Reports
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: