Hi,

In the context of https://bugs.webkit.org/show_bug.cgi?id=26147 ( No support of 
DOM events on a frameless document ) I am researching how to implement a fix. 
I'm thinking of two possible solutions, none of which is trivial. Probably 
because I'm new to the webkit codebase.

a) modify the function

   void JSEventListener::handleEvent(ScriptExecutionContext* 
scriptExecutionContext, Event* event)

   found in 
http://trac.webkit.org/browser/trunk/Source/WebCore/bindings/js/JSEventListener.cpp
   so that it does not return without doing anything when there is no frame. 
However, given the
   extensive checks related to frames found in the function, I suspect that 
would cause more problems
   than it solves.

b) modify the function

    EncodedJSValue JSC_HOST_CALL 
jsDOMParserPrototypeFunctionParseFromString(ExecState* exec)

   (or whatever generates this function) to assign the frame() of the global 
document to it.
   However, I suspect that this will have a number of undesirable side effects. 

I'm not sure if there are other ways to look for a solution. I would be very 
grateful if someone familiar with the codebase could provide me with a hint or 
point me in the right direction.

Thanks in advance

   

<<attachment: loic.vcf>>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to