WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
54034
ScriptExecutionContext shutdown is a bit of a mess
https://bugs.webkit.org/show_bug.cgi?id=54034
Summary
ScriptExecutionContext shutdown is a bit of a mess
Jeremy Orlow
Reported
2011-02-08 14:34:50 PST
Message ports are closed in "stopActiveDOMObjects". The function should probably be renamed or split in two. The blob stuff is shut down in ~ScriptExecutionContext, but the object is ref counted, so when this happens is not deterministic. It should probably be done with the message ports are closed, but... void FrameLoader::frameDetached() does |m_frame->document()->stopActiveDOMObjects();| and then |detachFromParent();| which fires the unload handlers. So, in theory, new active dom objects or message ports could be created there, right? Perhaps there are other problems as well? I'm not an expert on this stuff, but I'm happy to take a crack at cleaning it up.
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug