зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1333898 - MessageChannel messaging sets .ports to null, r=qdot
This commit is contained in:
Родитель
97a3868830
Коммит
dd65bf8d09
|
@ -53,7 +53,7 @@ function* testDirectorScriptMessagePort(directorManager) {
|
|||
exports.attach = function ({port}) {
|
||||
port.onmessage = function (evt) {
|
||||
// echo messages
|
||||
evt.source.postMessage(evt.data);
|
||||
evt.target.postMessage(evt.data);
|
||||
};
|
||||
};
|
||||
}).toString() + ")();",
|
||||
|
|
|
@ -81,7 +81,7 @@ function runDirectorRegistryActorTest() {
|
|||
module.exports = function({port}) {
|
||||
port.onmessage = function(evt) {
|
||||
// echo messages
|
||||
evt.source.postMessage(evt.data);
|
||||
evt.target.postMessage(evt.data);
|
||||
};
|
||||
};
|
||||
}).toString() + ")();",
|
||||
|
|
|
@ -139,13 +139,10 @@ private:
|
|||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
Nullable<WindowProxyOrMessagePort> source;
|
||||
source.SetValue().SetAsMessagePort() = mPort;
|
||||
|
||||
event->InitMessageEvent(nullptr, NS_LITERAL_STRING("message"),
|
||||
false /* non-bubbling */,
|
||||
false /* cancelable */, value, EmptyString(),
|
||||
EmptyString(), source, ports);
|
||||
EmptyString(), nullptr, ports);
|
||||
event->SetTrusted(true);
|
||||
|
||||
bool dummy;
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
[postMessage_event_properties.htm]
|
||||
type: testharness
|
||||
[ postMessage(): MessageEvent properties ]
|
||||
expected: FAIL
|
||||
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=952139
|
||||
|
Загрузка…
Ссылка в новой задаче