Changeset 85019 in webkit
- Timestamp:
- Apr 26, 2011 10:54:29 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r85018 r85019 1 2011-04-26 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Laszlo Gombos. 4 5 WebKitTestRunner needs layoutTestController.addOriginAccessWhitelistEntry 6 https://bugs.webkit.org/show_bug.cgi?id=42544 7 8 Unskip passed tests and place failing tests for other reasons to other sections. 9 10 * platform/mac-wk2/Skipped: 11 * platform/qt-wk2/Skipped: 12 1 13 2011-04-26 Dirk Pranke <dpranke@chromium.org> 2 14 -
trunk/LayoutTests/platform/mac-wk2/Skipped
r84941 r85019 1177 1177 platform/mac/fast/loader/file-url-mimetypes.html 1178 1178 1179 # WebKitTestRunner needs layoutTestController.addOriginAccessWhitelistEntry1180 # <https://bugs.webkit.org/show_bug.cgi?id=42544>1181 http/tests/security/local-image-from-remote-whitelisted.html1182 http/tests/xmlhttprequest/origin-whitelisting-all.html1183 http/tests/xmlhttprequest/origin-whitelisting-exact-match.html1184 http/tests/xmlhttprequest/origin-whitelisting-https.html1185 http/tests/xmlhttprequest/origin-whitelisting-ip-addresses.html1186 http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains.html1187 http/tests/xmlhttprequest/origin-whitelisting-removal.html1188 http/tests/xmlhttprequest/origin-whitelisting-subdomains.html1189 1190 1179 # WebKitTestRunner needs layoutTestController.setGeolocationPermission 1191 1180 # <https://bugs.webkit.org/show_bug.cgi?id=42545> -
trunk/LayoutTests/platform/qt-wk2/Skipped
r84787 r85019 1617 1617 http/tests/loading/preload-slow-loading.php 1618 1618 http/tests/mime/uppercase-mime-type.html 1619 1620 # WebKitTestRunner needs layoutTestController.addOriginAccessWhitelistEntry1621 # <https://bugs.webkit.org/show_bug.cgi?id=42544>1622 http/tests/security/local-image-from-remote-whitelisted.html1623 http/tests/xmlhttprequest/origin-whitelisting-all.html1624 http/tests/xmlhttprequest/origin-whitelisting-exact-match.html1625 http/tests/xmlhttprequest/origin-whitelisting-https.html1626 http/tests/xmlhttprequest/origin-whitelisting-ip-addresses.html1627 http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains.html1628 http/tests/xmlhttprequest/origin-whitelisting-removal.html1629 http/tests/xmlhttprequest/origin-whitelisting-subdomains.html1630 1619 1631 1620 # WebKitTestRunner needs layoutTestController.setGeolocationPermission … … 2839 2828 http/tests/security/xss-DENIED-xsl-document.xml 2840 2829 http/tests/xmlhttprequest/basic-auth-nopassword.html 2830 http/tests/xmlhttprequest/origin-whitelisting-all.html 2831 http/tests/xmlhttprequest/origin-whitelisting-exact-match.html 2832 http/tests/xmlhttprequest/origin-whitelisting-https.html 2833 http/tests/xmlhttprequest/origin-whitelisting-ip-addresses.html 2834 http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains.html 2835 http/tests/xmlhttprequest/origin-whitelisting-removal.html 2836 http/tests/xmlhttprequest/origin-whitelisting-subdomains.html 2841 2837 http/tests/xmlviewer/dumpAsText/frames.html 2842 2838 platform/qt/fast/history/back-to-unreachable-url-then-forward.html -
trunk/Source/WebKit2/ChangeLog
r85003 r85019 1 2011-04-26 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Laszlo Gombos. 4 5 WebKitTestRunner needs layoutTestController.addOriginAccessWhitelistEntry 6 https://bugs.webkit.org/show_bug.cgi?id=42544 7 8 Also implemented removeOriginAccessWhitelistEntry and resetOriginAccessWhitelists. 9 10 * WebProcess/InjectedBundle/API/c/WKBundle.cpp: 11 (WKBundleAddOriginAccessWhitelistEntry): 12 (WKBundleRemoveOriginAccessWhitelistEntry): 13 (WKBundleResetOriginAccessWhitelists): 14 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: 15 * WebProcess/InjectedBundle/InjectedBundle.cpp: 16 (WebKit::InjectedBundle::addOriginAccessWhitelistEntry): 17 (WebKit::InjectedBundle::removeOriginAccessWhitelistEntry): 18 (WebKit::InjectedBundle::resetOriginAccessWhitelists): 19 * WebProcess/InjectedBundle/InjectedBundle.h: 20 1 21 2011-04-26 Dan Bernstein <mitz@apple.com> 2 22 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp
r84980 r85019 144 144 } 145 145 146 void WKBundleAddOriginAccessWhitelistEntry(WKBundleRef bundleRef, WKStringRef sourceOrigin, WKStringRef destinationProtocol, WKStringRef destinationHost, bool allowDestinationSubdomains) 147 { 148 toImpl(bundleRef)->addOriginAccessWhitelistEntry(toImpl(sourceOrigin)->string(), toImpl(destinationProtocol)->string(), toImpl(destinationHost)->string(), allowDestinationSubdomains); 149 } 150 151 void WKBundleRemoveOriginAccessWhitelistEntry(WKBundleRef bundleRef, WKStringRef sourceOrigin, WKStringRef destinationProtocol, WKStringRef destinationHost, bool allowDestinationSubdomains) 152 { 153 toImpl(bundleRef)->removeOriginAccessWhitelistEntry(toImpl(sourceOrigin)->string(), toImpl(destinationProtocol)->string(), toImpl(destinationHost)->string(), allowDestinationSubdomains); 154 } 155 156 void WKBundleResetOriginAccessWhitelists(WKBundleRef bundleRef) 157 { 158 toImpl(bundleRef)->resetOriginAccessWhitelists(); 159 } 160 146 161 void WKBundleReportException(JSContextRef context, JSValueRef exception) 147 162 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h
r84980 r85019 75 75 WK_EXPORT WKStringRef WKBundlePageSizeAndMarginsInPixels(WKBundleRef bundle, WKBundleFrameRef frameRef, int, int, int, int, int, int, int); 76 76 WK_EXPORT bool WKBundleIsPageBoxVisible(WKBundleRef bundle, WKBundleFrameRef frameRef, int); 77 WK_EXPORT void WKBundleAddOriginAccessWhitelistEntry(WKBundleRef bundle, WKStringRef, WKStringRef, WKStringRef, bool); 78 WK_EXPORT void WKBundleRemoveOriginAccessWhitelistEntry(WKBundleRef bundle, WKStringRef, WKStringRef, WKStringRef, bool); 79 WK_EXPORT void WKBundleResetOriginAccessWhitelists(WKBundleRef bundle); 77 80 78 81 #ifdef __cplusplus -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r84980 r85019 50 50 #include <WebCore/PageGroup.h> 51 51 #include <WebCore/PrintContext.h> 52 #include <WebCore/SecurityOrigin.h> 52 53 #include <WebCore/Settings.h> 53 54 #include <wtf/OwnArrayPtr.h> … … 133 134 for (HashSet<Page*>::iterator iter = pages.begin(); iter != pages.end(); ++iter) 134 135 (*iter)->settings()->setFrameFlatteningEnabled(enabled); 136 } 137 138 void InjectedBundle::addOriginAccessWhitelistEntry(const String& sourceOrigin, const String& destinationProtocol, const String& destinationHost, bool allowDestinationSubdomains) 139 { 140 SecurityOrigin::addOriginAccessWhitelistEntry(*SecurityOrigin::createFromString(sourceOrigin), destinationProtocol, destinationHost, allowDestinationSubdomains); 141 } 142 143 void InjectedBundle::removeOriginAccessWhitelistEntry(const String& sourceOrigin, const String& destinationProtocol, const String& destinationHost, bool allowDestinationSubdomains) 144 { 145 SecurityOrigin::removeOriginAccessWhitelistEntry(*SecurityOrigin::createFromString(sourceOrigin), destinationProtocol, destinationHost, allowDestinationSubdomains); 146 } 147 148 void InjectedBundle::resetOriginAccessWhitelists() 149 { 150 SecurityOrigin::resetOriginAccessWhitelists(); 135 151 } 136 152 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h
r84980 r85019 95 95 void setAllowFileAccessFromFileURLs(WebPageGroupProxy*, bool); 96 96 void setFrameFlatteningEnabled(WebPageGroupProxy*, bool); 97 void addOriginAccessWhitelistEntry(const String&, const String&, const String&, bool); 98 void removeOriginAccessWhitelistEntry(const String&, const String&, const String&, bool); 99 void resetOriginAccessWhitelists(); 97 100 int numberOfPages(WebFrame*, double, double); 98 101 int pageNumberForElementById(WebFrame*, const String&, double, double); -
trunk/Tools/ChangeLog
r85007 r85019 1 2011-04-26 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Laszlo Gombos. 4 5 WebKitTestRunner needs layoutTestController.addOriginAccessWhitelistEntry 6 https://bugs.webkit.org/show_bug.cgi?id=42544 7 8 Also implemented removeOriginAccessWhitelistEntry and resetOriginAccessWhitelists. 9 10 * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: 11 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: 12 (WTR::InjectedBundle::beginTesting): 13 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 14 (WTR::LayoutTestController::addOriginAccessWhitelistEntry): 15 (WTR::LayoutTestController::removeOriginAccessWhitelistEntry): 16 * WebKitTestRunner/InjectedBundle/LayoutTestController.h: 17 1 18 2011-04-26 Chris Fleizach <cfleizach@apple.com> 2 19 -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl
r84721 r85019 51 51 void setAllowFileAccessFromFileURLs(in boolean value); 52 52 void setFrameFlatteningEnabled(in boolean value); 53 void addOriginAccessWhitelistEntry(in DOMString sourceOrigin, in DOMString destinationProtocol, in DOMString destinationHost, in boolean allowDestinationSubdomains); 54 void removeOriginAccessWhitelistEntry(in DOMString sourceOrigin, in DOMString destinationProtocol, in DOMString destinationHost, in boolean allowDestinationSubdomains); 53 55 54 56 // Special DOM functions. -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp
r84980 r85019 185 185 186 186 WKBundleClearAllDatabases(m_bundle); 187 WKBundleResetOriginAccessWhitelists(m_bundle); 187 188 } 188 189 -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r84980 r85019 332 332 } 333 333 334 void LayoutTestController::addOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains) 335 { 336 WKBundleAddOriginAccessWhitelistEntry(InjectedBundle::shared().bundle(), toWK(sourceOrigin).get(), toWK(destinationProtocol).get(), toWK(destinationHost).get(), allowDestinationSubdomains); 337 } 338 339 void LayoutTestController::removeOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains) 340 { 341 WKBundleRemoveOriginAccessWhitelistEntry(InjectedBundle::shared().bundle(), toWK(sourceOrigin).get(), toWK(destinationProtocol).get(), toWK(destinationHost).get(), allowDestinationSubdomains); 342 } 343 334 344 int LayoutTestController::numberOfPages(double pageWidthInPixels, double pageHeightInPixels) 335 345 { -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h
r84721 r85019 79 79 void setAllowFileAccessFromFileURLs(bool); 80 80 void setFrameFlatteningEnabled(bool); 81 void addOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains); 82 void removeOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains); 81 83 82 84 // Special DOM functions.
Note: See TracChangeset
for help on using the changeset viewer.