mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 22:35:43 +00:00
Bug 1037335 - Fix timing issue of web-platform test: content-security-policy/style-src/style-src-imported-style-blocked.html. r=ckerschb
MozReview-Commit-ID: DdS55NP22nh --HG-- extra : rebase_source : 4134ad056703ec8363f4f7a04ad02ae4fb1b0c2e
This commit is contained in:
parent
03fb144c3b
commit
0eba47ddc8
@ -1,6 +1,5 @@
|
|||||||
[style-src-imported-style-blocked.html]
|
[style-src-imported-style-blocked.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: TIMEOUT
|
|
||||||
[Should fire a securitypolicyviolation event]
|
[Should fire a securitypolicyviolation event]
|
||||||
expected: NOTRUN
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -12,8 +12,13 @@
|
|||||||
document.addEventListener("securitypolicyviolation", t_spv.step_func_done(function(e) {
|
document.addEventListener("securitypolicyviolation", t_spv.step_func_done(function(e) {
|
||||||
assert_equals("style-src", e.violatedDirective);
|
assert_equals("style-src", e.violatedDirective);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
var l = document.createElement("link");
|
||||||
|
l.setAttribute("href", "/content-security-policy/style-src/resources/style-src-import.sub.css");
|
||||||
|
l.setAttribute("rel", "stylesheet");
|
||||||
|
l.setAttribute("type", "text/css");
|
||||||
|
document.head.appendChild(l);
|
||||||
</script>
|
</script>
|
||||||
<link href="/content-security-policy/style-src/resources/style-src-import.sub.css" rel=stylesheet type=text/css>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id='log'></div>
|
<div id='log'></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user