diff --git a/browser/base/content/test/browser_social_chatwindow.js b/browser/base/content/test/browser_social_chatwindow.js index ee7edeb296b..8aedeaec084 100644 --- a/browser/base/content/test/browser_social_chatwindow.js +++ b/browser/base/content/test/browser_social_chatwindow.js @@ -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}); } } diff --git a/browser/base/content/test/social_worker.js b/browser/base/content/test/social_worker.js index f5de29f9194..8d4b3541d3c 100644 --- a/browser/base/content/test/social_worker.js +++ b/browser/base/content/test/social_worker.js @@ -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.