mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784236 - Ensure chat windows don't end up in history/places. r=mixedpuppy
This commit is contained in:
parent
263b4a6af5
commit
6c6c10f735
@ -91,6 +91,7 @@ var tests = {
|
||||
}
|
||||
},
|
||||
testWorkerChatWindow: function(next) {
|
||||
const chatUrl = "https://example.com/browser/browser/base/content/test/social_chat.html";
|
||||
let port = Social.provider.port;
|
||||
ok(port, "provider has a port");
|
||||
port.onmessage = function (e) {
|
||||
@ -103,10 +104,11 @@ var tests = {
|
||||
chats.selectedChat.close();
|
||||
}
|
||||
ok(!chats.selectedChat, "chats are all closed");
|
||||
ensureSocialUrlNotRemembered(chatUrl);
|
||||
next();
|
||||
break;
|
||||
}
|
||||
}
|
||||
port.postMessage({topic: "test-worker-chat" });
|
||||
port.postMessage({topic: "test-worker-chat", data: chatUrl});
|
||||
}
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ onconnect = function(e) {
|
||||
testPort.postMessage({topic:"got-flyout-visibility", result: event.data.result});
|
||||
break;
|
||||
case "test-worker-chat":
|
||||
apiPort.postMessage({topic: "social.request-chat", data: "https://example.com/browser/browser/base/content/test/social_chat.html" });
|
||||
apiPort.postMessage({topic: "social.request-chat", data: event.data.data });
|
||||
break;
|
||||
case "social.initialize":
|
||||
// This is the workerAPI port, respond and set up a notification icon.
|
||||
|
Loading…
Reference in New Issue
Block a user