Closed Bug 1170915 Opened 9 years ago Closed 9 years ago

Tab thumbnail code doesn't account for Reader toolbar

Categories

(Firefox for iOS :: General, defect)

Other
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: wesj, Assigned: sleroux)

References

Details

Attachments

(1 file)

STR:
1.) Open a page in reading mode
2.) Touch the tabs button to open the tray
3.) Touch the tab to switch back to it

Results:
The web page zooms into view, then janks as it moves down to account for the reader toolbar. Zooming it to fullscreen should probably account for the toolbar and place the webview/screenshot below it.
I find it hard to see a difference between with and without this patch. Handing over to sleroux and darrin for some additional feedback.
Comment on attachment 8631772 [details] [review]
Bug 1170915 - Tab thumbnail code doesn't account for reader toolbar

Adding sleroux and darrin for additional feedback. I would not mind moving this to v1.1 if there is a risk of regressions.
Attachment #8631772 - Flags: review?(sleroux)
Attachment #8631772 - Flags: review?(sarentz)
Attachment #8631772 - Flags: feedback?(dhenein)
Comment on attachment 8631772 [details] [review]
Bug 1170915 - Tab thumbnail code doesn't account for reader toolbar

Hey Allen,

Thanks for the patch! I ran it on the iOS simulator and I'm still seeing the reader mode bar appear/disappear behind the screenshot turning the transition. I think what we need to do is animate the actual reader mode bar during the transition instead of including it into the screenshot.

The BrowserViewController implements methods from the Transitionable protocol which get called during the different stages during the transition animation. This is where we do things like move/alpha the url bar and toolbars. What I propose we try doing is add the reader mode bar transition as part of this. The URL bar scales down along with the web page and moves down so it hides behind the tab. For the reader bar, I can see us doing something similar where it scales down and 'collapses' upwards during the browser -> tab tray animation. When the tab animates to the browser, the reader mode bar could 'expand' downwards below the url bar while the url bar expands upwards. 

Darrin, what are your thoughts on this kind of animation?
Attachment #8631772 - Flags: review?(sleroux) → review-
Blocks: 1184233
Assignee: nobody → sleroux
Attachment #8631772 - Flags: feedback?(dhenein)
Will be resolved as part of the refactor involved with https://bugzilla.mozilla.org/show_bug.cgi?id=1184233
Status: NEW → ASSIGNED
Resolved as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1184233
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: