Closed
Bug 627293
Opened 12 years ago
Closed 12 years ago
Fennec not resized correctly after switching between portrait/landscape mode
Categories
(Firefox for Android Graveyard :: General, defect, P2)
Tracking
(fennec2.0b4+)
VERIFIED
FIXED
fennec2.0b4
Tracking | Status | |
---|---|---|
fennec | 2.0b4+ | --- |
People
(Reporter: romaxa, Assigned: vingtetun)
References
()
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
8.05 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
1.13 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
Open URL in landscape mode on N900 Gtk fennec When page loaded rotate device to portrait mode. Rotate device to landscape mode back. Result: page content not resized correctly, right part of the page is white, and page has 480px width
Reporter | ||
Comment 1•12 years ago
|
||
hav not seen this before, seems was broken recently
Keywords: regression
Assignee | ||
Comment 2•12 years ago
|
||
Assignee: nobody → 21
Attachment #505476 -
Flags: review?(mark.finkle)
Comment 3•12 years ago
|
||
Comment on attachment 505476 [details] [diff] [review] Patch Wait until beta 4 is branched before landing
Attachment #505476 -
Flags: review?(mark.finkle) → review+
Updated•12 years ago
|
Whiteboard: [fennec-checkin-postb4]
Comment 4•12 years ago
|
||
I can reproduce this on Motorola Droid 2 (android 2.2) and HTC Desire (android 2.1), but I might say that only when loading pages with heavy content (e.g.: www.nypost.com, www.profm.ro). Build ID: Mozilla /5.0 (Android;Linux armv7l;rv:2.0b10pre) Gecko/20110120 Firefox/4.0b10pre Fennec /4.0b4pre
Updated•12 years ago
|
OS: Maemo → All
Updated•12 years ago
|
Severity: normal → major
Priority: -- → P2
Updated•12 years ago
|
Keywords: regressionwindow-wanted
Updated•12 years ago
|
tracking-fennec: --- → 2.0b4+
Comment 5•12 years ago
|
||
pushed for b4: http://hg.mozilla.org/mobile-browser/rev/ed270e405bc9
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fennec-checkin-postb4]
Updated•12 years ago
|
Target Milestone: --- → fennec2.0b4
Comment 6•12 years ago
|
||
This bug was a regression, do we know what push caused it to happen?
Comment 7•12 years ago
|
||
I backed this out due to a Ts regression: Previous: avg 6902.433 stddev 36.546 of 30 runs up to revision 3fe77ff50b3a New : avg 6994.956 stddev 7.257 of 5 runs since revision ed270e405bc9 Change : +92.523 (1.34% / z=2.532) Graph : http://mzl.la/fO3Gva I verified that this patch is the cause of the regression. We should take a look at the code and see what could be causing the Ts hit.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 8•12 years ago
|
||
Could we try that? This patch has the nice effect of handling the softkb-change case only for Meego since we don't need it at all on Maemo 5. Also during startup since Maemo is fullscreen this patch does not bother doing twice the work of the resizeHandler (2 events are seen on my device).
Attachment #505476 -
Attachment is obsolete: true
Attachment #506725 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 9•12 years ago
|
||
btw this also fixed bug 627337
Comment 10•12 years ago
|
||
Comment on attachment 506725 [details] [diff] [review] Patch v0.2 >diff --git a/app/mobile.js b/app/mobile.js >+ >+pref("browser.dom.window.dump.enabled", true); Left over from debugging? >diff --git a/chrome/content/bindings/browser.xml b/chrome/content/bindings/browser.xml >+ >+ // XXX Actually this fire a SetCacheViewport event as well as the >+ // scrolledAreaChanged handler in content/chrome/browser.js > view._updateCacheViewport(); Is this a bad thing? Why the XXX? Should we fix something here? >diff --git a/chrome/content/browser.js b/chrome/content/browser.js > // XXX is this code right here actually needed? >+ // It was for WinCE iirc (vn) > let maximize = (document.documentElement.getAttribute("sizemode") == "maximized"); > if (maximize && w > screen.width) >+ return; Can we just remove this "maximized" bloc of code? We don't seem to need it.
Attachment #506725 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 11•12 years ago
|
||
http://hg.mozilla.org/mobile-browser/rev/338b337f98af (In reply to comment #10) > >+pref("browser.dom.window.dump.enabled", true); > > Left over from debugging? obviously... > >diff --git a/chrome/content/bindings/browser.xml b/chrome/content/bindings/browser.xml > >+ // XXX Actually this fire a SetCacheViewport event as well as the > >+ // scrolledAreaChanged handler in content/chrome/browser.js > > view._updateCacheViewport(); > > Is this a bad thing? Why the XXX? Should we fix something here? There is a need to reorganise a few things here to not send the SetCacheViewport message twice to the content with the same area to cache (imo) > >diff --git a/chrome/content/browser.js b/chrome/content/browser.js > >+ // It was for WinCE iirc (vn) > > let maximize = (document.documentElement.getAttribute("sizemode") == "maximized"); > Can we just remove this "maximized" bloc of code? We don't seem to need it. Removed. I'm keeping this bug opened until we are sure there is no Ts regression anymore.
Assignee | ||
Comment 12•12 years ago
|
||
This followup prevent calling updateDefaultZoomLevel on startup.
Attachment #506775 -
Flags: review?(mark.finkle)
Comment 13•12 years ago
|
||
Comment on attachment 506775 [details] [diff] [review] Patch - followup worth a shot
Attachment #506775 -
Flags: review?(mark.finkle) → review+
Comment 14•12 years ago
|
||
Comment on attachment 506775 [details] [diff] [review] Patch - followup pushed: http://hg.mozilla.org/mobile-browser/rev/3e455d26e502 still no change in Ts. let's do some profiling to see what these patches actually changed. time to stop guessing.
Comment 15•12 years ago
|
||
Filed bug 628995 for the Ts regression. We'll leave this patch in for beta 4, but we need to fix the Ts regression ASAP
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Comment 16•12 years ago
|
||
VERIFIED FIX Build ID: Mozilla /5.0 (Android;Linux armv7l;rv:2.0b11pre) Gecko/20110127 Firefox/4.0b11pre Fennec /4.0b5pre
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
Updated•12 years ago
|
Keywords: regressionwindow-wanted
You need to log in
before you can comment on or make changes to this bug.
Description
•