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)

defect
Not set
blocker

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: vingtetun, Assigned: vingtetun)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch (obsolete) — Splinter Review
No description provided.
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+
Attachment #397245 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: