Changeset 87452 in webkit
- Timestamp:
- May 26, 2011 5:00:42 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r87435 r87452 1 2011-05-26 Qi Zhang <qi.2.zhang@nokia.com> 2 3 Reviewed by Andreas Kling. 4 5 WebKitTestRunner needs layoutTestController.setAuthorAndUserStylesEnabled 6 https://bugs.webkit.org/show_bug.cgi?id=42676 7 8 Implemented layoutTestController.setAuthorAndUserStylesEnabled for WebKitTestRunner. 9 10 * platform/mac-wk2/Skipped: 11 * platform/qt-wk2/Skipped: 12 1 13 2011-05-26 Adam Klein <adamk@chromium.org> 2 14 -
trunk/LayoutTests/platform/mac-wk2/Skipped
r87402 r87452 1315 1315 http/tests/cache/subresource-failover-to-network.html 1316 1316 1317 # WebKitTestRunner needs layoutTestController.setAuthorAndUserStylesEnabled1318 # <https://bugs.webkit.org/show_bug.cgi?id=42676>1319 fast/css/disabled-author-styles.html1320 1321 1317 # WebKitTestRunner needs layoutTestController.setUserStyleSheetLocation 1322 1318 # <https://bugs.webkit.org/show_bug.cgi?id=42678> -
trunk/LayoutTests/platform/qt-wk2/Skipped
r87385 r87452 1607 1607 # <https://bugs.webkit.org/show_bug.cgi?id=42675> 1608 1608 http/tests/cache/subresource-failover-to-network.html 1609 1610 # WebKitTestRunner needs layoutTestController.setAuthorAndUserStylesEnabled1611 # <https://bugs.webkit.org/show_bug.cgi?id=42676>1612 fast/css/disabled-author-styles.html1613 1609 1614 1610 # WebKitTestRunner needs layoutTestController.setUserStyleSheetLocation -
trunk/Source/WebKit2/ChangeLog
r87421 r87452 1 2011-05-26 Qi Zhang <qi.2.zhang@nokia.com> 2 3 Reviewed by Andreas Kling. 4 5 WebKitTestRunner needs layoutTestController.setAuthorAndUserStylesEnabled 6 https://bugs.webkit.org/show_bug.cgi?id=42676 7 8 Implemented layoutTestController.setAuthorAndUserStylesEnabled for WebKitTestRunner. 9 10 * WebProcess/InjectedBundle/API/c/WKBundle.cpp: 11 (WKBundleSetAuthorAndUserStylesEnabled): 12 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: 13 * WebProcess/InjectedBundle/InjectedBundle.cpp: 14 (WebKit::InjectedBundle::setAuthorAndUserStylesEnabled): 15 * WebProcess/InjectedBundle/InjectedBundle.h: 16 1 17 2011-05-25 Brian Weinstein <bweinstein@apple.com> 2 18 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp
r87348 r87452 154 154 } 155 155 156 void WKBundleSetAuthorAndUserStylesEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled) 157 { 158 toImpl(bundleRef)->setAuthorAndUserStylesEnabled(toImpl(pageGroupRef), enabled); 159 } 160 156 161 void WKBundleAddOriginAccessWhitelistEntry(WKBundleRef bundleRef, WKStringRef sourceOrigin, WKStringRef destinationProtocol, WKStringRef destinationHost, bool allowDestinationSubdomains) 157 162 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h
r87348 r87452 71 71 WK_EXPORT void WKBundleSetJavaScriptCanAccessClipboard(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 72 72 WK_EXPORT void WKBundleSetPrivateBrowsingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 73 WK_EXPORT void WKBundleSetAuthorAndUserStylesEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 73 74 WK_EXPORT void WKBundleClearAllDatabases(WKBundleRef bundle); 74 75 WK_EXPORT void WKBundleSetDatabaseQuota(WKBundleRef bundle, uint64_t); -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r87348 r87452 151 151 } 152 152 153 void InjectedBundle::setAuthorAndUserStylesEnabled(WebPageGroupProxy* pageGroup, bool enabled) 154 { 155 const HashSet<Page*>& pages = PageGroup::pageGroup(pageGroup->identifier())->pages(); 156 for (HashSet<Page*>::iterator iter = pages.begin(); iter != pages.end(); ++iter) 157 (*iter)->settings()->setAuthorAndUserStylesEnabled(enabled); 158 } 159 153 160 void InjectedBundle::addOriginAccessWhitelistEntry(const String& sourceOrigin, const String& destinationProtocol, const String& destinationHost, bool allowDestinationSubdomains) 154 161 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h
r87348 r87452 97 97 void setJavaScriptCanAccessClipboard(WebPageGroupProxy*, bool); 98 98 void setPrivateBrowsingEnabled(WebPageGroupProxy*, bool); 99 void setAuthorAndUserStylesEnabled(WebPageGroupProxy*, bool); 99 100 void addOriginAccessWhitelistEntry(const String&, const String&, const String&, bool); 100 101 void removeOriginAccessWhitelistEntry(const String&, const String&, const String&, bool); -
trunk/Tools/ChangeLog
r87436 r87452 1 2011-05-26 Qi Zhang <qi.2.zhang@nokia.com> 2 3 Reviewed by Andreas Kling. 4 5 WebKitTestRunner needs layoutTestController.setAuthorAndUserStylesEnabled 6 https://bugs.webkit.org/show_bug.cgi?id=42676 7 8 Implemented layoutTestController.setAuthorAndUserStylesEnabled for WebKitTestRunner. 9 10 * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: 11 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: 12 (WTR::InjectedBundle::beginTesting): 13 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 14 (WTR::LayoutTestController::setAuthorAndUserStylesEnabled): 15 * WebKitTestRunner/InjectedBundle/LayoutTestController.h: 16 1 17 2011-05-26 Ademar de Souza Reis Jr. <ademar.reis@openbossa.org> 2 18 -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl
r87348 r87452 53 53 void setJavaScriptCanAccessClipboard(in boolean value); 54 54 void setPrivateBrowsingEnabled(in boolean value); 55 void setAuthorAndUserStylesEnabled(in boolean value); 55 56 void addOriginAccessWhitelistEntry(in DOMString sourceOrigin, in DOMString destinationProtocol, in DOMString destinationHost, in boolean allowDestinationSubdomains); 56 57 void removeOriginAccessWhitelistEntry(in DOMString sourceOrigin, in DOMString destinationProtocol, in DOMString destinationHost, in boolean allowDestinationSubdomains); -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp
r87348 r87452 181 181 WKBundleSetJavaScriptCanAccessClipboard(m_bundle, m_pageGroup, true); 182 182 WKBundleSetPrivateBrowsingEnabled(m_bundle, m_pageGroup, false); 183 WKBundleSetAuthorAndUserStylesEnabled(m_bundle, m_pageGroup, true); 183 184 184 185 WKBundleRemoveAllUserContent(m_bundle, m_pageGroup); -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r87348 r87452 350 350 } 351 351 352 void LayoutTestController::setAuthorAndUserStylesEnabled(bool enabled) 353 { 354 WKBundleSetAuthorAndUserStylesEnabled(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); 355 } 356 352 357 void LayoutTestController::addOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains) 353 358 { -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h
r87348 r87452 82 82 void setJavaScriptCanAccessClipboard(bool); 83 83 void setPrivateBrowsingEnabled(bool); 84 void setAuthorAndUserStylesEnabled(bool); 84 85 void addOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains); 85 86 void removeOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains);
Note: See TracChangeset
for help on using the changeset viewer.