Backed out changeset 6963224026cd for failing webmessaging/without-ports/026.htm.

This commit is contained in:
Kyle Huey 2016-05-22 08:46:20 -04:00
Родитель eacb809d5f
Коммит 1f71554d48
3 изменённых файлов: 0 добавлений и 29 удалений

Просмотреть файл

@ -275,7 +275,6 @@ StructuredCloneHolder::Write(JSContext* aCx,
mCreationThread == NS_GetCurrentThread());
if (!StructuredCloneHolderBase::Write(aCx, aValue, aTransfer)) {
JS_ClearPendingException(aCx);
aRv.Throw(NS_ERROR_DOM_DATA_CLONE_ERR);
return;
}

Просмотреть файл

@ -25,4 +25,3 @@ skip-if = buildapp != 'mulet'
skip-if = buildapp != 'mulet'
[test_bfcache.html]
[test_invalidState.html]
[test_dataCloning.html]

Просмотреть файл

@ -1,27 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Test for BroadcastChannel.postMessage invalid State</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<div id="content"></div>
<script type="application/javascript">
let c = new BroadcastChannel("foo");
try {
c.postMessage(Symbol());
ok(false, "This should throw!");
} catch(e) {
ok(true, "This should throw!");
is(e.name, "DataCloneError", "Correct DataCloneError exception thrown");
}
</script>
</body>
</html>