Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit c01a2e5

Browse files
author
Butkovits Atila
committed
Backed out changeset b469fb3f8d08 (bug 1917373) for causing failures at browser_setDefaultBrowser.js. CLOSED TREE
1 parent 911046e commit c01a2e5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

browser/components/shell/ShellService.sys.mjs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -595,13 +595,7 @@ export var ShellService = new Proxy(ShellServiceInternal, {
595595
if (name in target) {
596596
return target[name];
597597
}
598-
// n.b. Functions may be present or absent dependent on whether the
599-
// `nsIShellService` has been queried for the interface implementing it, as
600-
// querying the interface adds it's functions to the queried JS object. This
601-
// is more likely to happen for Firefox Desktop than a Firefox Background
602-
// Task. The fix is to not rely on this behavior on the `nsIShellService`
603-
// directly, and instead query the interface containing the function.
604-
if (target.shellService && name in target.shellService) {
598+
if (target.shellService) {
605599
return target.shellService[name];
606600
}
607601
Services.console.logStringMessage(

0 commit comments

Comments
 (0)