Changeset 57715 in webkit


Ignore:
Timestamp:
Apr 15, 2010 11:20:30 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-15 Matt Perry <mpcomplete@chromium.org>

Reviewed by Adam Barth.

Remove the check for the main frame's scheme when deciding which
v8 extensions to add to a script context. Instead, Chromium will
handle that check elsewhere to allow finer-grained control over
what APIs we expose to web pages.
https://bugs.webkit.org/show_bug.cgi?id=37681

  • bindings/v8/V8DOMWindowShell.cpp: (WebCore::V8DOMWindowShell::createNewContext):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57714 r57715  
     12010-04-15  Matt Perry  <mpcomplete@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Remove the check for the main frame's scheme when deciding which
     6        v8 extensions to add to a script context. Instead, Chromium will
     7        handle that check elsewhere to allow finer-grained control over
     8        what APIs we expose to web pages.
     9        https://bugs.webkit.org/show_bug.cgi?id=37681
     10
     11        * bindings/v8/V8DOMWindowShell.cpp:
     12        (WebCore::V8DOMWindowShell::createNewContext):
     13
    1142010-04-15  Luiz Agostini  <luiz.agostini@openbossa.org>
    215
  • trunk/WebCore/bindings/v8/V8DOMWindowShell.cpp

    r56825 r57715  
    332332        // because we might be currently loading an URL into a blank page.
    333333        // See http://code.google.com/p/chromium/issues/detail?id=10924
    334         if (extensions[i].scheme.length() > 0 && (extensions[i].scheme != m_frame->loader()->activeDocumentLoader()->url().protocol() || extensions[i].scheme != m_frame->page()->mainFrame()->loader()->activeDocumentLoader()->url().protocol()))
     334        if (extensions[i].scheme.length() > 0 && (extensions[i].scheme != m_frame->loader()->activeDocumentLoader()->url().protocol()))
    335335            continue;
    336336
Note: See TracChangeset for help on using the changeset viewer.