moebius#217: WebExtensions - Implemented "runtime.onMessageExternal"/"onConnectExternal"

https://github.com/MoonchildProductions/moebius/pull/217
This commit is contained in:
janekptacijarabaci 2018-04-20 17:39:09 +02:00 committed by Roy Tam
commit 7cc4a8fa98
11 changed files with 262 additions and 42 deletions

View file

@ -108,7 +108,7 @@ add_task(function* test_legacy_extension_context() {
"Got the expected message");
ok(msgSender, "Got a message sender object");
equal(msgSender.id, extensionInfo.uuid, "The sender has the expected id property");
equal(msgSender.id, extension.id, "The sender has the expected id property");
equal(msgSender.url, extensionInfo.bgURL, "The sender has the expected url property");
// Wait confirmation that the reply has been received.
@ -136,7 +136,7 @@ add_task(function* test_legacy_extension_context() {
ok(port, "Got the Port API object");
ok(port.sender, "The port has a sender property");
equal(port.sender.id, extensionInfo.uuid,
equal(port.sender.id, extension.id,
"The port sender has the expected id property");
equal(port.sender.url, extensionInfo.bgURL,
"The port sender has the expected url property");