зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 65146cc073d4 (bug 1359017)
This commit is contained in:
Родитель
f155e6119f
Коммит
e313ec3dd9
|
@ -24,5 +24,4 @@ interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
|
|||
void close();
|
||||
|
||||
attribute EventHandler onmessage;
|
||||
attribute EventHandler onmessageerror;
|
||||
};
|
||||
|
|
|
@ -22,7 +22,6 @@ interface Worker : EventTarget {
|
|||
void postMessage(any message, optional sequence<object> transfer = []);
|
||||
|
||||
attribute EventHandler onmessage;
|
||||
attribute EventHandler onmessageerror;
|
||||
};
|
||||
|
||||
Worker implements AbstractWorker;
|
||||
|
|
|
@ -755,7 +755,7 @@ public:
|
|||
}
|
||||
|
||||
if (NS_WARN_IF(rv.Failed())) {
|
||||
DispatchError(aTarget);
|
||||
xpc::Throw(aCx, rv.StealNSResult());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -814,21 +814,6 @@ private:
|
|||
return DispatchDOMEvent(aCx, aWorkerPrivate, aWorkerPrivate->GlobalScope(),
|
||||
false);
|
||||
}
|
||||
|
||||
void
|
||||
DispatchError(DOMEventTargetHelper* aTarget)
|
||||
{
|
||||
MessageEventInit init;
|
||||
init.mBubbles = false;
|
||||
init.mCancelable = false;
|
||||
|
||||
RefPtr<Event> event =
|
||||
MessageEvent::Constructor(aTarget, NS_LITERAL_STRING("messageerror"), init);
|
||||
event->SetTrusted(true);
|
||||
|
||||
bool dummy;
|
||||
aTarget->DispatchEvent(event, &dummy);
|
||||
}
|
||||
};
|
||||
|
||||
class DebuggerMessageEventRunnable : public WorkerDebuggerRunnable {
|
||||
|
|
|
@ -882,7 +882,6 @@ public:
|
|||
FlushReportsToSharedWorkers(nsIConsoleReportCollector* aReporter);
|
||||
|
||||
IMPL_EVENT_HANDLER(message)
|
||||
IMPL_EVENT_HANDLER(messageerror)
|
||||
IMPL_EVENT_HANDLER(error)
|
||||
|
||||
// Check whether this worker is a secure context. For use from the parent
|
||||
|
|
|
@ -251,7 +251,6 @@ public:
|
|||
Close(JSContext* aCx);
|
||||
|
||||
IMPL_EVENT_HANDLER(message)
|
||||
IMPL_EVENT_HANDLER(messageerror)
|
||||
};
|
||||
|
||||
class SharedWorkerGlobalScope final : public WorkerGlobalScope
|
||||
|
@ -397,7 +396,6 @@ public:
|
|||
PostMessage(const nsAString& aMessage);
|
||||
|
||||
IMPL_EVENT_HANDLER(message)
|
||||
IMPL_EVENT_HANDLER(messageerror)
|
||||
|
||||
void
|
||||
SetImmediate(Function& aHandler, ErrorResult& aRv);
|
||||
|
|
Загрузка…
Ссылка в новой задаче