Closed Bug 1359659 Opened 7 years ago Closed 7 years ago

When switching from custom tabs to Fennec, the dynamic toolbar can get permanently pinned

Categories

(Firefox for Android Graveyard :: Toolbar, defect, P3)

55 Branch
All
Android
defect

Tracking

(firefox53 unaffected, firefox54 unaffected, firefox55 fixed)

RESOLVED FIXED
Firefox 55
Tracking Status
firefox53 --- unaffected
firefox54 --- unaffected
firefox55 --- fixed

People

(Reporter: rbarker, Assigned: rbarker)

References

Details

(Keywords: regression)

Attachments

(1 file)

If the toolbar gets pinned in a custom tab and does not get unpinned before switching to fennec, they dynamic toolbar get get permanently pinned.
Assignee: nobody → rbarker
Comment on attachment 8861717 [details]
Bug 1359659 - Ensure the complete pinned state is sent from the UI thread to the compositor

https://reviewboard.mozilla.org/r/133702/#review136612

::: mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/DynamicToolbarAnimator.java:164
(Diff revision 1)
>                  mCompositor.sendToolbarAnimatorMessage(LayerView.REQUEST_SHOW_TOOLBAR_IMMEDIATELY);
>              } else {
>                  mCompositor.sendToolbarAnimatorMessage(LayerView.REQUEST_HIDE_TOOLBAR_IMMEDIATELY);
>              }
> -            for (PinReason reason : pinFlags) {
> -              mCompositor.setPinned(true, reason.mValue);
> +            for (PinReason reason : PinReason.values()) {
> +              mCompositor.setPinned(mPinFlags.contains(reason), reason.mValue);

Can you also rename `mValue` in `PinReason` to `value`, since it's a public member?
Attachment #8861717 - Flags: review?(nchen) → review+
Pushed by rbarker@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/774240b19c63
Ensure the complete pinned state is sent from the UI thread to the compositor r=jchen
Keywords: regression
Priority: -- → P3
Hardware: Unspecified → All
Version: unspecified → 55 Branch
https://hg.mozilla.org/mozilla-central/rev/774240b19c63
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
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

Created:
Updated:
Size: