зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 6963224026cd for failing webmessaging/without-ports/026.htm.
This commit is contained in:
Родитель
eacb809d5f
Коммит
1f71554d48
|
@ -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>
|
Загрузка…
Ссылка в новой задаче