Closed Bug 465771 Opened 16 years ago Closed 15 years ago

Port bug 391728 (disabled plugin placeholder) UI to SeaMonkey

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
seamonkey2.0

People

(Reporter: kairo, Assigned: neil)

References

Details

(Keywords: fixed-seamonkey2.0)

Attachments

(1 file)

bug 391728 added some Firefox-specific UI stuff that SeaMonkey probably needs to port.
Also Bug 462965 - Land disabled plugin and blocked plugin icons
Depends on: 458512
Bug 484188 adds tests for plugins, one part I marked todo() there is probably connected with this.
Blocks: 484188, FF2SM
Keywords: student-project
Whiteboard: [good first bug]
Flags: wanted-seamonkey2.0?
Attached patch Proposed patchSplinter Review
Only picking KaiRo because of test changes. Feel free to redirect if necessary.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #404022 - Flags: review?(kairo)
Comment on attachment 404022 [details] [diff] [review]
Proposed patch

Thanks for taking this on, works fine!
Attachment #404022 - Flags: review?(kairo) → review+
Comment on attachment 404022 [details] [diff] [review]
Proposed patch

>+            var theEM = Components.classes["@mozilla.org/appshell/window-mediator;1"]
>+                                  .getService(Components.interfaces.nsIWindowMediator)
>+                                  .getMostRecentWindow("Extension:Manager");
>+
>+            if (theEM) {
>+              theEM.focus();
>+              theEM.showView("plugins");
>+              return;
>+            }
>+
>+            const EMURL = "chrome://mozapps/content/extensions/extensions.xul";
>+            const EMFEATURES = "all,dialog=no";
>+            window.openDialog(EMURL, "", EMFEATURES, "plugins");

As a note, you probably could have gone through toEM("plugins") here as well, but I'll leave it up to you which way you like better.
Attachment #404022 - Flags: approval-seamonkey2.0+
Flags: wanted-seamonkey2.0?
(toEM isn't guaranteed to be available from notification.xml)
Pushed changeset 12859ee80820 to comm-central.
Whiteboard: [good first bug]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
No longer blocks: FF2SM
Flags: in-testsuite+
Target Milestone: --- → seamonkey2.0
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4pre) Gecko/20091002 SeaMonkey/2.0pre

It's work fine, now.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: