Closed Bug 1071689 Opened 10 years ago Closed 8 years ago

CanvasBlocker addon causes ghost windows

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mccr8, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [MemShrink:P2])

Attachments

(1 file)

Addons shouldn't be able to cause ghost windows any more, but apparently CanvasBlocker does (bug 1065461 comment 10).  We should figure out how that is possible, and how we could stop it.
Add-ons should still be able to create ghost windows if they store them as references on XPCOM objects, but the CanvasBlocker add-on doesn't use any non-SDK interfaces, so I don't know what's going on there.
Whiteboard: [MemShrink] → [MemShrink:P2]
Blocks: GhostWindows
Paul, I'm sorry I never followed up on this, but I'm looking into some issues now with ghost windows caused by addons. Are you still seeing this issue with CanvasBlocker? I wasn't able to reproduce the problem myself, so if you still see it and can give me some steps to cause the leak I'd appreciate it.
Flags: needinfo?(mozilla.org)
Assignee: nobody → continuation
Yes, the issue still exists in Firefox 38 under Linux. Steps to reproduce:

1. Install CanvasBlocker from https://addons.mozilla.org/en-US/firefox/addon/canvasblocker/
2. Visit a page that uses the canvas, e.g. http://www.kevs3d.co.uk/dev/plasma/, let it load, and close it
3. Verify in about:memory that there are ghost windows, and that the are not garbage collected
4. Modify the CanvasBlocker block mode in about:addons to another type (probably doesn't matter which one); this should reset CanvasBlocker and clear the ghost windows
5. Verify in about:memory that the ghost windows are gone
Flags: needinfo?(mozilla.org)
I can't reproduce this in Firefox 38 on Linux.

Can you attach the contents of about:support and a dump from about:memory (Measure and Save)?

Thanks.
Flags: needinfo?(mozilla.org)
Attached file memory-report.json.gz (deleted) β€”
about:memory, as requested by kmag.
Flags: needinfo?(mozilla.org)
about:memory attached.

I'd rather not upload the entire about:support output; is there anything specific you're after?
It's all important, with the possible exception of the Graphics section. If there's anything you'd rather not share, it might be best to try to reproduce with a fresh profile. Or, feel free to email it to me if you'd just rather it not be public.
Also, it would really help to have a non-anonymized about:memory dump in this instance. There shouldn't be any URLs in yours other than the leaked document and some add-on URLs, both of which would be useful to see.
I can't reproduce the issue using a fresh profile, so it may be caused by an interaction between add-ons. I've emailed you the full memory and support output.

You might be surprised to learn that immediately after application startup, the memory-report.json contains several hundred URLs, mostly of favicons and app tabs. I use Firefox heavily, on a slow machine, which is why I hit all these bugs.
Assignee: continuation → nobody
The steps in comment 3 don't reproduce the leak for me any more.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: