Closed Bug 783743 Opened 13 years ago Closed 12 years ago

addon-page should work with "index.html?[stuff]" and "index.html#[stuff]" (and both together)

Categories

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

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KWierso, Assigned: zer0)

References

Details

Attachments

(1 file)

I'm trying to make my addon-page page handle multiple tasks from that single page. I want it to open to specific content when I click on a <control> button in my simple-prefs, open to different specific content when I click a different <control> button, and have a general information page for my addon. (My content script would parse the document's location property and hide/unhide based on the .search or .hash properties.) But when I try to use tabs.open("index.html?something") or tabs.open("index.html#somethingelse"), the navigation bar is still visible.
OS: Windows 8 → All
Priority: -- → P2
Hardware: x86_64 → All
Assignee: nobody → zer0
Attachment #676926 - Flags: review?(rFobic)
Comment on attachment 676926 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/639 Tested locally, and it seems to work for me. index.html, index.html?something, and index.html#somethingelse hid the browser chrome. mindex.html, mindex.html?something, mindex.html#somethingelse, index.html.bar, index.html.bar?something, and index.html.bar#somethingelse correctly showed browser chrome. And all tests pass with this applied! :)
Attachment #676926 - Flags: feedback+
Comment on attachment 676926 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/639 Lets land this! ZER0 please make a followup platfrom bug though!
Attachment #676926 - Flags: review?(rFobic) → review+
Commits pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/b6e04cabef9da63c4b59bd6d7302c05a5cf65475 Bug 783743 - addon-page should work with "index.html?[stuff]" and "index.html#[stuff]" (and both together) - Replaced usage of `inContentWhitelist` with `hideChromeForLocation` to have more flexibility about URLs to hide https://github.com/mozilla/addon-sdk/commit/da55fc6ab245404e4acc5ac815d19cddb0fb5c0e Merge pull request #639 from ZER0/addon-page/783743 Bug 783743 - addon-page should work with "index.html?…" & "index.html#…" r=@gozala
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Depends on: 829845
This is probably causing a leak on disable, see bug 829845
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: