[Webkit-unassigned] [Bug 26147] No support of DOM events on a frameless document

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 4 02:50:04 PDT 2011


Loic Dachary <loic at dachary.org> changed:

           What    |Removed                     |Added
                 CC|                            |loic at dachary.org

--- Comment #4 from Loic Dachary <loic at dachary.org>  2011-10-04 02:50:04 PST ---
In order to figure out where the problem happens, the execution of the proposed test case is run step by step under gdb, comparing what happens with :


where document is the document being displayed and


where doc is the result of

var doc = parser.parseFromString(thatDoc, 'text/xml');

It differs in

  void JSEventListener::handleEvent(ScriptExecutionContext* scriptExecutionContext, Event* event)
    JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(scriptExecutionContext, m_isolatedWorld.get());
      if (!globalObject)

where globalObject is null for the parsed XML document and the handler is therefore not fired. The reason why it is null is because the scriptExecutionContext->frame() function returns null. It matches the diagnostic of the bug report claiming that the problem does not exist when the XML document is loaded using an iframe.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list