While I'll be waiting for a result,

Is there a way to check where nodes created by JS are destroyed ?
Should they be automatically destroyed no matter what if we're leaving a page ?

Thank you,
Andrey



From: Antonio Gomes [mailto:toniki...@gmail.com]
Sent: Tuesday, March 06, 2012 6:16 AM
To: Yanov, Andrey
Cc: webkit-help@lists.webkit.org
Subject: Re: [webkit-help] HTMLAudioElement not deleted on leaving page

Please file a bug in bugs.webkit.org<http://bugs.webkit.org> and attach your 
reduced test case. It is also important to mention:

- any non obvious step needed to reproduce this;
- what version (revision, release, etc) of webkit you use;
- and what webkit port.

Cheers,
On Mon, Mar 5, 2012 at 1:37 PM, Yanov, Andrey 
<aya...@luxoft.com<mailto:aya...@luxoft.com>> wrote:
Hi dev team and everyone else.

I'm having an issue I'm trying to figure out.
I've got an HTMLAudioElement created by JS on page 
cuttherope.ie<http://cuttherope.ie>.
The element is created and even receives a url to load.
However, the element is not given a parent, or a sibling, thus is not added to 
any container element.
As a result, when navigating away from the page, it doesn't get destroyed 
(since not a part of a DOM tree).
I have very little idea how JS engine is working, could you please direct me 
where to look next ?

I would appreciate any help.
Here is the stack:
38 HTMLAudioElement() D:\Prj\wk2\Source\WebCore\html\HTMLAudioElement.cpp:42 
0xba1a00ef
37 WebCore::HTMLAudioElement::create() 
D:\Prj\wk2\Source\WebCore\html\HTMLAudioElement.cpp:62 0xba1a0610
36 audioConstructor() 
\home\ayanov\Source\_products\NBT-Debug\DerivedSources\WebCore\HTMLElementFactory.cpp:159
 0xb9ef37fc
35 WebCore::HTMLElementFactory::createHTMLElement() 
\home\ayanov\Source\_products\NBT-Debug\DerivedSources\WebCore\HTMLElementFactory.cpp:649
 0xb9ef59c5
34 WebCore::HTMLDocument::createElement() 
D:\Prj\wk2\Source\WebCore\html\HTMLDocument.cpp:313 0xb97b3115
33 WebCore::jsDocumentPrototypeFunctionCreateElement() 
\home\ayanov\Source\_products\NBT-Debug\DerivedSources\WebCore\JSDocument.cpp:1911
 0xb9d4d383
32 JSC::Interpreter::privateExecute() 
D:\Prj\wk2\Source\JavaScriptCore\interpreter\Interpreter.cpp:4004 0xba3ee357
31 JSC::Interpreter::execute() 
D:\Prj\wk2\Source\JavaScriptCore\interpreter\Interpreter.cpp:831 0xba3e0733
30 JSC::evaluate() D:\Prj\wk2\Source\JavaScriptCore\runtime\Completion.cpp:64 
0xba408bbc
29 WebCore::JSMainThreadExecState::evaluate() 
D:\Prj\wk2\Source\WebCore\bindings\js\JSMainThreadExecState.h:54 0xb9cf7bc7
28 WebCore::ScriptController::evaluateInWorld() 
D:\Prj\wk2\Source\WebCore\bindings\js\ScriptController.cpp:141 0xb9d0bc8e
27 WebCore::ScriptController::evaluate() 
D:\Prj\wk2\Source\WebCore\bindings\js\ScriptController.cpp:164 0xb9d0be16
26 WebCore::ScriptElement::executeScript() 
D:\Prj\wk2\Source\WebCore\dom\ScriptElement.cpp:285 0xba007bb3
25 WebCore::HTMLScriptRunner::executePendingScriptAndDispatchEvent() 
D:\Prj\wk2\Source\WebCore\html\parser\HTMLScriptRunner.cpp:139 0xb9818b6c
24 WebCore::HTMLScriptRunner::executeParsingBlockingScript() 
D:\Prj\wk2\Source\WebCore\html\parser\HTMLScriptRunner.cpp:118 0xb98189ff
23 WebCore::HTMLScriptRunner::executeParsingBlockingScripts() 
D:\Prj\wk2\Source\WebCore\html\parser\HTMLScriptRunner.cpp:195 0xb9818eba
22 WebCore::HTMLScriptRunner::execute() 
D:\Prj\wk2\Source\WebCore\html\parser\HTMLScriptRunner.cpp:178 0xb9818e33
21 WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder() 
D:\Prj\wk2\Source\WebCore\html\parser\HTMLDocumentParser.cpp:205 0xb9811900
20 WebCore::HTMLDocumentParser::canTakeNextToken() 
D:\Prj\wk2\Source\WebCore\html\parser\HTMLDocumentParser.cpp:223 0xb98119b5
19 WebCore::HTMLDocumentParser::pumpTokenizer() 
D:\Prj\wk2\Source\WebCore\html\parser\HTMLDocumentParser.cpp:261 0xb9811d26
18 WebCore::HTMLDocumentParser::resumeParsingAfterYield() 
D:\Prj\wk2\Source\WebCore\html\parser\HTMLDocumentParser.cpp:192 0xb98117dd
17 WebCore::HTMLParserScheduler::continueNextChunkTimerFired() 
D:\Prj\wk2\Source\WebCore\html\parser\HTMLParserScheduler.cpp:87 0xb98173fb


Thank you and have a nice day!
Andrey Yanov

________________________________
This e-mail and any attachment(s) are intended only for the recipient(s) named 
above and others who have been specifically authorized to receive them. They 
may contain confidential information. If you are not the intended recipient, 
please do not read this email or its attachment(s). Furthermore, you are hereby 
notified that any dissemination, distribution or copying of this e-mail and any 
attachment(s) is strictly prohibited. If you have received this e-mail in 
error, please immediately notify the sender by replying to this e-mail and then 
delete this e-mail and any attachment(s) or copies thereof from your system. 
Thank you.

_______________________________________________
webkit-help mailing list
webkit-help@lists.webkit.org<mailto:webkit-help@lists.webkit.org>
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help



--
--Antonio Gomes

________________________________
This e-mail and any attachment(s) are intended only for the recipient(s) named 
above and others who have been specifically authorized to receive them. They 
may contain confidential information. If you are not the intended recipient, 
please do not read this email or its attachment(s). Furthermore, you are hereby 
notified that any dissemination, distribution or copying of this e-mail and any 
attachment(s) is strictly prohibited. If you have received this e-mail in 
error, please immediately notify the sender by replying to this e-mail and then 
delete this e-mail and any attachment(s) or copies thereof from your system. 
Thank you.
_______________________________________________
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to