Skip to content

Commit

Permalink
Make sure the new tab URL is always valid
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 committed Sep 23, 2023
1 parent 5fac09b commit 49bc668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/userchrome/profile/chrome/pwa/content/browser.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ class PwaBrowser {
const win = Services.wm.getMostRecentWindow('navigator:browser');
const userStartUrl = win.gFFPWASiteConfig?.config.start_url;
const manifestStartUrl = win.gFFPWASiteConfig?.manifest.start_url;
return userStartUrl ? userStartUrl : manifestStartUrl;
return userStartUrl || manifestStartUrl || 'about:blank';
}
});

Expand Down

0 comments on commit 49bc668

Please sign in to comment.