Closed
Bug 1000828
Opened 11 years ago
Closed 11 years ago
Enable zoom session history for synthetic documents
Categories
(Firefox for Android Graveyard :: Toolbar, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 31
People
(Reporter: esawin, Assigned: esawin)
References
Details
Attachments
(1 file)
1.77 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
Some synthetic documents don't allow zooming, but restoring the zoom level for documents that do allow it, like images, should provide a more consistent user experience. I'm keeping this separate from bug 611556, should be decide to handle synthetic documents differently in this regard.
Assignee | ||
Comment 1•11 years ago
|
||
This should do it, we simply have to prevent re-fitting of the zoom level for synthetic documents when a restored session zoom is available.
Attachment #8411731 -
Flags: review?(bugmail.mozilla)
Comment 2•11 years ago
|
||
Comment on attachment 8411731 [details] [diff] [review] Enable zoom session history for synthetic documents Review of attachment 8411731 [details] [diff] [review]: ----------------------------------------------------------------- The call to sendViewportUpdate that happens inside this block still needs to run, I think. It would be better to have nested if statements, with the restoredSessionZoom() guarding the fitZoom calculation and setResolution call only.
Attachment #8411731 -
Flags: review?(bugmail.mozilla) → review-
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #2) > Comment on attachment 8411731 [details] [diff] [review] > Enable zoom session history for synthetic documents > > Review of attachment 8411731 [details] [diff] [review]: > ----------------------------------------------------------------- > > The call to sendViewportUpdate that happens inside this block still needs to > run, I think. It would be better to have nested if statements, with the > restoredSessionZoom() guarding the fitZoom calculation and setResolution > call only. We have the following function call chain: |ViewportHandler.updateMetadata -> updateViewportMetadata -> updateViewportSize -> sendViewportUpdate| before the synthetic document check. So I think that it would be redundant to call |sendViewportUpdate| again without actually changing the resolution.
Comment 4•11 years ago
|
||
Comment on attachment 8411731 [details] [diff] [review] Enable zoom session history for synthetic documents Review of attachment 8411731 [details] [diff] [review]: ----------------------------------------------------------------- You may have a point. I'm still a little uneasy but maybe this is ok. This code tends to fail in unexpected ways so keep an eye out for regressions after this lands.
Attachment #8411731 -
Flags: review- → review+
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #4) > Comment on attachment 8411731 [details] [diff] [review] > Enable zoom session history for synthetic documents > > Review of attachment 8411731 [details] [diff] [review]: > ----------------------------------------------------------------- > > You may have a point. I'm still a little uneasy but maybe this is ok. This > code tends to fail in unexpected ways so keep an eye out for regressions > after this lands. Right, I was a bit uneasy with having this in the main patch, but catching regressions on this one should be easy with its limited scope. Also, given that we know the proper resolution before drawing when restoring from history, I think we could refactor some things out to reduce the number of viewport permutation for that case.
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/bbcb7f37b176
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/bbcb7f37b176
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 31
Updated•4 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
•