Closed Bug 1210807 Opened 10 years ago Closed 9 years ago

Facebook page is incorrectly displayed when device is turned from portrait to landscape

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox42 unaffected, firefox43 affected, firefox44 affected, firefox45 affected, firefox46 ?, fennec48+)

RESOLVED FIXED
Firefox 48
Tracking Status
firefox42 --- unaffected
firefox43 --- affected
firefox44 --- affected
firefox45 --- affected
firefox46 --- ?
fennec 48+ ---

People

(Reporter: u549602, Assigned: kats)

References

Details

Attachments

(2 files)

Nightly 44.0a1 Device: Nexus 7(5.1.1), Sony Xperia Z2 (5.0.2) Steps to reproduce 1.In portrait mode user taps on Awesomescreen 2.User enters Facebook and navigates to Fb "Log-in and Sign up" page 3.User flips device's orientation from portrait to lansdcape Expected result: The Facebook log-in page is correctly repainted in landscape mode Actual result: The facebook page is incorrectly rendered in landscape mode Please note that this issue started reproducing with the 25th of August Nightly. Also please note that before the 25th, on the Nightly builds the rendering was performed but with a minor delay http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=8a6045d14d6bd348a3b5bfeb55a9321e680cc93e&tochange=04b8c412d9f58fb6194c58dcaa66bf278bbd53cf
Any ideas?
tracking-fennec: --- → ?
Flags: needinfo?(snorp)
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(snorp)
Resolution: --- → DUPLICATE
Oops
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
This looks like viewport-related badness, and Kats is in the pushlog there.
Flags: needinfo?(bugmail.mozilla)
tracking-fennec: ? → 43+
Assigning to snorp since kats is out for two weeks
Assignee: nobody → snorp
Yeah looks like regression from my stuff. If this is still happening feel free to reassign to me.
Flags: needinfo?(bugmail.mozilla)
Assignee: snorp → bugmail.mozilla
kats, it looks like this slipped through the cracks. Do you have time to look at this?
tracking-fennec: 43+ → ?
Flags: needinfo?(bugmail.mozilla)
Hm, I don't have a device that can reproduce this. Does it still happen on Nightly or Aurora? (It might not happen on Nightly because APZ is enabled on Nightly, but if it affects current Aurora we should still fix it). I can put together a try push with extra logging once I know which channel to target.
Flags: needinfo?(bugmail.mozilla) → needinfo?(mihai.ninu)
This only happens on aurora, beta and release. If you need a secondary testcase https://news.ycombinator.com with request desktop site or reddit.com homepage both reproduce this behavior.
Flags: needinfo?(mihai.ninu)
Ah, thanks. I can repro using news.ycombinator on aurora. I'll look into it.
Attached patch WIPSplinter Review
So the problem here seems to be the order in which browser.js code gets invoked. On rotation, the MVM code runs and computes the correct resolution. That also triggers a reflow which runs the MozScrolledAreaChanged listener in browser.js, and that updates the displayport but using stale gScreenWidth/gScreenHeight values, and so it clobbers the resolution. The attached patch is one possible fix, although I'm not sure what other side-effects it'll have.
I rebased and this patch doesn't fix it any more. Back to the drawing board.
tracking-fennec: ? → 45+
I spent some more time banging my head against this and not getting anywhere. I'm inclined to just wait until APZ is shipping, since that seems to fix this.
Depends on: fennec-aboard-apz
tracking-fennec: 45+ → 46+
Actually moving this to 48 per comment #13
tracking-fennec: 46+ → 48+
Whiteboard: [platform-rel-Facebook]
platform-rel: --- → ?
platform-rel: ? → ---
Whiteboard: [platform-rel-Facebook]
Seems to work fine in 48.
Status: REOPENED → RESOLVED
Closed: 10 years ago9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: