Closed
Bug 513214
Opened 15 years ago
Closed 15 years ago
'Never Show' button in popup notification should be per-site, not global
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: vingtetun, Assigned: vingtetun)
Details
Attachments
(1 file, 1 obsolete file)
3.65 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → 21
Comment 1•15 years ago
|
||
Comment on attachment 397245 [details] [diff] [review]
Patch
>diff -r 54c827234898 chrome/content/browser.js
>+ toggleDenyPopupsForSite: function toggleDenyPopupsForSite(aEvent) {
>+ var currentURI = Browser.selectedBrowser.webNavigation.currentURI;
We use Browser.selectedBrowser.currentURI consistently everywhere else
>+ var pm = Cc["@mozilla.org/permissionmanager;1"].getService(this._kIPM);
>+ pm.add(currentURI, "popup", this._kIPM.DENY_ACTION);
>+
> Browser.getNotificationBox().removeCurrentNotification();
> },
This method doesn't "toggle" the setting. denyPopupsForSite is good enough
r+ with those changes
Attachment #397245 -
Flags: review+
Assignee | ||
Comment 2•15 years ago
|
||
Address comments
Updated•15 years ago
|
Attachment #397451 -
Flags: review+
Updated•15 years ago
|
Attachment #397245 -
Attachment is obsolete: true
Comment 3•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 4•15 years ago
|
||
verified FIXED on build (via nypost.com and popuptest.com):
Mozilla/5.0 (Windows; U; WindowsCE 5.2; en-US; rv:1.9.2a2pre) Gecko/20090903 Fennec/1.0a3
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•