Bug 1592959 - Warn about non-user interaction Notification requests. r=Ehsan
authorJohann Hofmann <jhofmann@mozilla.com>
Fri, 01 Nov 2019 09:55:06 +0000
changeset 12402 ea70a52f0472180a38cd4fa146f05bcce7f8dfb4
parent 12401 e594d54f0042fc58d760a9e467de6bb702375bbf
child 12403 a1de112b0139d24901d725757da348778e8103ab
push id196
push userflodolo@mozilla.com
push dateWed, 06 Nov 2019 08:15:48 +0000
reviewersEhsan
bugs1592959
Bug 1592959 - Warn about non-user interaction Notification requests. r=Ehsan Differential Revision: https://phabricator.services.mozilla.com/D51260 X-Channel-Repo: mozilla-central X-Channel-Converted-Revision: 6f0135a82d10e5983f99b5cbbb23130d0c9f7324 X-Channel-Repo: releases/mozilla-beta X-Channel-Revision: abe7cbe63f04be2e33810e6fa757fa73e257c4d0 X-Channel-Repo: releases/mozilla-release X-Channel-Revision: 0eae18af659f087056bce0f62a325e5e595fff72 X-Channel-Repo: releases/mozilla-esr68 X-Channel-Revision: 2eed5fdce27200f4596a1ce5cf7e7eaebcab160d
dom/chrome/dom/dom.properties
--- a/dom/chrome/dom/dom.properties
+++ b/dom/chrome/dom/dom.properties
@@ -330,16 +330,17 @@ LargeAllocationNonGetRequest=A Large-All
 # LOCALIZATION NOTE: Do not translate "Large-Allocation", as it is a literal header name. Do not translate `window.opener`.
 LargeAllocationNotOnlyToplevelInTabGroup=A Large-Allocation header was ignored due to the presence of windows which have a reference to this browsing context through the frame hierarchy or window.opener.
 # LOCALIZATION NOTE: Do not translate "Large-Allocation", as it is a literal header name
 LargeAllocationNonE10S=A Large-Allocation header was ignored due to the document not being loaded out of process.
 GeolocationInsecureRequestIsForbidden=A Geolocation request can only be fulfilled in a secure context.
 NotificationsInsecureRequestIsForbidden=The Notification permission may only be requested in a secure context.
 NotificationsCrossOriginIframeRequestIsForbidden=The Notification permission may only be requested in a top-level document or same-origin iframe.
 NotificationsRequireUserGesture=The Notification permission may only be requested from inside a short running user-generated event handler.
+NotificationsRequireUserGestureDeprecationWarning=Requesting Notification permission outside a short running user-generated event handler is deprecated and will not be supported in the future.
 # LOCALIZATION NOTE: Do not translate "Large-Allocation", as it is a literal header name.
 LargeAllocationNonWin32=This page would be loaded in a new process due to a Large-Allocation header, however Large-Allocation process creation is disabled on non-Win32 platforms.
 # LOCALIZATION NOTE: Do not translate "content", "Window", and "window.top"
 WindowContentUntrustedWarning=The ‘content’ attribute of Window objects is deprecated.  Please use ‘window.top’ instead.
 # LOCALIZATION NOTE: The first %S is the tag name of the element that starts the loop, the second %S is the element's ID.
 SVGRefLoopWarning=The SVG <%S> with ID “%S” has a reference loop.
 # LOCALIZATION NOTE: The first %S is the tag name of the element in the chain where the chain was broken, the second %S is the element's ID.
 SVGRefChainLengthExceededWarning=An SVG <%S> reference chain which is too long was abandoned at the element with ID “%S”.