{"id":2673,"date":"2019-11-04T14:38:44","date_gmt":"2019-11-04T14:38:44","guid":{"rendered":"https:\/\/blog.mozilla.org\/futurereleases\/?p=2673"},"modified":"2019-11-04T14:38:44","modified_gmt":"2019-11-04T14:38:44","slug":"restricting-notification-permission-prompts-in-firefox","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/","title":{"rendered":"Restricting Notification Permission Prompts in Firefox"},"content":{"rendered":"<p>In April we <a href=\"https:\/\/blog.nightly.mozilla.org\/2019\/04\/01\/reducing-notification-permission-prompt-spam-in-firefox\/\">announced our intent<\/a> to reduce the amount of annoying permission prompts for receiving desktop notifications that our users are seeing on a daily basis. To that effect, we ran a series of studies and experiments around restricting these prompts.<\/p>\n<p><b>Based on these studies, we will require user interaction on all notification permission prompts, starting in Firefox 72. <\/b>That is, before a site can ask for notification permission, the user will have to perform a tap, click, or press a key.<\/p>\n<p>In this blog post I will give a detailed overview of the study results and further outline our plans for the future.<\/p>\n<h2>Experiments<\/h2>\n<p>As previously described, we designed a measurement using Firefox Telemetry that allows us to report details around when and how a user interacts with a permission prompt without revealing personal information. <a href=\"https:\/\/searchfox.org\/mozilla-central\/rev\/06bd14ced96f25ff1dbd5352cb985fc0fa12a64e\/toolkit\/components\/telemetry\/Events.yaml#1224\">The full probe definition can be seen in our source code<\/a>. It was enabled for a randomly chosen pool of study participants (0.1% of the user population) on Firefox Release, as well as for all users of Firefox Nightly. The Release study additionally differentiated between new users and existing users, to account for an inherent bias of existing users towards denying permission requests (because they usually already \u201chave\u201d the right permissions on sites relevant to them).<\/p>\n<p>We further enabled requiring user interaction for notification permission prompts in Nightly and Beta.<\/p>\n<h2>Results<\/h2>\n<p>Most of the heavy lifting here was done by Felix Lawrence, who performed a thorough analysis of the data we collected. You can read his full report for <a href=\"https:\/\/mozilla.report\/post\/projects\/notification_permissions.kp\/index.html\">our Firefox Release study<\/a>. I will highlight some of the key takeaways:<\/p>\n<p><b>Notification prompts are <\/b><b><i>very<\/i><\/b><b> unpopular. <\/b>On Release, about 99% of notification prompts go unaccepted, with 48% being actively denied by the user. This is even worse than what we\u2019ve seen on Nightly, and it paints a dire picture of the user experience on the web. To add from related telemetry data, during a single month of the Firefox 63 Release, a total of 1.45 <i>Billion<\/i> prompts were shown to users, of which only 23.66 <i>Million<\/i> were accepted. I.e, for each prompt that is accepted, sixty are denied or ignored. In about 500 Million cases during that month, users actually spent the time to click on \u201cNot Now\u201d.<\/p>\n<p><b>Users are unlikely to accept a prompt when it is shown more than once for the same site. <\/b>We had previously given websites the ability to ask users for notification every time they visit a site in a new tab. The underlying assumption that users would want to take several visits to make up their minds turns out to be wrong. As Felix notes, around 85% of prompts were accepted without the user ever having previously clicked \u201cNot Now\u201d.<\/p>\n<p><b>Most notification prompts don\u2019t follow user interaction. <\/b>Especially on Release, the overall number of prompts that are already compatible with this intervention is very low.<\/p>\n<p><b>Prompts that are shown as a result of user interaction have significantly better interaction metrics. <\/b>This is an important takeaway. Along with the significant decrease in overall volume, we can see a significantly better rate of first-time allow decisions (52%) after enforcing user interaction on Nightly. The same can be observed for prompts with user interaction in our Release study, where existing users will accept 24% of first-time prompts with user interaction and new users would accept a whopping 56% of first-time prompts with user interaction.<\/p>\n<h2>Changes<\/h2>\n<p>Based on the outlined results we have decided to enact two new restrictions:<\/p>\n<ul>\n<li>Starting from Firefox 70, replace the default \u201cNot Now\u201d option with \u201cNever\u201d, which will effectively hide the prompt on a page forever.<\/li>\n<li>Starting from Firefox 72, require user interaction to show notification permission prompts. Prompts without interaction will only show a small icon in the url bar.<\/li>\n<\/ul>\n<p>When a permission prompt is denied by Firefox, the user still has the ability to override this automatic decision by clicking the small permission icon that appears in the address bar. This lets users use the feature on websites with that prompt without waiting for user interaction.<\/p>\n<p><a href=\"https:\/\/blog.mozilla.org\/futurereleases\/files\/2019\/11\/Screen-Recording-2019-04-01-at-11.58.00.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-2675\" src=\"https:\/\/blog.mozilla.org\/futurereleases\/files\/2019\/11\/Screen-Recording-2019-04-01-at-11.58.00.gif\" alt=\"\" width=\"808\" height=\"392\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Besides the clear improvements in user interaction rates that our study has shown, these restrictions were derived from a few other considerations:<\/p>\n<ul>\n<li><b>Easy to upgrade. <\/b>Requiring user interaction allows for an easy upgrade path for affected websites, while hiding annoying \u201con load\u201d prompts.<\/li>\n<li><b>Transparent. <\/b>Unlike other heuristics (such as \u201cdid the user visit this site a lot in the past\u201d), interaction is easy to understand for both developers and users.<\/li>\n<li><b>Encourages pre-prompting<\/b>. We want to websites to use in-content controls to enable notifications, as long as they have an informative style and do not try to mimic native browser UI. Faking (\u201cspoofing\u201d) browser UI is considered a security risk and will be met with stronger enforcement in the future. A good pre-prompt follows the style of the page and adds additional context to the request. Pre-prompting, when done well, will increase the chance of users opting to receive notifications. Annoying users, as our data shows, will lead to churn.<\/li>\n<\/ul>\n<p>We will release additional information and resources for web developers on our <a href=\"https:\/\/hacks.mozilla.org\/\">Mozilla Hacks<\/a> blog.<\/p>\n<p>We hope that these restrictions will lead to an overall better and less annoying user experience for all our users while retaining the functionality for those that need notifications.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In April we announced our intent to reduce the amount of annoying permission prompts for receiving desktop notifications that our users are seeing on a daily basis. To that effect, &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/\">Read more<\/a><\/p>\n","protected":false},"author":144,"featured_media":2674,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"coauthors":[306191],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Restricting Notification Permission Prompts in Firefox - Future Releases<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mozilla\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/\",\"url\":\"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/\",\"name\":\"Restricting Notification Permission Prompts in Firefox - Future Releases\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.mozilla.org\/futurereleases\/files\/2019\/11\/FX_Design_Blog_Header_1400x770.jpg\",\"datePublished\":\"2019-11-04T14:38:44+00:00\",\"dateModified\":\"2019-11-04T14:38:44+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/#\/schema\/person\/33edd7d4d73723140487082573041c83\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/#primaryimage\",\"url\":\"https:\/\/blog.mozilla.org\/futurereleases\/files\/2019\/11\/FX_Design_Blog_Header_1400x770.jpg\",\"contentUrl\":\"https:\/\/blog.mozilla.org\/futurereleases\/files\/2019\/11\/FX_Design_Blog_Header_1400x770.jpg\",\"width\":1400,\"height\":770},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/futurereleases\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Restricting Notification Permission Prompts in Firefox\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/#website\",\"url\":\"https:\/\/blog.mozilla.org\/futurereleases\/\",\"name\":\"Future Releases\",\"description\":\"Be the first to know what&#039;s new with upcoming Firefox releases.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.mozilla.org\/futurereleases\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/#\/schema\/person\/33edd7d4d73723140487082573041c83\",\"name\":\"Mozilla\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/#\/schema\/person\/image\/f32381c01597770b1131dff44b9d6de1\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f84bd67e8e3ab3bcc9676910aecf5700?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f84bd67e8e3ab3bcc9676910aecf5700?s=96&d=mm&r=g\",\"caption\":\"Mozilla\"},\"url\":\"https:\/\/blog.mozilla.org\/futurereleases\/author\/mozilla\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Restricting Notification Permission Prompts in Firefox - Future Releases","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/","twitter_misc":{"Written by":"Mozilla","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/","url":"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/","name":"Restricting Notification Permission Prompts in Firefox - Future Releases","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/futurereleases\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/#primaryimage"},"image":{"@id":"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.mozilla.org\/futurereleases\/files\/2019\/11\/FX_Design_Blog_Header_1400x770.jpg","datePublished":"2019-11-04T14:38:44+00:00","dateModified":"2019-11-04T14:38:44+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/futurereleases\/#\/schema\/person\/33edd7d4d73723140487082573041c83"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/#primaryimage","url":"https:\/\/blog.mozilla.org\/futurereleases\/files\/2019\/11\/FX_Design_Blog_Header_1400x770.jpg","contentUrl":"https:\/\/blog.mozilla.org\/futurereleases\/files\/2019\/11\/FX_Design_Blog_Header_1400x770.jpg","width":1400,"height":770},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/futurereleases\/2019\/11\/04\/restricting-notification-permission-prompts-in-firefox\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/futurereleases\/"},{"@type":"ListItem","position":2,"name":"Restricting Notification Permission Prompts in Firefox"}]},{"@type":"WebSite","@id":"https:\/\/blog.mozilla.org\/futurereleases\/#website","url":"https:\/\/blog.mozilla.org\/futurereleases\/","name":"Future Releases","description":"Be the first to know what&#039;s new with upcoming Firefox releases.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.mozilla.org\/futurereleases\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.mozilla.org\/futurereleases\/#\/schema\/person\/33edd7d4d73723140487082573041c83","name":"Mozilla","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/futurereleases\/#\/schema\/person\/image\/f32381c01597770b1131dff44b9d6de1","url":"https:\/\/secure.gravatar.com\/avatar\/f84bd67e8e3ab3bcc9676910aecf5700?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f84bd67e8e3ab3bcc9676910aecf5700?s=96&d=mm&r=g","caption":"Mozilla"},"url":"https:\/\/blog.mozilla.org\/futurereleases\/author\/mozilla\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/posts\/2673"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/users\/144"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/comments?post=2673"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/posts\/2673\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/media\/2674"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/media?parent=2673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/categories?post=2673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/tags?post=2673"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/coauthors?post=2673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}