Closed
Bug 1364610
Opened 8 years ago
Closed 4 years ago
Zombie tabs on Android report an URL of "about:blank"
Categories
(WebExtensions :: Android, enhancement, P3)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1583281
People
(Reporter: JanH, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [triaged][tab])
Technically this might be correct, but it would probably more useful to report the URL and title that would be shown if the tab was actually loaded and instead just set "discarded" to true for that tab.
For the URL we've already got this function (https://dxr.mozilla.org/mozilla-central/rev/8a7d0b15595f9916123848ca906f29c62d4914c9/mobile/android/chrome/content/browser.js#4018). We don't have anything for the title at the moment, but getting it from the session store data would work on the same principle.
(In reply to Jan Henning [:JanH] from comment #0)
> Technically this might be correct, but it would probably more useful to
> report the URL and title that would be shown if the tab was actually loaded
> and instead just set "discarded" to true for that tab.
>
> For the URL we've already got this function
> (https://dxr.mozilla.org/mozilla-central/rev/
> 8a7d0b15595f9916123848ca906f29c62d4914c9/mobile/android/chrome/content/
> browser.js#4018). We don't have anything for the title at the moment, but
> getting it from the session store data would work on the same principle.
The function you mention, how do I actually use it? I tried calling it on a Tab object, and using it like a property on a Tab object, but I can't figure it out.
This may not be the place for this, so if all you do is redirect me somewhere else I'm ok with that.
Reporter | ||
Comment 2•8 years ago
|
||
(In reply to Matthew from comment #1)
> (In reply to Jan Henning [:JanH] from comment #0)
> > Technically this might be correct, but it would probably more useful to
> > report the URL and title that would be shown if the tab was actually loaded
> > and instead just set "discarded" to true for that tab.
> >
> > For the URL we've already got this function
> > (https://dxr.mozilla.org/mozilla-central/rev/
> > 8a7d0b15595f9916123848ca906f29c62d4914c9/mobile/android/chrome/content/
> > browser.js#4018). We don't have anything for the title at the moment, but
> > getting it from the session store data would work on the same principle.
>
> The function you mention, how do I actually use it?
That's the browser's internal tab object, so from a web extension you don't. That was just meant as a note to whoever wants to fix this, as that implementation is specific to Android.
Updated•7 years ago
|
Priority: -- → P3
Whiteboard: [triaged][tab]
Updated•6 years ago
|
Blocks: tab-unloading
Updated•6 years ago
|
Product: Toolkit → WebExtensions
Comment 4•4 years ago
|
||
On GeckoView discarded tabs aren't even appearing in the extension API (bug 1583281), so this bug is kind of "fixed".
I'm however marking it as a duplicate of bug 1583281 so that whoever who works on this feature can be aware of the concern expressed in this bug.
Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(matthewjwein)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•