Closed Bug 320320 Opened 19 years ago Closed 18 years ago

Should only be able to open one preference/options dialog per extension.

Categories

(Toolkit :: Add-ons Manager, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.8.1alpha2

People

(Reporter: jason.barnabe, Assigned: robert.strong.bugs)

References

Details

(Keywords: fixed1.8.1)

Attachments

(1 obsolete file)

Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9a1) Gecko/20051208 Firefox/1.6a1

Currently, you can open many preference dialogs for the same extension. This is confusing and can lead to changes being overwritten if the dialogs are closed in the wrong order. We should only open one preference dialog per extension.
Attached patch patch (obsolete) — Splinter Review
This puts the extension's URI in the openDialog's name argument to make sure only one dialog gets opened.
Attachment #205911 - Flags: review?
Attachment #205911 - Flags: review? → review?(mconnor)
(Note that this bug applies only to systems with instantApply=true)

I think it would be better to find an existing window and focus it instead of reloading the document of an existing window, which is what this patch does. Unfortunately EM doesn't know the windowtype of the options window, so the best way to do it, which I can think of, is to enumerate open windows and check their URIs.
Comment on attachment 205911 [details] [diff] [review]
patch

Yeah, this isn't quite right.  What we really need to do is make sure we set an appropriate window type, set a unique window id, and iterate looking for that.  Yes, this isn't simple and fast, but for this type of action its the Right Thing(tm)
Attachment #205911 - Flags: review?(mconnor) → review-
Depends on: 329045
Fixed on trunk by the checkin of bug 329045
Assignee: jason_barnabe → robert.bugzilla
Fixed on trunk by the checkin of bug 329045
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Attachment #205911 - Attachment is obsolete: true
Target Milestone: --- → Firefox 2 alpha2
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: