Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Get URL From Unloaded Tab - Mobile Firefox 58.0.2

  • 2 replies
  • 15 have this problem
  • 1 view
  • Last reply by Kevin

more options

I am developing a Firefox Add-on for Mobile and PC . I want to get the URL from all tabs in the browser, even tabs that are not loaded.

Is there a way to get the URL from these unloaded tabs?

To be honest, i'm not sure if i asking the question right. This is affecting Firefox on android. The browser has 961 tabs open and I can only get the URL for the active ones that have been loaded. So I have 960 "about:blank" for tab URL entries. Is there a way to get the URL from these unloaded tabs? If I select an unloaded tab and rescan the tabs, i will have 959 duplicates and 1 new entry. So it only affects tabs that have not been viewed since the application started.

I have looked at browser.sessions and browser.tabs.query(). I thought maybe the tabs were being discarded and that was causing the issue but on PC if the tab is discarded I can still get the URL when I query. The mobile version is doing something with these old tabs. I don't know where to look for documentation on the feature. Thanks.

I am developing a Firefox Add-on for Mobile and PC . I want to get the URL from all tabs in the browser, even tabs that are not loaded. Is there a way to get the URL from these unloaded tabs? To be honest, i'm not sure if i asking the question right. This is affecting Firefox on android. The browser has 961 tabs open and I can only get the URL for the active ones that have been loaded. So I have 960 "about:blank" for tab URL entries. Is there a way to get the URL from these unloaded tabs? If I select an unloaded tab and rescan the tabs, i will have 959 duplicates and 1 new entry. So it only affects tabs that have not been viewed since the application started. I have looked at browser.sessions and browser.tabs.query(). I thought maybe the tabs were being discarded and that was causing the issue but on PC if the tab is discarded I can still get the URL when I query. The mobile version is doing something with these old tabs. I don't know where to look for documentation on the feature. Thanks.

All Replies (2)

more options

I'm pretty sure I found the answer. Just use a promise, reload, then discard each tab in sequence. I did it without the promise and crashed my phone like 20 times. I will update if it works, should work though, it worked on a PC with 10 discarded tabs sooo... it should work.

more options

This is an end user support forum. To get answers about addon development please use https://discourse.mozilla.org/c/add-ons/development