Closed Bug 825016 Opened 12 years ago Closed 8 years ago

fennec - hitting back from a tab opened by tabs.open, minimizes fennec

Categories

(Add-on SDK Graveyard :: General, defect, P2)

x86
macOS
defect

Tracking

(firefox49 fixed)

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: canuckistani, Assigned: JanH)

Details

Attachments

(1 file, 1 obsolete file)

I've cobbled together a mobile add-on example that, adds some menu and context menu items to fennec:

https://github.com/canuckistani/fennec-plus/

If I open a page using tabs.open, then hit the android back button the Fennec window closes even if other tabs are open.
Assignee: nobody → jsantell
Unassigning myself from bugs I haven't gotten around to
Assignee: jsantell → nobody
Attached file Pull request (obsolete) —
Assignee: nobody → jh+bugzilla
This ensures that when hitting back, we return to the previously opened tab.

Review commit: https://reviewboard.mozilla.org/r/45529/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/45529/
This is simply matching what Fennec does internally in browser.js (https://dxr.mozilla.org/mozilla-central/rev/29d5a4175c8b74f45482276a53985cf2568b4be2/mobile/android/chrome/content/browser.js#600).

I've also got a potential test, but since don't know how to actually run the tests on Android (mach mochitest doesn't work), I've no idea whether it actually works or not.
Attachment #8648480 - Attachment is obsolete: true
Comment on attachment 8740063 [details]
MozReview Request: Bug 825016 - Part 1 - When opening a new tab, pass the ID of the parent tab. r=zer0

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/45529/diff/1-2/
Attachment #8740063 - Attachment description: MozReview Request: Bug 825016 - Part 1 - When opening a new tab, pass the ID of the parent tab. r=matteo → MozReview Request: Bug 825016 - Part 1 - When opening a new tab, pass the ID of the parent tab. r=zer0
Attachment #8740063 - Flags: review?(zer0)
Attachment #8740063 - Flags: review?(zer0) → review+
Comment on attachment 8740063 [details]
MozReview Request: Bug 825016 - Part 1 - When opening a new tab, pass the ID of the parent tab. r=zer0

https://reviewboard.mozilla.org/r/45529/#review45511

Looks good to me!
https://hg.mozilla.org/mozilla-central/rev/0f700af8dbaf
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: