Changeset 121891 in webkit


Ignore:
Timestamp:
Jul 5, 2012 1:19:51 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: [JSC] support JS execution in the context of an isolated world
https://bugs.webkit.org/show_bug.cgi?id=85709

Patch by Peter Wang <peter.wang@torchmobile.com.cn> on 2012-07-05
Reviewed by Gavin Barraclough.

No new test case for this bug.

  • bindings/js/ScriptController.cpp:

(WebCore::ScriptController::collectIsolatedContexts):
(WebCore):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r121884 r121891  
     12012-07-05  Peter Wang  <peter.wang@torchmobile.com.cn>
     2
     3        Web Inspector: [JSC] support JS execution in the context of an isolated world
     4        https://bugs.webkit.org/show_bug.cgi?id=85709
     5
     6        Reviewed by Gavin Barraclough.
     7
     8        No new test case for this bug.
     9
     10        * bindings/js/ScriptController.cpp:
     11        (WebCore::ScriptController::collectIsolatedContexts):
     12        (WebCore):
     13
    1142012-07-04  Huang Dongsung  <luxtella@company100.net>
    215
  • trunk/Source/WebCore/bindings/js/ScriptController.cpp

    r121381 r121891  
    337337}
    338338
    339 void ScriptController::collectIsolatedContexts(Vector<std::pair<JSC::ExecState*, SecurityOrigin*> >&)
    340 {
    341     // FIXME(85709): support isolated contexts inspection for JSC.
    342 }
     339void ScriptController::collectIsolatedContexts(Vector<std::pair<JSC::ExecState*, SecurityOrigin*> >& result)
     340{
     341    for (ShellMap::iterator iter = m_windowShells.begin(); iter != m_windowShells.end(); ++iter) {
     342        JSC::ExecState* exec = iter->second->window()->globalExec();
     343        SecurityOrigin* origin = iter->second->window()->impl()->securityOrigin();
     344        result.append(std::pair<ScriptState*, SecurityOrigin*>(exec, origin));
     345    }
     346}
     347
    343348#endif
    344349
Note: See TracChangeset for help on using the changeset viewer.