mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Update web-platform-tests to revision acdb8bf3e4714528b6b5f9ff038dc80ee4fb7dcf
This commit is contained in:
@@ -23,7 +23,20 @@ function run_test() {
|
||||
}, "product");
|
||||
|
||||
test(function() {
|
||||
assert_false(navigator.taintEnabled());
|
||||
// See https://www.w3.org/Bugs/Public/show_bug.cgi?id=22555
|
||||
if ("window" in self) {
|
||||
// If you identify as WebKit, taintEnabled should not exist.
|
||||
if (navigator.userAgent.indexOf("WebKit") != -1) {
|
||||
assert_false("taintEnabled" in navigator);
|
||||
}
|
||||
// Otherwise it should exist and return false.
|
||||
else {
|
||||
assert_false(navigator.taintEnabled());
|
||||
}
|
||||
} else {
|
||||
// taintEnabled should not exist in workers.
|
||||
assert_false("taintEnabled" in navigator);
|
||||
}
|
||||
}, "taintEnabled");
|
||||
|
||||
test(function() {
|
||||
|
||||
Reference in New Issue
Block a user