mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 718260 - Fix a crash in DispatchPrematureAbortEvent; r=bent
This commit is contained in:
parent
9ff2ccdd5f
commit
ab0288a76e
@ -1604,10 +1604,14 @@ XMLHttpRequest::DispatchPrematureAbortEvent(JSObject* aTarget,
|
||||
ErrorResult& aRv)
|
||||
{
|
||||
mWorkerPrivate->AssertIsOnWorkerThread();
|
||||
MOZ_ASSERT(mProxy);
|
||||
MOZ_ASSERT(aTarget);
|
||||
MOZ_ASSERT(aEventType <= STRING_COUNT);
|
||||
|
||||
if (!mProxy) {
|
||||
aRv.Throw(NS_ERROR_FAILURE);
|
||||
return;
|
||||
}
|
||||
|
||||
JSContext* cx = GetJSContext();
|
||||
|
||||
JSString* type = JS_NewStringCopyZ(cx, sEventStrings[aEventType]);
|
||||
|
@ -35,15 +35,9 @@ Tests of DOM Worker Threads XHR(Bug 450452 )
|
||||
worker.postMessage("start");
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
runTest();
|
||||
|
||||
const isWinXP = navigator.userAgent.indexOf("Windows NT 5.1") != -1;
|
||||
if (isWinXP){
|
||||
todo(false, "Test disabled on WinXP due to bug 718260 crashes");
|
||||
SimpleTest.finish();
|
||||
} else {
|
||||
runTest();
|
||||
}
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user