fix(test): fix expectation of tabs-sendmessage in Firefox (#251)
Upstream regression got fixed @ https://bugzilla.mozilla.org/show_bug.cgi?id=1665568
This commit is contained in:
parent
85c5dfb84a
commit
3ba72c96a9
|
@ -4,9 +4,11 @@ test("tabs.sendMessage reject when sending to unknown tab id", async (t) => {
|
||||||
const firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || ["", "0"])[1];
|
const firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || ["", "0"])[1];
|
||||||
if (firefoxVersion === 79) {
|
if (firefoxVersion === 79) {
|
||||||
// Value of error message regressed in:
|
// Value of error message regressed in:
|
||||||
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1583484
|
||||||
|
// and got fixed in Firefox 83 in:
|
||||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1665568
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1665568
|
||||||
errorMessage = "Error: tab is null";
|
errorMessage = "Error: tab is null";
|
||||||
} else if (firefoxVersion >= 80) {
|
} else if (firefoxVersion >= 80 && firefoxVersion < 83) {
|
||||||
// Raw error message leaked until it got sanitized again with
|
// Raw error message leaked until it got sanitized again with
|
||||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1655624
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1655624
|
||||||
errorMessage = "An unexpected error occurred";
|
errorMessage = "An unexpected error occurred";
|
||||||
|
|
Loading…
Reference in New Issue