Closed
Bug 662004
Opened 15 years ago
Closed 15 years ago
Extensions preferences in a tab
Categories
(Toolkit :: Add-ons Manager, enhancement)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla7
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 1 obsolete file)
|
12.00 KB,
patch
|
mossop
:
review+
|
Details | Diff | Splinter Review |
Allow extensions to open their optionsURL in a tab instead of a new window.
| Assignee | ||
Comment 1•15 years ago
|
||
Attachment #537299 -
Flags: review?(dtownsend)
Comment 2•15 years ago
|
||
Comment on attachment 537299 [details] [diff] [review]
patch
Review of attachment 537299 [details] [diff] [review]:
-----------------------------------------------------------------
If there is any way we can avoid relying on switchToTabHavingURI then I'd like to do that, going to think on it a little to see if I can come up with anything while you make the small changes here.
::: toolkit/mozapps/extensions/content/extensions.js
@@ +940,5 @@
> }
> var optionsURL = aAddon.optionsURL;
> + if (aAddon.optionsType == AddonManager.OPTIONS_TYPE_TAB) {
> + var mainWindow = window.QueryInterface(Ci.nsIInterfaceRequestor)
> + .getInterface(Ci.nsIWebNavigation)
Indent these to line up with the . in the line above
@@ +948,5 @@
> + if ("switchToTabHavingURI" in mainWindow) {
> + mainWindow.switchToTabHavingURI(optionsURL, true);
> + return;
> + }
> + }
Kind of dislike having to rely on a function in the main window. Let's at least define this as a standalone function that it'd be easy for a given application to override with its own logic.
Attachment #537299 -
Flags: review?(dtownsend) → review-
| Assignee | ||
Comment 3•15 years ago
|
||
Attachment #537299 -
Attachment is obsolete: true
Attachment #538627 -
Flags: review?(dtownsend)
Comment 4•15 years ago
|
||
Comment on attachment 538627 [details] [diff] [review]
patch
Review of attachment 538627 [details] [diff] [review]:
-----------------------------------------------------------------
Attachment #538627 -
Flags: review?(dtownsend) → review+
| Assignee | ||
Updated•15 years ago
|
Status: NEW → ASSIGNED
Keywords: checkin-needed,
dev-doc-needed
Comment 5•15 years ago
|
||
Keywords: checkin-needed
Whiteboard: [inbound]
Comment 6•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla7
Version: unspecified → Trunk
| Assignee | ||
Updated•15 years ago
|
Keywords: dev-doc-needed → dev-doc-complete
Comment 7•15 years ago
|
||
Verified fixed with Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0a1) Gecko/20110703 Firefox/7.0a1
Geoff, could you please add the URL to the developer documentation to this bug? Thanks.
Status: RESOLVED → VERIFIED
Flags: in-testsuite?
Flags: in-testsuite+
Flags: in-litmus-
| Assignee | ||
Comment 8•15 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•