зеркало из https://github.com/mozilla/gecko-dev.git
Bug 999456. Page load events should not be cancelable. r=smaug
This commit is contained in:
Родитель
deaae1898e
Коммит
1c698d2d65
|
@ -16,6 +16,7 @@ support-files =
|
|||
[test_bug978522.html]
|
||||
[test_bug979109.html]
|
||||
[test_bug989665.html]
|
||||
[test_bug999456.html]
|
||||
[test_clearTimeoutIntervalNoArg.html]
|
||||
[test_consoleEmptyStack.html]
|
||||
[test_constructor-assignment.html]
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=999456
|
||||
-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test for Bug 999456</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
<script type="application/javascript">
|
||||
|
||||
/** Test for Bug 999456 **/
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
addEventListener("load", function (e) {
|
||||
ise(e.cancelable, false, "Load events should not be cancelable");
|
||||
SimpleTest.finish();
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=999456">Mozilla Bug 999456</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
|
||||
</div>
|
||||
<pre id="test">
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
|
@ -958,6 +958,7 @@ nsDocumentViewer::LoadComplete(nsresult aStatus)
|
|||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
WidgetEvent event(true, NS_LOAD);
|
||||
event.mFlags.mBubbles = false;
|
||||
event.mFlags.mCancelable = false;
|
||||
// XXX Dispatching to |window|, but using |document| as the target.
|
||||
event.target = mDocument;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче