Changeset 87072 in webkit


Ignore:
Timestamp:
May 23, 2011 7:20:30 AM (13 years ago)
Author:
qi.2.zhang@nokia.com
Message:

2011-05-23 Qi Zhang <qi.2.zhang@nokia.com>

Reviewed by Darin Adler.

WebKitTestRunner needs layoutTestController.setJavaScriptCanAccessClipboard
https://bugs.webkit.org/show_bug.cgi?id=42669

Unskip test case due to the implementation setJavaScriptCanAccessClipboard in WebKitTestRunner.

  • platform/mac-wk2/Skipped:
  • platform/qt-wk2/Skipped:

2011-05-23 Qi Zhang <qi.2.zhang@nokia.com>

Reviewed by Darin Adler.

WebKitTestRunner needs layoutTestController.setJavaScriptCanAccessClipboard
https://bugs.webkit.org/show_bug.cgi?id=42669

Implement setJavaScriptCanAccessClipboard in WebKitTestRunner.

  • WebProcess/InjectedBundle/API/c/WKBundle.cpp: (WKBundleSetJavaScriptCanAccessClipboard):
  • WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  • WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::setJavaScriptCanAccessClipboard):
  • WebProcess/InjectedBundle/InjectedBundle.h:

2011-05-23 Qi Zhang <qi.2.zhang@nokia.com>

Reviewed by Darin Adler.

WebKitTestRunner needs layoutTestController.setJavaScriptCanAccessClipboard
https://bugs.webkit.org/show_bug.cgi?id=42669

Implement setJavaScriptCanAccessClipboard in WebKitTestRunner.

  • WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
  • WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: (WTR::LayoutTestController::setJavaScriptCanAccessClipboard):
  • WebKitTestRunner/InjectedBundle/LayoutTestController.h:
Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r87071 r87072  
     12011-05-23  Qi Zhang  <qi.2.zhang@nokia.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        WebKitTestRunner needs layoutTestController.setJavaScriptCanAccessClipboard
     6        https://bugs.webkit.org/show_bug.cgi?id=42669
     7
     8        Unskip test case due to the implementation setJavaScriptCanAccessClipboard in WebKitTestRunner.
     9
     10        * platform/mac-wk2/Skipped:
     11        * platform/qt-wk2/Skipped:
     12
    1132011-05-18  Pavel Podivilov  <podivilov@chromium.org>
    214
  • trunk/LayoutTests/platform/mac-wk2/Skipped

    r87022 r87072  
    12441244svg/custom/svg-disallowed-in-dashboard-object.html
    12451245
    1246 # WebKitTestRunner needs layoutTestController.setJavaScriptCanAccessClipboard
    1247 # <https://bugs.webkit.org/show_bug.cgi?id=42669>
    1248 editing/execCommand/clipboard-access.html
    1249 
    12501246# WebKitTestRunner needs layoutTestController.queueReload
    12511247# <https://bugs.webkit.org/show_bug.cgi?id=42672>
  • trunk/LayoutTests/platform/qt-wk2/Skipped

    r87069 r87072  
    16851685transitions/transition-shorthand-delay.html
    16861686transitions/negative-delay.html
    1687 
    1688 # WebKitTestRunner needs layoutTestController.setJavaScriptCanAccessClipboard
    1689 # <https://bugs.webkit.org/show_bug.cgi?id=42669>
    1690 editing/execCommand/clipboard-access.html
    16911687
    16921688# WebKitTestRunner needs layoutTestController.queueReload
  • trunk/Source/WebKit2/ChangeLog

    r87065 r87072  
     12011-05-23  Qi Zhang  <qi.2.zhang@nokia.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        WebKitTestRunner needs layoutTestController.setJavaScriptCanAccessClipboard
     6        https://bugs.webkit.org/show_bug.cgi?id=42669
     7
     8        Implement setJavaScriptCanAccessClipboard in WebKitTestRunner.
     9
     10        * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
     11        (WKBundleSetJavaScriptCanAccessClipboard):
     12        * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
     13        * WebProcess/InjectedBundle/InjectedBundle.cpp:
     14        (WebKit::InjectedBundle::setJavaScriptCanAccessClipboard):
     15        * WebProcess/InjectedBundle/InjectedBundle.h:
     16
    1172011-05-23  Csaba Osztrogonác  <ossy@webkit.org>
    218
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp

    r85019 r87072  
    144144}
    145145
     146WK_EXPORT void WKBundleSetJavaScriptCanAccessClipboard(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled)
     147{
     148    toImpl(bundleRef)->setJavaScriptCanAccessClipboard(toImpl(pageGroupRef), enabled);
     149}
     150
    146151void WKBundleAddOriginAccessWhitelistEntry(WKBundleRef bundleRef, WKStringRef sourceOrigin, WKStringRef destinationProtocol, WKStringRef destinationHost, bool allowDestinationSubdomains)
    147152{
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h

    r85019 r87072  
    6969WK_EXPORT void WKBundleSetAllowFileAccessFromFileURLs(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
    7070WK_EXPORT void WKBundleSetFrameFlatteningEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
     71WK_EXPORT void WKBundleSetJavaScriptCanAccessClipboard(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
    7172WK_EXPORT void WKBundleClearAllDatabases(WKBundleRef bundle);
    7273WK_EXPORT void WKBundleSetDatabaseQuota(WKBundleRef bundle, uint64_t);
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp

    r85603 r87072  
    136136}
    137137
     138void InjectedBundle::setJavaScriptCanAccessClipboard(WebPageGroupProxy* pageGroup, bool enabled)
     139{
     140    const HashSet<Page*>& pages = PageGroup::pageGroup(pageGroup->identifier())->pages();
     141    for (HashSet<Page*>::iterator iter = pages.begin(); iter != pages.end(); ++iter)
     142        (*iter)->settings()->setJavaScriptCanAccessClipboard(enabled);
     143}
     144
    138145void InjectedBundle::addOriginAccessWhitelistEntry(const String& sourceOrigin, const String& destinationProtocol, const String& destinationHost, bool allowDestinationSubdomains)
    139146{
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h

    r85019 r87072  
    9595    void setAllowFileAccessFromFileURLs(WebPageGroupProxy*, bool);
    9696    void setFrameFlatteningEnabled(WebPageGroupProxy*, bool);
     97    void setJavaScriptCanAccessClipboard(WebPageGroupProxy*, bool);
    9798    void addOriginAccessWhitelistEntry(const String&, const String&, const String&, bool);
    9899    void removeOriginAccessWhitelistEntry(const String&, const String&, const String&, bool);
  • trunk/Tools/ChangeLog

    r87043 r87072  
     12011-05-23  Qi Zhang  <qi.2.zhang@nokia.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        WebKitTestRunner needs layoutTestController.setJavaScriptCanAccessClipboard
     6        https://bugs.webkit.org/show_bug.cgi?id=42669
     7
     8        Implement setJavaScriptCanAccessClipboard in WebKitTestRunner.
     9
     10        * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
     11        * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
     12        (WTR::LayoutTestController::setJavaScriptCanAccessClipboard):
     13        * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
     14
    1152011-05-22  Robert Hogan  <robert@webkit.org>
    216
  • trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl

    r86977 r87072  
    5151        void setAllowFileAccessFromFileURLs(in boolean value);
    5252        void setFrameFlatteningEnabled(in boolean value);
     53        void setJavaScriptCanAccessClipboard(in boolean value);
    5354        void addOriginAccessWhitelistEntry(in DOMString sourceOrigin, in DOMString destinationProtocol, in DOMString destinationHost, in boolean allowDestinationSubdomains);
    5455        void removeOriginAccessWhitelistEntry(in DOMString sourceOrigin, in DOMString destinationProtocol, in DOMString destinationHost, in boolean allowDestinationSubdomains);
  • trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp

    r86977 r87072  
    340340}
    341341
     342void LayoutTestController::setJavaScriptCanAccessClipboard(bool enabled)
     343{
     344     WKBundleSetJavaScriptCanAccessClipboard(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled);
     345}
     346
    342347void LayoutTestController::addOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains)
    343348{
  • trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h

    r86977 r87072  
    8080    void setAllowFileAccessFromFileURLs(bool);
    8181    void setFrameFlatteningEnabled(bool);
     82    void setJavaScriptCanAccessClipboard(bool);
    8283    void addOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains);
    8384    void removeOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains);
Note: See TracChangeset for help on using the changeset viewer.