Changeset 145353 in webkit


Ignore:
Timestamp:
Mar 11, 2013 3:44:33 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[V8] Fix V8InjectedScriptManager
https://bugs.webkit.org/show_bug.cgi?id=111968

Patch by Marja Hölttä <marja@chromium.org> on 2013-03-11
Reviewed by Kentaro Hara.

This is needed to make the inspector work after templates for main world
and non-main worlds are separated (bug 111724).

No new tests (no changes in functionality).

  • bindings/v8/custom/V8InjectedScriptManager.cpp:

(WebCore::InjectedScriptManager::canAccessInspectedWindow):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r145352 r145353  
     12013-03-11  Marja Hölttä  <marja@chromium.org>
     2
     3        [V8] Fix V8InjectedScriptManager
     4        https://bugs.webkit.org/show_bug.cgi?id=111968
     5
     6        Reviewed by Kentaro Hara.
     7
     8        This is needed to make the inspector work after templates for main world
     9        and non-main worlds are separated (bug 111724).
     10
     11        No new tests (no changes in functionality).
     12
     13        * bindings/v8/custom/V8InjectedScriptManager.cpp:
     14        (WebCore::InjectedScriptManager::canAccessInspectedWindow):
     15
    1162013-03-11  Hayato Ito  <hayato@chromium.org>
    217
  • trunk/Source/WebCore/bindings/v8/custom/V8InjectedScriptManager.cpp

    r144617 r145353  
    121121    v8::Handle<v8::Object> holder = global->FindInstanceInPrototypeChain(V8DOMWindow::GetTemplate(context->GetIsolate(), MainWorld));
    122122    if (holder.IsEmpty())
     123        holder = global->FindInstanceInPrototypeChain(V8DOMWindow::GetTemplate(context->GetIsolate(), IsolatedWorld));
     124    if (holder.IsEmpty())
    123125        return false;
    124126    Frame* frame = V8DOMWindow::toNative(holder)->frame();
Note: See TracChangeset for help on using the changeset viewer.