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) {
|
testWorkerChatWindow: function(next) {
|
||||||
|
const chatUrl = "https://example.com/browser/browser/base/content/test/social_chat.html";
|
||||||
let port = Social.provider.port;
|
let port = Social.provider.port;
|
||||||
ok(port, "provider has a port");
|
ok(port, "provider has a port");
|
||||||
port.onmessage = function (e) {
|
port.onmessage = function (e) {
|
||||||
@ -103,10 +104,11 @@ var tests = {
|
|||||||
chats.selectedChat.close();
|
chats.selectedChat.close();
|
||||||
}
|
}
|
||||||
ok(!chats.selectedChat, "chats are all closed");
|
ok(!chats.selectedChat, "chats are all closed");
|
||||||
|
ensureSocialUrlNotRemembered(chatUrl);
|
||||||
next();
|
next();
|
||||||
break;
|
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});
|
testPort.postMessage({topic:"got-flyout-visibility", result: event.data.result});
|
||||||
break;
|
break;
|
||||||
case "test-worker-chat":
|
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;
|
break;
|
||||||
case "social.initialize":
|
case "social.initialize":
|
||||||
// This is the workerAPI port, respond and set up a notification icon.
|
// This is the workerAPI port, respond and set up a notification icon.
|
||||||
|
Loading…
Reference in New Issue
Block a user