Closed
Bug 1180267
Opened 10 years ago
Closed 10 years ago
Update Fennec code to use MobileViewportManager instead of the big pile of browser.js code
Categories
(Firefox for Android Graveyard :: Toolbar, defect)
Tracking
(firefox43 fixed)
RESOLVED
FIXED
Firefox 43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(3 files, 4 obsolete files)
26.86 KB,
patch
|
snorp
:
review+
botond
:
feedback+
gbrown
:
feedback-
|
Details | Diff | Splinter Review |
1.10 KB,
patch
|
botond
:
review+
|
Details | Diff | Splinter Review |
4.71 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
Bug 1178847 adds a MobileViewportManager class to manage setting the CSS viewport. Switching Fennec over to using it turned out to be non-trivial so this is a follow-up bug to do that.
Assignee | ||
Comment 1•10 years ago
|
||
I think in order to do this I need to redo the dynamic toolbar stuff first. There's too much margins goop in browser.js interwoven into the viewport code.
Assignee | ||
Updated•10 years ago
|
Component: General → Graphics, Panning and Zooming
Assignee | ||
Updated•10 years ago
|
Depends on: dynamic-toolbar-2
Comment 2•10 years ago
|
||
Matt Brubeck had code to make Fennec use the platform viewport code at one point. Maybe its still around?
Assignee | ||
Comment 3•10 years ago
|
||
Yeah, bug 799585. This bug encompasses that one and is a more comprehensive re-use of code.
Assignee | ||
Comment 5•10 years ago
|
||
First cut. It depends on the patches in bug 1180295.
Assignee | ||
Comment 6•10 years ago
|
||
A try push with this stuff fails a lot of tests [1], largely because (as expected) the MobileViewportManager code is now setting a resolution based on the default CSS viewport. This wasn't really happening before because of the wacky environment android reftests run in (i.e. almost none of the browser.js code actually did anything in reftests - see bug 1156817).
I think that although the patch is probably fine for production, we need to run the reftests in a "desktop mode" viewport so that it doesn't get scaled, because most of the tests are not going to be very happy with that. Luckily we already have code for desktop-mode so I just need to enable it in reftests. I'm trying that now.
[1] https://treeherder.mozilla.org/#/jobs?repo=try&revision=7aadaca89d7c is a sampling of the types of failures
Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8648198 -
Attachment is obsolete: true
Assignee | ||
Comment 8•10 years ago
|
||
Assignee | ||
Comment 9•10 years ago
|
||
Assignee | ||
Comment 10•10 years ago
|
||
Assignee | ||
Comment 11•10 years ago
|
||
That try push has a B2G emulator R7 failure caused by part 1 of this series, because the prefs I fiddled with affect B2G as well. I did a slightly modification to that which passes:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9017734bd640
Updated patches coming for review.
Assignee | ||
Comment 12•10 years ago
|
||
green try |
Assignee | ||
Comment 13•10 years ago
|
||
Note that these patches apply on top of bug 1197592.
r? to snorp for the bulk of the patch.
f? to gbrown to look at the change to boostrap.js to make sure it's ok. The intent is to set a pref but only for Fennec reftests; adding it to reftest-preferences.js or runreftest.py seems to affect multiple platforms.
f? to botond also for the pref fiddling. I realize that it's apz.allow_zooming is probably not the best name since I'm now enabling it on Fennec without having APZ enabled, but after we migrate to APZ the name will make sense again :)
Attachment #8651506 -
Attachment is obsolete: true
Attachment #8651753 -
Flags: review?(snorp)
Attachment #8651753 -
Flags: feedback?(gbrown)
Attachment #8651753 -
Flags: feedback?(botond)
Assignee | ||
Comment 14•10 years ago
|
||
For now the displayport margins are still set in browser.js for Fennec, so we don't want to be setting them also in MVM. In particular this causes tests to fail because the way the tests are set up they're not expecting a displayport.
Attachment #8651754 -
Flags: review?(botond)
Assignee | ||
Updated•10 years ago
|
Attachment #8651507 -
Attachment is obsolete: true
Assignee | ||
Comment 15•10 years ago
|
||
The desktop mode is a Fennec-only feature, and this code in particular was not really used previously except for determining whether or not font inflation would happen. Now that we're using this code path to actually determine the CSS viewport for layout, I noticed that it's got a bug and was returning the wrong viewport in desktop mode.
Attachment #8651508 -
Attachment is obsolete: true
Attachment #8651757 -
Flags: review?(snorp)
Comment 16•10 years ago
|
||
Comment on attachment 8651753 [details] [diff] [review]
Part 1 - Switch Fennec over to using MVM
Review of attachment 8651753 [details] [diff] [review]:
-----------------------------------------------------------------
YESSSSS
Attachment #8651753 -
Flags: review?(snorp) → review+
Updated•10 years ago
|
Attachment #8651757 -
Flags: review?(snorp) → review+
![]() |
||
Comment 17•10 years ago
|
||
Comment on attachment 8651753 [details] [diff] [review]
Part 1 - Switch Fennec over to using MVM
Review of attachment 8651753 [details] [diff] [review]:
-----------------------------------------------------------------
Setting that pref in bootstrap.js is a little strange, isn't it? I would prefer you didn't do that unless absolutely necessary.
You should be able to set a pref only for Android reftests at http://hg.mozilla.org/mozilla-central/annotate/beb9cc29efb9/layout/tools/reftest/remotereftest.py#l386.
Attachment #8651753 -
Flags: feedback?(gbrown) → feedback-
Assignee | ||
Comment 18•10 years ago
|
||
(In reply to Geoff Brown [:gbrown] from comment #17)
> You should be able to set a pref only for Android reftests at
> http://hg.mozilla.org/mozilla-central/annotate/beb9cc29efb9/layout/tools/
> reftest/remotereftest.py#l386.
Ah thanks. Updated try push to verify: https://treeherder.mozilla.org/#/jobs?repo=try&revision=56b4da8940fa
Comment 19•10 years ago
|
||
Comment on attachment 8651753 [details] [diff] [review]
Part 1 - Switch Fennec over to using MVM
Review of attachment 8651753 [details] [diff] [review]:
-----------------------------------------------------------------
Setting apz.allow_zooming on non-APZ Fennec for now seems OK to me.
Attachment #8651753 -
Flags: feedback?(botond) → feedback+
Updated•10 years ago
|
Attachment #8651754 -
Flags: review?(botond) → review+
Assignee | ||
Comment 20•10 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #18)
> (In reply to Geoff Brown [:gbrown] from comment #17)
> > You should be able to set a pref only for Android reftests at
> > http://hg.mozilla.org/mozilla-central/annotate/beb9cc29efb9/layout/tools/
> > reftest/remotereftest.py#l386.
>
> Ah thanks. Updated try push to verify:
> https://treeherder.mozilla.org/#/jobs?repo=try&revision=56b4da8940fa
This is green. I'll land (with the update you suggested) once inbound reopens.
Comment 21•10 years ago
|
||
Comment 22•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/636fa61990f3
https://hg.mozilla.org/mozilla-central/rev/3862feb3978b
https://hg.mozilla.org/mozilla-central/rev/0720ea24b69a
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
Assignee | ||
Updated•10 years ago
|
Blocks: native-viewport
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•