Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of scope links no longer open in default browser #646

Closed
acorazza opened this issue Feb 12, 2025 · 3 comments
Closed

Out of scope links no longer open in default browser #646

acorazza opened this issue Feb 12, 2025 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@acorazza
Copy link

acorazza commented Feb 12, 2025

Description

I use a PWA for Fastmail. Until today, clicking an out-of-scope link opened the link in Firefox. Now I get a system dialog that says "open the https link with Firefox?" and nothing happens when clicking the "open link" button.

Steps to Reproduce

  1. Set out of scope links to open in browser
  2. Click out of scope link
  3. Click "open link"

Environment

  • Operating system: EndeavourOS / Arch Linux
  • System architecture: x86
  • Desktop environment: KDE Plasma 6
  • Installation method: Firefox Nightly tar
  • PWAsForFirefox extension version: 2.13.3
  • PWAsForFirefox native version: Not sure where to find this
  • PWAsForFirefox runtime version: 2.14.0
  • Firefox version: 137.0a1
@acorazza acorazza added the bug Something isn't working label Feb 12, 2025
@acorazza acorazza changed the title Out of scope links no longer work Out of scope links no longer open in default browser Feb 12, 2025
@filips123 filips123 moved this to To Do in PWAsForFirefox Feb 12, 2025
@filips123 filips123 moved this from To Do to In Progress in PWAsForFirefox Feb 12, 2025
@filips123
Copy link
Owner

filips123 commented Feb 12, 2025

I can reproduce that a dialog is opened and will fix that, but for me, clicking on "open link" still works fine. Please try to get the runtime logs when you click on that button. Also, check in the settings of the app browser that Firefox is set as a handler for HTTP(s) links:

Image

@github-project-automation github-project-automation bot moved this from In Progress to Done in PWAsForFirefox Feb 12, 2025
@filips123 filips123 reopened this Feb 12, 2025
@acorazza
Copy link
Author

acorazza commented Feb 12, 2025

I should have mentioned this in my first post, but thank you for your work on this plugin, it's incredibly helpful!

The HTTPS thing fixed it; it was set to "Firefox", not "Firefox Nightly". I'm not sure why it stopped working out of nowhere, but the dialog box now works.

This is the console output of the runtime log:

Uncaught TypeError: this._button is null
init chrome://browser/content/browser-addons.js:1663
onDOMContentLoaded chrome://browser/content/browser-init.js:222

init chrome://browser/content/browser-addons.js:1663
onDOMContentLoaded chrome://browser/content/browser-init.js:222

@filips123
Copy link
Owner

I think that error in the log is unrelated.

I've fixed that the dialog should no longer appear and the link should automatically open. This will be available in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants