Closed Bug 767852 Opened 12 years ago Closed 12 years ago

reader settings popup menu should be cancelable by pressing Back

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 16

People

(Reporter: heycam, Unassigned)

References

Details

Attachments

(1 file)

You should be able to dismiss the menu that comes up when you press the "Aa" button in a Reader mode page by pressing the Back button.  At least, I pressed back expecting it to do this, and instead it navigated the page back.
Blocks: reader
Comment on attachment 637533 [details] [diff] [review]
Dismiss any open dropdowns on Android back button

>diff --git a/mobile/android/chrome/content/aboutReader.js b/mobile/android/chrome/content/aboutReader.js


>+      case "popstate":
>+        if (!aEvent.state) {
>+          this._closeAllDropdowns();
>+        }

{} not needed
Attachment #637533 - Flags: review?(mark.finkle) → review+
(In reply to Mark Finkle (:mfinkle) from comment #2)
> Comment on attachment 637533 [details] [diff] [review]
> Dismiss any open dropdowns on Android back button
> 
> >diff --git a/mobile/android/chrome/content/aboutReader.js b/mobile/android/chrome/content/aboutReader.js
> 
> 
> >+      case "popstate":
> >+        if (!aEvent.state) {
> >+          this._closeAllDropdowns();
> >+        }
> 
> {} not needed

Fixed.
https://hg.mozilla.org/mozilla-central/rev/6f41a0fde6d2
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 16
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: