Bug 1546415 - Disable target=_blank on a/area elements imply rel=noopener for 67, r=neha
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 23 Apr 2019 16:05:37 +0000
changeset 470508 7f72db694e4f7a582e836e77eb4f32e373ade2b5
parent 470507 c510cf43416cbd8be32987ebee55b88107e94415
child 470509 8ab68eea15b8e9585d0dd3ffd7f499b39a808dcb
push id35906
push useraciure@mozilla.com
push dateTue, 23 Apr 2019 22:14:56 +0000
treeherdermozilla-central@0ce3633f8b80 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersneha
bugs1546415
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1546415 - Disable target=_blank on a/area elements imply rel=noopener for 67, r=neha Differential Revision: https://phabricator.services.mozilla.com/D28497
modules/libpref/init/StaticPrefList.h
--- a/modules/libpref/init/StaticPrefList.h
+++ b/modules/libpref/init/StaticPrefList.h
@@ -546,22 +546,28 @@ VARCACHE_PREF(
 // Block multiple window.open() per single event.
 VARCACHE_PREF(
   "dom.block_multiple_popups",
    dom_block_multiple_popups,
   bool, true
 )
 
 // For area and anchor elements with target=_blank and no rel set to
-// opener/noopener, this pref sets noopener by default.
+// opener/noopener.
+#ifdef EARLY_BETA_OR_EARLIER
+#define PREF_VALUE true
+#else
+#define PREF_VALUE false
+#endif
 VARCACHE_PREF(
   "dom.targetBlankNoOpener.enabled",
    dom_targetBlankNoOpener_enabled,
-  bool, true
+  bool, PREF_VALUE
 )
+#undef PREF_VALUE
 
 VARCACHE_PREF(
   "dom.disable_open_during_load",
    dom_disable_open_during_load,
   bool, false
 )
 
 // Storage-access API.