Get url for a discarded tab?

I’m trying to create an extension that writes the urls of all the tabs to a file. Everything works correctly if the tabs are not marked as “discarded”. But, if they are, I can’t get access to the url. Is that a limitation of the tabs API or is there some way to work around it?

Thanks.

Paul

How do you even have discarded tabs? I thought Firefox’ current implementation of it was to just return false for all tab?
When I query the tabs in Nightly 58, even the once that are still pending, i.e were never loaded are not discarded, and I have never seen Firefox actively unloading tabs.

I assume it’s because I’m running the extension in Fennec. I probably should’ve mentioned that.