[Webkit-unassigned] [Bug 107207] Support selectively wrapping DOM accesses from certain V8 contexts.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 18 09:53:05 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=107207


Ulfar Erlingsson <ulfar.chromium at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|New Bugs                    |JavaScriptGlue




--- Comment #4 from Ulfar Erlingsson <ulfar.chromium at gmail.com>  2013-01-18 09:54:53 PST ---
Support "cover wrapping" to modify select DOM accesses from select V8 contexts. 

A particular use of cover wrapping is to address bugs like BUG 160989, which 
require logging DOM access from certain contexts (e.g., Javascript extensions). 

Another use could be to easily support stats-gathering like that of the 
recently eliminated INC_STATS. 

The cover wrapping mechanisms allow a V8-based closure to be selectively 
substited for any DOM-access function pointer provided in the template tables 
that configure the DOM objects accessible to a V8 execution context. 

Notably, those tables (V8DOMConfiguration::BatchedAttribute) are automatically 
generated from a Perl script that is changed to provide an extra indirection to 
any info arguments (by using a new WrapperTypeInfo** infoAddr variable). This 
change enables cover wrapper closures to make use of the implicitly-provided 
arguments args.Data() and info.Data() to each V8 accessor or method callback.

-- 
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