Closed Bug 1351614 Opened 7 years ago Closed 7 years ago

Single ghost window with addons

Categories

(Core :: DOM: Core & HTML, defect, P3)

54 Branch
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: marcino245, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

Attached file ghost window logs.7z
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170325004004

Steps to reproduce:

Originally derivied from:
 
https://bugzilla.mozilla.org/show_bug.cgi?id=1326095#c46 and
https://bugzilla.mozilla.org/show_bug.cgi?id=1326095#c47 (as requested).

I'm not sure if this is a new issue or not, therefore I didn't know if I should fil a new bug or not, but I've decided to do so. It is the same issue like in:

https://bugzilla.mozilla.org/show_bug.cgi?id=1326095#c46

but the only differences are that now:
1) I've switched back from AdBlock Plus to uBlock Origin
2) the ghost windows contain regular www urls instead of "about:blank"


Also I'm not sure if the title should be "ghost windows" or "a single ghost window",  as for now after very long several-days session, only a single ghost window has appeared, like in:

https://bugzilla.mozilla.org/show_bug.cgi?id=1326095#c46

but I've been seeing also 2 or 3 ghost windows at once in some of my previous webrowsing sessions on some older dev builds, so I'm not sure if another ghost windows might appear or not.

I've been experiencing the ghost windows issue in dozen of last dev builds, waiting over and over for another new builds in hope one of them will fix the ghost windows permanently, but the (single) ghost windows still are there. I'm getting tired restarting the browser everyday with every new dev build and runnning another long (at least several-hours) webbrowsing session over and over to check if the issue has been fixed, and aspecially running a session with all add-ons disabled - it's a nightmare, so please be so glad to don't request me to run another long session with all add-ons disabled. Especially that already has been proven that it has been Firefox having issue with ghost windows recently, nor Adblock Plus neither uBlock Origin.



Actual results:

A single ghost window has appeared.


Expected results:

Ghost windows shouldn't appear.
Summary: Ghost window(s?) → Ghost window(s)
Component: Untriaged → DOM
Flags: needinfo?(continuation)
Product: Firefox → Core
Thanks for filing a new bug.

Are the ghost window URLs always from a particular site or a particular type of site (like a site with videos)? Are you doing anything in particular on those sites?

Without steps to reproduce the leak you are seeing it will be very hard to fix the issue.
Blocks: GhostWindows
Flags: needinfo?(continuation)
Summary: Ghost window(s) → Ghost window(s) on www.polsatsport.pl with addons
(In reply to Andrew McCreight [:mccr8] from comment #1)

The ghost window appears randomly on any webpage, not only on www.polastsport.pl. If I restart the browser, next time the ghost window will contain an url of a different webpage, and so on, even if the webpage doesn't contain any videos, definatley not related to a particular webpage nor to webpages contating videos, however I've been seeing  ghost windows mostly on webpages containing videos, including many porn tubes.

There is no specific steps (at least I've not yet found one) to reproduce other than just typical webbrowsing with opening and closing tabs, watching videos, scrolling, checking emails, and many other things. 

I don't know if it will help but I've attached some logs from Release 52. Also there is a short summary about the whole ghost windows issue.

1) On Release 50.1.0 - I've been experiencing like 50-60 ghost windows at once ---> see Bug 1326095
2) On Release 52 - I've been experiencing like 7 ghost windows at once ---> see the attached logs
3) On Dev 53.0a2 20170303004003 - I've been experiencing a single ghost window with "about:blank" --> see:
https://bugzilla.mozilla.org/show_bug.cgi?id=1326095#c46
4) Now on Dev 54.0a2 20170325004004 I experience still a single ghost window but with real www urls.

It seems that the whole ghost windows issue has been fixed at like 95% now.
Another dev, another session, another single ghost window, different url, this time pornhub.com. I told you. The title part containing an url should be changed to "on random websites", this is definately not a single website related.
Alright, I'll update it. It is odd that there's only a single ghost window, but at least that makes it less severe.
Summary: Ghost window(s) on www.polsatsport.pl with addons → Single ghost window with addons
Priority: -- → P3
I confirm that it is a single ghost windows issue, no additional ghost windows after a long and intensive mutliple tabs  48h webbrowsing session, also it is still the same ghost window (url) over the whole session time, that means once the ghost window is generated, it gets locked-down,  will remain forever and won't change (won't get replaced by another different ghost windows) until the browser is restarted and a new session is ran.
Hmm okay this is very strange, I've measured about:memory right before making Comment 6, and there was only 1 ghost window: the pornhub.com one, and now right after making Comment 6 wherein I've been declaring that it is only a single ghost window issue, I've measured about:memory again and another ghost windows has appeared! The about:blank one from:
https://bugzilla.mozilla.org/show_bug.cgi?id=1326095#c42
https://bugzilla.mozilla.org/show_bug.cgi?id=1326095#c46

is back!:

> 2 (100.0%) -- ghost-windows
> ├──1 (50.00%) ── about:blank
> └──1 (50.00%) ── https://www.pornhub.com/view_video.php?viewkey=1639047261

> │   ├───6.47 MB (02.08%) -- top(none)
> │   │   ├──6.47 MB (02.08%) -- ghost
> │   │   │  ├──6.43 MB (02.07%) ++ window(https://www.pornhub.com/view_video.php?viewkey=1639047261)
> │   │   │  └──0.04 MB (00.01%) -- window(about:blank)
> │   │   │     ├──0.04 MB (00.01%) -- js-compartment(https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1&ltmpl=default&ltmplcache=2&emr=1&osid=1, about:blank)
> │   │   │     │  ├──0.03 MB (00.01%) -- classes
> │   │   │     │  │  ├──0.03 MB (00.01%) -- class(Function)/objects
> │   │   │     │  │  │  ├──0.03 MB (00.01%) ── gc-heap
> │   │   │     │  │  │  └──0.00 MB (00.00%) ── malloc-heap/slots
> │   │   │     │  │  └──0.01 MB (00.00%) -- class(<non-notable classes>)/objects
> │   │   │     │  │     ├──0.00 MB (00.00%) ── malloc-heap/slots
> │   │   │     │  │     └──0.00 MB (00.00%) ── gc-heap
> │   │   │     │  └──0.00 MB (00.00%) -- sundries
> │   │   │     │     ├──0.00 MB (00.00%) ── malloc-heap
> │   │   │     │     └──0.00 MB (00.00%) ── gc-heap
> │   │   │     ├──0.00 MB (00.00%) -- dom
> │   │   │     │  ├──0.00 MB (00.00%) ── other
> │   │   │     │  └──0.00 MB (00.00%) ── element-nodes
> │   │   │     └──0.00 MB (00.00%) ── style-sheets
> │   │   └──0.00 MB (00.00%) ++ detached

So this is not a single ghost issue anymore, it's now a double ghost windows issue, but at any time an another ghost window may appear, then it may become a triple ghost windows issue.
Really strange: now right after closing the tab: 

> https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1&ltmpl=default&ltmplcache=2&emr=1&osid=1

which was triggering the about:blank ghost window as seen above, the about:blank ghost window has dissapeared:

> 1 (100.0%) -- ghost-windows
> └──1 (100.0%) ── https://www.pornhub.com/view_video.php?viewkey=1639047261

And then now in Firefox I've clicked return previoulsy closed tab, and the about:blank ghost window is back again:

> 2 (100.0%) -- ghost-windows
> ├──1 (50.00%) ── about:blank
> └──1 (50.00%) ── https://www.pornhub.com/view_video.php?viewkey=1639047261

Now I've closed the gmail tab again, measured the memory again several times right after closing the tab and the about:blank ghost windows is gone again, but it has needed about 60 secs to pass (it wasn't gone after first several measures before 60 sec has passed):

> 1 (100.0%) -- ghost-windows
> └──1 (100.0%) ── https://www.pornhub.com/view_video.php?viewkey=1639047261

I can say that at the moment I'm in a state in which I can trigger the about:blank ghost window.
It's seems that one of recent Devs has fixed the issue completely, because since several days I've had no ghost windows anymore neighter with uBlock Origin nor with AdBlock Plus.
That's good. I'm sorry I wasn't able to figure out what was going on here.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: