Bug 1334468 - A crashtest about restricted characters in URI. r=mcmanus, a=test-only
authorJonathan Hao <jhao@mozilla.com>
Fri, 10 Feb 2017 11:19:59 +0800
changeset 378624 2bbdf69d4cb3a3196cffecad7c86c73529deda2d
parent 378623 cfcda0b99785fa8366777879554a432e346581ef
child 378625 e2a2caa0e0bb2092f0b7fa37eb701769d24b39ff
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus, test-only
bugs1334468
milestone53.0a2
Bug 1334468 - A crashtest about restricted characters in URI. r=mcmanus, a=test-only
netwerk/test/crashtests/1334468-1.html
netwerk/test/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/netwerk/test/crashtests/1334468-1.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="UTF-8">
+<!--
+user_pref("privacy.firstparty.isolate", true);
+-->
+<script>
+
+let RESTRICTED_CHARS = "\001\002\003\004\005\006\007" +
+                       "\010\011\012\013\014\015\016\017" +
+                       "\020\021\022\023\024\025\026\027" +
+                       "\030\031\032\033\034\035\036\037" +
+                       "/:*?\"<>|\\";
+
+function boom() {
+  for (let c of RESTRICTED_CHARS) {
+    window.location = 'http://s.s' + c;
+  }
+}
+
+</script>
+</head>
+<body onload="boom();"></body>
+</html>
--- a/netwerk/test/crashtests/crashtests.list
+++ b/netwerk/test/crashtests/crashtests.list
@@ -1,3 +1,4 @@
 asserts-if(stylo,4) load 785753-1.html # bug 1324634
 asserts-if(stylo,4) load 785753-2.html # bug 1324634
 load 1274044-1.html
+skip-if(Android) pref(privacy.firstparty.isolate,true) load 1334468-1.html