Backed out changeset 8aeb06899b10 (bug 1528305) for failures on test_location_href_unknown_protocol.html. CLOSED TREE
authorCsoregi Natalia <ncsoregi@mozilla.com>
Fri, 27 Mar 2020 08:07:32 +0200
changeset 2725564 2998408f57b103e0ca4256d55bca54c1f046aca6
parent 2725563 a2d6508940de2b5cea50e409f6d00ee57711938c
child 2725565 f388fb1fdebf7680cede4467824c1f6555307f7e
child 2725569 823f3f41f570d5753ce622673937a7e43a50efd3
child 2725585 6c28df02dc2b6f01215e21c0a58225d4b3015157
child 2725623 f462ae342296a6f204c2a38fa28b4c14fb879732
child 2725666 2c06ccaaa6238cd45632c357bb0a242e2f26f9a7
child 2725670 64089ba4072aef729999ea3ca1f0fd37395b4770
child 2725677 15f9e174765137b5aa37dcd8b2aa5b087f7798ab
child 2725717 1a99ed3cb85c0415df06289f006e211a34513c9f
child 2725719 183337fa7c1b52e58859f53a738fa6030d5223cd
child 2725721 898055889057b7669c66d97ff770f9e937f69596
child 2725723 05062f9e48f197f37e458bddecd679b15ef11f08
child 2725726 c8854ed2739ee365f16fb7b8599093f822c31798
child 2725731 b85f1e72cdd980bf864b848309932fc772d57973
child 2725735 2e44c788372760fc065ade3c4f2fb1448499ae9f
child 2725741 29c5133a0675fd0e5b09d1c3473f004424303ae8
child 2725748 30d26f47c5170f8b9de686fbb09e625d16167c4d
child 2725756 95e4f48f7a085ea5e06ed42c04a5df6e580a5df2
child 2725765 ca739d8a01856dfd501576b6f9091d7cd87bbe92
child 2725794 346cb197f7034191b29951cd3f84c3c8eef65c30
child 2725864 5bea349701e05c83367be3cd0fb718bfa8746660
child 2725871 25589e74f5c29b585ad813cf03a28f56783f53aa
child 2725875 608d06c53d956d53a5c6240278960c85512b6a88
child 2725877 e1e3beb82c1f0009e342ab9029ad59fd4d03ddeb
child 2725880 4cb2b07a28078bef5b419c0c977d5deda6a52790
child 2725884 94dc0e4fe530e20c8109fa02ca2f0177292e42ef
child 2725889 82a0db5182edb49eec83c73ac786445d99a0fca3
child 2725895 346441e9fbe708cb2a569937a736c97bac0eb40a
child 2725902 ee33fedb26e4d0fea633aa2321340ae47a7b0b7e
child 2725910 70ccd9b30dcf31aed5c915427d902319ae58782f
child 2725921 a985128fa609a4e4dbce3adbd9fba44a29f288e5
child 2725931 1ee3be7451eab79b1698d1bb0adb074499cd410f
child 2725942 b49371ad9f86df61c56e894e03150488c821a6b7
child 2725954 b619d78ac64c0f69e8650f1432ff5def76b8e992
child 2725967 a8d036e626d4871615a0c16a72fb0bbcdb31a1a6
child 2725981 969408dd882b59d2bb44352f18da3d7bc2f7ce01
child 2725996 5437fc8ae86bdc1755b37b72a426bbb559a402a9
child 2726012 073a90c79587a6e0e923bd2725914a828db98bf7
child 2726015 485691e78032eb43ef92016109b546b52344b832
child 2726032 5bad4297ecc546a5041b281229a2c4cb74fc0b6d
child 2726050 e3f943504c71aa0df32f113e1a384e506d26c488
child 2726072 306d32ee992c7bf10db3f3dbdc8f10c6abd91aa4
child 2726073 f4c159ceabe19b645d2ec690cff55f535306bb1b
child 2726093 f49530e676ea4d404da394bee2b27f6d4a221cfb
child 2726114 56ab2a2dc828e802c561c8b894a0d5c80b6a92db
child 2726136 388e528f12380666cac74c2217af8d0a6f0d7074
child 2726159 05ab5b29edffe15ad6848289f331de1f8bfa3ac5
child 2726183 0ac389d7204364eff06ffb64ef86ccaa873e4ea0
child 2726208 b9a02277ad1a98368521be3a8a6bf2da29716130
child 2726215 aa0a26009bb1bf6d960e56337d1ed3c097fbbe6f
child 2726241 db549002a4adce20080d74b39f787e7c1233d729
child 2726243 225e2a0aabb8b0cbf8f48d295166d3b36da39c2c
child 2726272 5de81f11d77d2781b3df27f2bdcb53e3ebbda796
child 2726300 6a6d1f84cdcd07a27c6c1903d38ae3e840acee58
child 2726329 87477d80833936e69a24b0d0c3a6f13d25ced104
child 2726359 e7dd9fc96a6ffc0a9b2984c281bdc5718f8b0453
child 2726390 71946c5797b6e1abc012d009baf217fbfea8dde3
child 2726422 511f8932d5924ffc9957d3998fd6dace39982d81
child 2726430 2b446d810815d0437f0d15197cb9e3747b43a28c
child 2726463 2605e7ba79add6d3f65d4f3c8199e4fff89ae2b9
child 2726470 34d70dda0c0cbd80e59cb8733d1080c7e3bdce78
child 2726472 5243ca0dde7237987f1816bbeecb1eca4ea47104
child 2726506 5bb7c61cf9b75ac60e4b9cbd2636385f1bf78b48
child 2726508 e3f58eb3ae9ecb20400f72b8134835f1fa887607
child 2726543 007eb440d36b7a057e28b6801e2b54316541f2fe
child 2726545 0919f0d8f4b3df508490ea8a6e149ca4ccdcfefc
child 2726583 e18be8e3d011e3ae993ba16024bc7f8bf958683d
child 2726623 7b4a898c1c9cc3d5f7bd454ee49125804a228b55
child 2726661 49e708c70c9de0053f8da89b71485a0fb4b98cc3
child 2726700 4836473493c41e7a66d44f6525b62f0cd0660da0
child 2726743 b68ed978badb3c91c29b8613f3f8fd9e44191e49
child 2726746 469e66aa001bee8bc5a4bdfd47d6492d9e63b0cb
child 2726748 cd6a9f0e98727edd4a154c841611b4126726c0a1
child 2726791 1be815e78c986139518b8b16d8be64c6c1ead039
child 2726795 a7ab4184fb56026bcb5882bbb34f0f5ecd9980ce
child 2726797 af3428d3212732bbe0b22c14762168e30919009d
child 2726840 dc6939fe5d68a4e6adad6651d36fdcbf27e41cd2
child 2726843 b46627699b5b9d4052876d1f1145d75203f9b471
child 2726845 e2bde3b7b7d773b2685c7083f51003359712ebf7
child 2726849 adfbb7c572cd53488a46c4c6cd395be7da3b6984
child 2726853 7fef23fb58a36e170d40a6730b27c0f6231763cf
child 2726857 35f8506655c2803217833d9b253caa2332313f16
child 2726865 908eb9d96802cda9c3667f3c7cd4fddebd3b2ada
child 2726867 76f950249b5db5370795aabb90b4c1990a897660
child 2726869 fb0ffeb145d495c1105f933eb9a9128c29596059
child 2726922 07df444ea5a03bd6097ed1f9f52a8b00fe94895e
child 2726924 6e383058464f69fb2d073b8b10646cde9fe58eb5
child 2726926 4907795f9e76b5e32e1e7cdeb22be5167b72ccbe
child 2726928 0049b4c49e2ba6d25b1257e07528ad50c7e78e02
child 2726934 bb742c0b8c8ddcbabaadbf9b7f8b30fc18c3adee
child 2726999 e91d855f894d28fde880e9af7a264b9d17ccb4e0
child 2727008 2b5932d701d0234855c801e9db54ecb4acafec38
child 2727012 9fade55d331a20189002a5ad53d8923dce519eb7
child 2727015 2be26dcb9e793dcf5c0b775897ac4bbca1942afd
child 2727019 e04ad068ad794bd6d4b97a1e5552ba71593d493c
child 2727021 df8650a5461a65915ba9388af116eb956f7df2ff
child 2727028 46ac96541456f7c6bee56de1468649041f6bef3d
child 2727030 ebdfc64e54b929e98e09ee2bb5f0b78c50b42a4e
child 2727032 d0fecb3e774e84e9bd9795dc3c21018a0348a5ef
child 2727035 5f1dc8d59b17c58ee0a181dcf67ccc8a54d8b014
child 2727037 08139d8252d60468dd3e82e054e64ca8bf5bb484
child 2727039 84b12752957d71c30b43b7cb699397ac8b0a5b70
child 2727041 22f27bd6acad86ecebb27c7aa2d1cec5c46b2fd9
child 2727044 a43d590f65a26a29acda146aedf2b35347dcdbad
child 2727055 76108b368c092e3d6874fd6d13f287df7f41b468
child 2727060 c8a1c7c977ebf9d152627a4481a04250791a837d
child 2727068 f5d509dd50d5985be9f3b96ffaab31e17519cee6
child 2727075 c260a3ca3e796fc8df24ea7e5cabf6898a0c77da
child 2727085 f267003d8191126e629723ab63ac252a86e6ce54
child 2727087 5bdf0a528697584f316fd31aa29f704cfa3d6082
child 2727089 cc1cedfb0902cca4d2bb75c926f41051430c2f8b
child 2727120 e2ff609b38a63e768cb488068b024cc8838892f9
child 2727122 d186ed433fa3b156eac4836ecdcbb25f1112fe1e
child 2727124 198892a2b229afff0c7d60cce8d2f519d81c1b08
child 2727126 8a0377e46bbec40deae978b8fdf39c40cfc211df
child 2727131 c2dd673d7e0077e366a251e9193983249fb49984
child 2727133 351c532ed509e6ecd472dc27e2365fda8126589b
child 2727135 110584c19f120b9b513e9b3c3caaa6dc782a22f7
child 2727140 7769a714b023a8f11d299486c8bda6fb2c25476d
child 2727148 88ac546eda9747c933f3aefb150882d4caceb87a
child 2727152 eda8e0630af7cbed960e2c944ab0c3b1a2c578ad
child 2727154 b49ebc3dd04a54b86ad5ebb44067586e50fa4f9f
child 2727156 436151589eb584c4b5c61d8f6dd02cae16217cd5
child 2727158 b40dbb96206a1f40ef7f996e7be02db8da6ed596
child 2727174 a6183a5ab4d83739c68293d1feb7aa193f40322f
child 2727185 ff84bd67d7948f3be17f840a26f2790d991779ba
child 2727204 03943eab8104d936e4994a55d3120e87a6727517
child 2727206 811e196734b2e5f2845a6a041d5022697bd31eab
child 2727215 fcd49bb990552859a09914f170bd2048b5f4b18e
child 2727219 aac179cba8dbeebf70c0c1e94c339e060c3570cf
child 2727221 ceeedc482b5094654ff1aa6c29882955c2137ab7
child 2727225 55c125e1771e70457d276bb4ed644e17f4de960b
child 2727228 b1a52a348a281c1536a24da3b6ce96c7a7ec3cbc
child 2727234 e4b7f93d383fcb359b9c3ebb50a7eb85fb0da6bb
child 2727236 b9d30f940754615a606e11b760f661e9e26258f2
child 2727248 0a232bcd1e7be22fced21e0ace239b2c80655efb
child 2727291 b76988a7b128d2ba575d1352385d4cb3167dc43f
child 2727296 c25d06c0d821f03ee1fe04ac5413d5a21c72bb58
child 2727298 cb24784d86568560173949174e0161c33cfcc320
child 2727300 e0b0fe53e2d0f375604d77fee3473f0ed1a1d8e3
child 2727394 5dffd6cabbfc68cb6f06c9c003c6dde41bbab791
child 2727398 90c99a105f3b47cd2337d76f4125a4c56b61c23b
child 2727408 ab9ed1da7126663b79bb01b56ce79ae2054365cf
child 2727422 ab6f44a45ef0c54539695c3cf72e73c68a7bfa51
child 2727482 5d79a3e245577f6ab7a26698fc1f8b924e7585f3
child 2727501 ce9c69b6eb6f7caf9cd38ca15f3e7d5ffef5ebca
child 2727655 ed3f7eb0fbef99f1f254c28525e852805b8d70f9
child 2727686 0d7ef8abeada61a754a0af9dfb43fdac1943a27a
child 2727709 a0b185c79b586c2202b5eba3fac0c88ad62e5f46
child 2727745 955b6d417760a30d866db90feecbfaea55e6e5e9
child 2727853 1d47814bca9a8d30da7170eb2bf75109741e7ec6
child 2727897 f243a8955febedb965444ab67c15fabef5f9d2ec
child 2727901 b94c4c25ac24f3fc054d04a157987ad4d067ed92
child 2727913 893356848b027b786f8a41337034b9bcb88048bb
child 2728001 1f87f1625c0c4dad3e25e2227c48b85e58923f4b
child 2728003 bb83f2e6e055f9ea0abf17329120fe600c47110d
child 2728005 8240284ce2ed82b8bf3d00b4e5172882d932b8ad
child 2728012 a3c23f0d241ceb7866ea71c5b24704500203e300
child 2728268 2fcd625d8c3ad5c4104ebf21d6db2059fd42eda9
child 2728564 874c5f1f18024d5ee3fbc419a0b37c8087dbbb12
child 2729910 f711f615051b971330e310ce627dd79aff74a80e
child 2729926 d6a1373ffc69d20d8ce0d11b67f34e8b9b51d5c6
child 2729928 9633a714b77ffe8b1df61545184bc70af10ae617
child 2730324 42da16580c3d26dfadae196471039ccc3fe7e67c
child 2730414 1261abf018559449363dab3ccef08b4dd5fa308d
child 2730416 38d16a4c439684bbf56abb7434de48f62e4c6909
child 2730424 bf8efd559b429f49f533e6b13d5f52e790ef8517
child 2730426 7d34a11b75c0f12dbb5d1b490cc27dd965c8237e
child 2730442 bfdb08d8914319e6dd873f0ddab5bba181b1405a
child 2730453 ea437f558962d3d0b81a4465d02bc90c12c001ab
child 2730480 2dcca064cfcbddfc887cc0281c5fe6aa3c341ea6
child 2730611 29cc65c3a39950d2e531fab0523c6463ec81fab3
child 2730614 f241e6e374dfc2ac6c05277bdc6f0f579b1b220b
child 2730628 5ec32366a9ef32f3a5103bea6c612a1da0e9624a
child 2730631 79501cb655c199bdefd9dd5ea6f00339476194b5
child 2730634 8438daa0d61bb0025bbc0fa63c200331c3a99d1c
child 2730669 7f9966c105658f99832c85e2dd3d9abb774bc709
child 2731026 cee48c01d8304c28bcbb05c3884af09b22562dc0
child 2731046 871a2f389655ba285038dbc53c274e326f098863
child 2731245 34738cdf5c58935c77bddd7b1a973e906e1b6925
child 2731287 73420fa0aa6ffb5651a69f0397da8e0aa27beac6
child 2731361 89450edd1a86af8fcb8b5a418dfd3762dfcead32
child 2731368 f2e34f809ed1f3f6014584fe0fcd6608250818d1
child 2731541 20ed46c219d8b0e77d3af3587f95b1a87db54c38
child 2731556 694d5c6ad9e8b07708b942c45755da969083d1f2
child 2732164 54100e401d9ae5471d758486bb1fdcb9790307a2
child 2732192 a7ad7779425075d964c40d7a8ec56e8d79c1f385
child 2732256 a1d3f728dfd0845d173912365a7db4e63a28ceb0
child 2732399 3e660c4a876f89a5c8186dc3b2e49f3a28d11817
child 2732401 d2977d4112230d8730e50b029588ebcf3673d124
child 2733772 9289af1dee19e2699dc10ba4bf174ae7db816adb
child 2733778 19aeb3fac333ea8a47a04989ad90e4d838e9a552
child 2733783 ac5f1466078ef8f7d97e8568ace0ad3dd5a3509e
child 2733893 0794d48b45f0773ca03a71082b674c529b0358a8
child 2733903 15dba629afb898341889f01dadb1ad7198df9546
child 2734632 998c1f9bdc364e8f1dcef671f54d6f93075f7531
child 2734843 f95d449cc520aea39174f44ac7cc4b825d93c9fb
child 2735187 18fe9fd1d574086a90bb3798c813d12261db9981
child 2735511 abc843d802be17ce6b64fa99c22feb66929fdeb6
child 2735518 d2c1e574fe4897321c64db8b3ce4dffabc9f460e
child 2736298 c5057402933d9accb187308de9aa55749d0281c5
child 2737418 5641b7ecfba177dbc396cb6247d17d69ae05f37a
child 2737474 c02d3e2fcef3f82ced1d6fc25de619fc1e2b2213
child 2738669 1406744e8c2fe7dce390f8c4b97ede0baeb74ec4
child 2738698 04b6996b79af7a7c3e37c303d54e4a49a1fe5130
child 2738726 69ffe7742b246bc7add0bf1f9653e0313a554efc
child 2738801 eb587f44c197cea5f4cf5dd0def92685aeb2f733
child 2738816 e4f6fb83f67530fa433ade8b081544633fe4de14
child 2738850 c620a1a5cc60077f9fd5cb13cde02ac9977cc68a
child 2738852 e4061d24a249a7161cb530d158f782780819441a
child 2739096 d9a5b9b73ae23a3dbce6f48d7f228f323c3dc67f
child 2739372 ae5a1506b161c2b28a2ef26d859b91735aded4b6
child 2739378 ea711b16e628d55fc408f236269b4367dd4e5200
child 2739381 c8c6058b54c9b173bff9609488ca2c522d115495
child 2739384 d99c17fda994dd3bad12aafc559e97f517357e52
child 2739430 e7c0cffabb7ae6cb9cf7c5d7d90ea3e255e80377
child 2739442 e6026480fabd514a07b06f60cc9dd028b2eedaa1
child 2742111 531e8a527fd6b9de4853d2e1a671018b9020535f
child 2742122 e19914728de00246993feb6b16edfbf4d99f30d7
push id510263
push usermalexandru@mozilla.com
push dateFri, 27 Mar 2020 09:57:42 +0000
treeherdertry@750dbc575147 [default view] [failures only]
bugs1528305
milestone76.0a1
backs out8aeb06899b10db711638442fd53c0302163d1e82
Backed out changeset 8aeb06899b10 (bug 1528305) for failures on test_location_href_unknown_protocol.html. CLOSED TREE
docshell/base/nsDocShell.cpp
dom/base/test/file_location_href_unknown_protocol.html
dom/base/test/mochitest.ini
dom/base/test/test_location_href_unknown_protocol.html
dom/locales/en-US/chrome/dom/dom.properties
modules/libpref/init/StaticPrefList.yaml
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -6349,59 +6349,33 @@ nsresult nsDocShell::EndPageLoad(nsIWebP
          aStatus == NS_ERROR_MALFORMED_URI ||
          aStatus == NS_ERROR_BLOCKED_BY_POLICY) &&
         (isTopFrame || UseErrorPages())) {
       DisplayLoadError(aStatus, url, nullptr, aChannel);
     } else if (aStatus == NS_ERROR_NET_TIMEOUT ||
                aStatus == NS_ERROR_PROXY_GATEWAY_TIMEOUT ||
                aStatus == NS_ERROR_REDIRECT_LOOP ||
                aStatus == NS_ERROR_UNKNOWN_SOCKET_TYPE ||
+               aStatus == NS_ERROR_UNKNOWN_PROTOCOL ||
                aStatus == NS_ERROR_NET_INTERRUPT ||
                aStatus == NS_ERROR_NET_RESET ||
                aStatus == NS_ERROR_PROXY_BAD_GATEWAY ||
                aStatus == NS_ERROR_OFFLINE || aStatus == NS_ERROR_MALWARE_URI ||
                aStatus == NS_ERROR_PHISHING_URI ||
                aStatus == NS_ERROR_UNWANTED_URI ||
                aStatus == NS_ERROR_HARMFUL_URI ||
                aStatus == NS_ERROR_UNSAFE_CONTENT_TYPE ||
                aStatus == NS_ERROR_REMOTE_XUL ||
                aStatus == NS_ERROR_INTERCEPTION_FAILED ||
                aStatus == NS_ERROR_NET_INADEQUATE_SECURITY ||
                aStatus == NS_ERROR_NET_HTTP2_SENT_GOAWAY ||
                aStatus == NS_ERROR_NET_HTTP3_PROTOCOL_ERROR ||
                NS_ERROR_GET_MODULE(aStatus) == NS_ERROR_MODULE_SECURITY) {
       // Errors to be shown for any frame
       DisplayLoadError(aStatus, url, nullptr, aChannel);
-    } else if (aStatus == NS_ERROR_UNKNOWN_PROTOCOL) {
-      // For unknown protocols we only display an error if the load is triggered
-      // by the browser itself, or we're replacing the initial document (and
-      // nothing else). Showing the error for page-triggered navigations causes
-      // annoying behavior for users, see bug 1528305.
-      //
-      // We could, maybe, try to detect if this is in response to some user
-      // interaction (like clicking a link, or something else) and maybe show
-      // the error page in that case. But this allows for ctrl+clicking and such
-      // to see the error page.
-      nsCOMPtr<nsILoadInfo> info = aChannel->LoadInfo();
-      Document* doc = GetDocument();
-      if (!info->TriggeringPrincipal()->IsSystemPrincipal() &&
-          StaticPrefs::dom_no_unknown_protocol_error_enabled() &&
-          doc && !doc->IsInitialDocument()) {
-        nsTArray<nsString> params;
-        if (NS_FAILED(NS_GetSanitizedURIStringFromURI(
-                url, *params.AppendElement()))) {
-          params.LastElement().AssignLiteral(u"(unknown uri)");
-        }
-        nsContentUtils::ReportToConsole(
-            nsIScriptError::warningFlag, NS_LITERAL_CSTRING("DOM"), doc,
-            nsContentUtils::eDOM_PROPERTIES,
-            "UnknownProtocolNavigationPrevented", params);
-      } else {
-        DisplayLoadError(aStatus, url, nullptr, aChannel);
-      }
     } else if (aStatus == NS_ERROR_DOCUMENT_NOT_CACHED) {
       // Non-caching channels will simply return NS_ERROR_OFFLINE.
       // Caching channels would have to look at their flags to work
       // out which error to return. Or we can fix up the error here.
       if (!(mLoadType & LOAD_CMD_HISTORY)) {
         aStatus = NS_ERROR_OFFLINE;
       }
       DisplayLoadError(aStatus, url, nullptr, aChannel);
deleted file mode 100644
--- a/dom/base/test/file_location_href_unknown_protocol.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<!doctype html>
-<script>
-onbeforeunload = function() {
-  opener.onChildBeforeUnload();
-};
-onload = function() {
-  location.href = "this-protocol-is-unlikely-to-exist://foo";
-  setTimeout(function() {
-    opener.onChildLoadTimedOut();
-  }, 1000);
-};
-onunload = function() {
-  opener.onChildUnload();
-};
-</script>
--- a/dom/base/test/mochitest.ini
+++ b/dom/base/test/mochitest.ini
@@ -690,18 +690,16 @@ skip-if = (processor == 'aarch64' && os 
 [test_innersize_scrollport.html]
 skip-if = (verify && (os == 'win' || os == 'mac'))
 [test_integer_attr_with_leading_zero.html]
 [test_intersectionobservers.html]
 [test_link_prefetch.html]
 skip-if = !e10s # Track Bug 1281415
 [test_link_preload.html]
 [test_link_stylesheet.html]
-[test_location_href_unknown_protocol.html]
-support-files = file_location_href_unknown_protocol.html
 [test_messagemanager_targetchain.html]
 [test_meta_refresh_referrer.html]
 [test_meta_viewport0.html]
 [test_meta_viewport1.html]
 [test_meta_viewport2.html]
 [test_meta_viewport3.html]
 [test_meta_viewport4.html]
 [test_meta_viewport5.html]
deleted file mode 100644
--- a/dom/base/test/test_location_href_unknown_protocol.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!doctype html>
-<meta charset="utf-8">
-<title>Test for window.location setter to an unknown protocol (bug 1528305).</title>
-<script src="/tests/SimpleTest/SimpleTest.js"></script>
-<script>
-SimpleTest.waitForExplicitFinish();
-let beforeunload = false;
-let unload = false;
-
-window.onChildBeforeUnload = function() {
-  beforeunload = true;
-};
-
-window.onChildUnload = function() {
-  unload = true;
-};
-
-let win;
-window.onChildLoadTimedOut = function() {
-  ok(!unload, "shouldn't have unloaded child window");
-  ok(beforeunload, "should've fired a beforeunload event");
-  win.close();
-  SimpleTest.finish();
-};
-
-win = window.open("file_location_href_unknown_protocol.html");
-</script>
--- a/dom/locales/en-US/chrome/dom/dom.properties
+++ b/dom/locales/en-US/chrome/dom/dom.properties
@@ -387,10 +387,8 @@ MathML_DeprecatedMfencedElement=MathML e
 # LOCALIZATION NOTE: Do not translate MathML, subscriptshift and superscriptshift.
 MathML_DeprecatedScriptShiftAttributes=MathML attributes “subscriptshift” and “superscriptshift” are deprecated and may be removed at a future date.
 # LOCALIZATION NOTE: Do not translate MathML, background, color, fontfamily, fontsize, fontstyle and fontweight.
 MathML_DeprecatedStyleAttributeWarning=MathML attributes “background”, “color”, “fontfamily”, “fontsize”, “fontstyle” and “fontweight” are deprecated and will be removed at a future date.
 # LOCALIZATION NOTE: Do not translate MathML and XLink.
 MathML_DeprecatedXLinkAttributeWarning=XLink attributes “href”, “type”, “show” and “actuate” are deprecated on MathML elements and will be removed at a future date.
 WebShareAPI_Failed=The share operation has failed.
 WebShareAPI_Aborted=The share operation was aborted.
-# LOCALIZATION NOTE (UnknownProtocolNavigationPrevented): %1$S is the destination URL.
-UnknownProtocolNavigationPrevented=Prevented navigation to “%1$S” due to an unknown protocol.
--- a/modules/libpref/init/StaticPrefList.yaml
+++ b/modules/libpref/init/StaticPrefList.yaml
@@ -2071,23 +2071,16 @@
   mirror: always
 
 # Network Information API
 - name: dom.netinfo.enabled
   type: RelaxedAtomicBool
   value: @IS_ANDROID@
   mirror: always
 
-# Whether we shouldn't show an error page for unknown protocols (and should
-# show a console warning instead).
-- name: dom.no_unknown_protocol_error.enabled
-  type: bool
-  value: true
-  mirror: always
-
 # Is support for Window.paintWorklet enabled?
 - name: dom.paintWorklet.enabled
   type: bool
   value: false
   mirror: always
 
 # Enable/disable the PaymentRequest API
 - name: dom.payments.request.enabled