Closed Bug 1608588 Opened 6 years ago Closed 6 years ago

Restrict notification permission prompts (just like on desktop)

Categories

(GeckoView :: General, enhancement, P2)

Unspecified
All
enhancement

Tracking

(firefox74 fixed)

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: abovens, Assigned: snorp)

References

Details

Attachments

(2 files)

In Firefox 72 for desktop, we made a change requiring explicit user interaction on all notification permission prompts. GeckoView should respect this as well.

See https://hacks.mozilla.org/2019/11/upcoming-notification-permission-changes-in-firefox-72/

Example: load https://www.livescience.com/hidden-impact-crater-laos.html in Firefox Preview, and a notification prompt is shown on initial page load. This shouldn't happen.

Flags: needinfo?(snorp)
Rank: 5
Priority: -- → P2
Assignee: nobody → snorp
Flags: needinfo?(snorp)

This causes us to automatically deny the desktop-notification
permission if there is no user interaction, like desktop Firefox. This is
not enforced if the dom.webnotifications.requireuserinteraction
preference is set to false

Pushed by jwillcox@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8eb2b7857f62 Auto-deny `desktop-notification` permission appropriately r=geckoview-reviewers,esawin
Pushed by jwillcox@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ef356b5b0879 Auto-deny `desktop-notification` permission appropriately r=geckoview-reviewers,esawin
Pushed by jwillcox@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2f044fd80361 Auto-deny `desktop-notification` permission appropriately r=geckoview-reviewers,esawin
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
Flags: needinfo?(snorp)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: