diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
commit | d8bbc7858622b6d9c278469aab701ca0b609cddf (patch) | |
tree | eff41dc61d9f714852212739e6b3738b82a2af87 /toolkit/components/viewsource | |
parent | Releasing progress-linux version 125.0.3-1~progress7.99u1. (diff) | |
download | firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/viewsource')
4 files changed, 7 insertions, 7 deletions
diff --git a/toolkit/components/viewsource/content/viewSourceUtils.js b/toolkit/components/viewsource/content/viewSourceUtils.js index 69d3eff287..bc85bb3c1b 100644 --- a/toolkit/components/viewsource/content/viewSourceUtils.js +++ b/toolkit/components/viewsource/content/viewSourceUtils.js @@ -62,8 +62,8 @@ var gViewSourceUtils = { } // Try existing browsers first. let browserWin = Services.wm.getMostRecentWindow("navigator:browser"); - if (browserWin && browserWin.BrowserViewSourceOfDocument) { - browserWin.BrowserViewSourceOfDocument(aArgs); + if (browserWin && browserWin.BrowserCommands.viewSourceOfDocument) { + browserWin.BrowserCommands.viewSourceOfDocument(aArgs); return; } // No browser window created yet, try to create one. diff --git a/toolkit/components/viewsource/test/browser/browser_contextmenu.js b/toolkit/components/viewsource/test/browser/browser_contextmenu.js index afc8ab8c84..12244f7589 100644 --- a/toolkit/components/viewsource/test/browser/browser_contextmenu.js +++ b/toolkit/components/viewsource/test/browser/browser_contextmenu.js @@ -42,7 +42,7 @@ async function onViewSourceWindowOpen(aWindow) { gCopyEmailMenuItem = aWindow.document.getElementById("context-copyemail"); let browser = gBrowser.selectedBrowser; - await SpecialPowers.spawn(browser, [], async function (arg) { + await SpecialPowers.spawn(browser, [], async function () { let tags = content.document.querySelectorAll("a[href]"); Assert.equal( tags[0].href, diff --git a/toolkit/components/viewsource/test/browser/browser_viewsource_newwindow.js b/toolkit/components/viewsource/test/browser/browser_viewsource_newwindow.js index 8a38d94719..e141e94150 100644 --- a/toolkit/components/viewsource/test/browser/browser_viewsource_newwindow.js +++ b/toolkit/components/viewsource/test/browser/browser_viewsource_newwindow.js @@ -33,7 +33,7 @@ add_task(async function () { }, async browser => { let winPromise = waitForNewViewSourceWindow("view-source:" + PAGE); - BrowserViewSource(browser); + BrowserCommands.viewSource(browser); let win = await winPromise; ok(win, "View Source opened up in a new window."); @@ -58,14 +58,14 @@ add_task(async function () { url: "data:text/html," + source, gBrowser, }, - async browser => { + async () => { let winPromise = waitForNewViewSourceWindow( "view-source:data:text/html;charset=utf-8,%3Cp%3E%EF%B7%90test%EF%B7%AF%3C%2Fp%3E" ); await SpecialPowers.spawn( gBrowser.selectedBrowser, [], - async function (arg) { + async function () { let element = content.document.querySelector("p"); content.getSelection().selectAllChildren(element); } diff --git a/toolkit/components/viewsource/test/browser/head.js b/toolkit/components/viewsource/test/browser/head.js index a75c6a8658..083c169c0a 100644 --- a/toolkit/components/viewsource/test/browser/head.js +++ b/toolkit/components/viewsource/test/browser/head.js @@ -43,7 +43,7 @@ async function waitForViewSourceTab(open) { */ function openViewSourceForBrowser(browser) { return waitForViewSourceTab(() => { - window.BrowserViewSource(browser); + window.BrowserCommands.viewSource(browser); }); } |