[Webkit-unassigned] [Bug 85709] [JSC] Web Inspector: support JS execution in the context of an isolated world

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 22 11:59:00 PDT 2012


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





--- Comment #4 from Geoffrey Garen <ggaren at apple.com>  2012-05-22 11:58:02 PST ---
(In reply to comment #3)
> I'm trying to figure out what can be used to discriminate between different DOMWrapperWorlds on a given Frame.

Inside WebCore, we use a DOMWrapperWorld pointer. See WebCore::ScriptController::evaluateInWorld().

To map the current execution context to the current DOMWrapperWorld, we use WebCore::currentWorld():

inline DOMWrapperWorld* currentWorld(JSC::ExecState* exec)
{
    return JSC::jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->world();
}

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