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

restarting firefox breaks tabs that have not fully opened yet #457

Closed
anarcat opened this issue Nov 1, 2024 · 3 comments
Closed

restarting firefox breaks tabs that have not fully opened yet #457

anarcat opened this issue Nov 1, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@anarcat
Copy link

anarcat commented Nov 1, 2024

Describe the bug

When I open a URL in Firefox from the outside (say with firefox http://example.com), Firefox opens a new tab which, normally, prompts me for the TabArray dialog to "select a container". I don't mind that, it's great that i get to pick the right container for tabs I open, and it gives me a preview of the URL i'm about to visit, which is a nice security feature.

If, however, firefox crashes or gets restarted before I complete the process, the extension can't recover. Instead of showing the dialog prompting me to select the container, it shows a blank page.

To Reproduce
Steps to reproduce the behavior:

  1. Open http://example.com/ from outside firefox, for example by typing the command firefox http://example.com/, so that the "Select container..." dialog is visible in a new tab
  2. Restart firefox
  3. Go on the same tab
  4. See blank page

Expected behavior

Normally, it should look like this:

image

That is, I get prompted for which container to open the page in.

Screenshots

What I get instead is this:

image

Note that even it this seems recoverable (because of that urlId there, that value is essentially opaque and seems to vary even if the same URL is loaded.

Console outputs

(will fill up this section soon, i can't right now because i need to restart the browser, which would lose this bug report)
If applicable, open about:debugging > This Firefox and select Inspect for this extension. Then copy and paste what is in the console (you can hide your private information, if any).

If you cannot find any errors there, try opening the browser console (hamburger menu > more tools > browser console).

Firefox (please complete the following information):

  • OS: Debian GNU/Linux stable 12 "Bookworm"
  • Browser edition and version ESR 128.4.0esr-1~deb12u1
  • Extension version 11.10.0.200

Additional context

I don't think it's a regression, it's a problem I've been noticing for a while and only now figured I should file a bug about it. :)

@anarcat anarcat added the bug Something isn't working label Nov 1, 2024
@anarcat
Copy link
Author

anarcat commented Nov 1, 2024

well, weird: i'm trying to reproduce this now and instead of the tab showing up as blank, the tab is just completely gone!

in any case, there's clearly data loss in this extension when dealing with crashes and restarts... not great :)

@metastable-void
Copy link
Member

This is because, the extension revokes the urlId as soon as the 'select container' page is displayed.

Possible fix: deferring revocation until the page load occurs / making url recoverable only from the query parameters data.

@metastable-void
Copy link
Member

Fixed in the git version. I intend to release a new version at AMO within a few weeks.

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
None yet
Development

No branches or pull requests

2 participants