Changeset 82848 in webkit
- Timestamp:
- Apr 4, 2011 11:29:22 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r82847 r82848 1 2011-04-04 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 WebKitTestRunner needs layoutTestController.setAllowFileAccessFromFileURLs 6 https://bugs.webkit.org/show_bug.cgi?id=57572 7 8 Unskip passed tests. 9 10 * platform/mac-wk2/Skipped: 11 1 12 2011-04-04 Pavel Feldman <pfeldman@google.com> 2 13 -
trunk/LayoutTests/platform/mac-wk2/Skipped
r82765 r82848 1440 1440 fast/loader/stop-provisional-loads.html 1441 1441 1442 # WebKitTestRunner needs layoutTestController.setAllowFileAccessFromFileURLs1443 # <https://bugs.webkit.org/show_bug.cgi?id=57572>1444 fast/frames/location-change-no-file-access.html1445 fast/xmlhttprequest/xmlhttprequest-no-file-access.html1446 1447 fast/xmlhttprequest/xmlhttprequest-nonexistent-file.html1448 1449 1442 # WebKitTestRunner needs layoutTestController.setPrinting 1450 1443 # <https://bugs.webkit.org/show_bug.cgi?id=42693> … … 1946 1939 fast/workers/storage/interrupt-database.html 1947 1940 fast/workers/storage/use-same-database-in-page-and-workers.html 1941 fast/xmlhttprequest/xmlhttprequest-no-file-access.html 1942 fast/xmlhttprequest/xmlhttprequest-nonexistent-file.html 1948 1943 http/tests/appcache/different-https-origin-resource-main.html 1949 1944 http/tests/appcache/fallback.html -
trunk/Source/WebKit2/ChangeLog
r82839 r82848 1 2011-04-04 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 WebKitTestRunner needs layoutTestController.setAllowFileAccessFromFileURLs 6 https://bugs.webkit.org/show_bug.cgi?id=57572 7 8 * Shared/WebPreferencesStore.cpp: 9 (WebKit::WebPreferencesStore::decode): 10 (WebKit::WebPreferencesStore::overrideAllowFileAccessFromFileURLsForTestRunner): 11 * Shared/WebPreferencesStore.h: 12 * WebProcess/InjectedBundle/API/c/WKBundle.cpp: 13 (WKBundleSetAllowFileAccessFromFileURLs): 14 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: 15 * WebProcess/InjectedBundle/InjectedBundle.cpp: 16 (WebKit::InjectedBundle::setAllowFileAccessFromFileURLs): 17 * WebProcess/InjectedBundle/InjectedBundle.h: 18 1 19 2011-04-04 Brady Eidson <beidson@apple.com> 2 20 -
trunk/Source/WebKit2/Shared/WebPreferencesStore.cpp
r82356 r82848 52 52 static bool hasAllowUniversalAccessFromFileURLsTestRunnerOverride; 53 53 static bool allowUniversalAccessFromFileURLsTestRunnerOverride; 54 static bool hasAllowFileAccessFromFileURLsTestRunnerOverride; 55 static bool allowFileAccessFromFileURLsTestRunnerOverride; 54 56 55 57 WebPreferencesStore::WebPreferencesStore() … … 73 75 s.m_boolValues.set(WebPreferencesKey::allowUniversalAccessFromFileURLsKey(), allowUniversalAccessFromFileURLsTestRunnerOverride); 74 76 77 if (hasAllowFileAccessFromFileURLsTestRunnerOverride) 78 s.m_boolValues.set(WebPreferencesKey::allowFileAccessFromFileURLsKey(), allowFileAccessFromFileURLsTestRunnerOverride); 79 75 80 return true; 76 81 } … … 86 91 hasAllowUniversalAccessFromFileURLsTestRunnerOverride = true; 87 92 allowUniversalAccessFromFileURLsTestRunnerOverride = enabled; 93 } 94 95 void WebPreferencesStore::overrideAllowFileAccessFromFileURLsForTestRunner(bool enabled) 96 { 97 hasAllowFileAccessFromFileURLsTestRunnerOverride = true; 98 allowFileAccessFromFileURLsTestRunnerOverride = enabled; 88 99 } 89 100 -
trunk/Source/WebKit2/Shared/WebPreferencesStore.h
r82356 r82848 170 170 static void overrideXSSAuditorEnabledForTestRunner(bool); 171 171 static void overrideAllowUniversalAccessFromFileURLsForTestRunner(bool); 172 static void overrideAllowFileAccessFromFileURLsForTestRunner(bool); 172 173 static void removeTestRunnerOverrides(); 173 174 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp
r82710 r82848 134 134 } 135 135 136 void WKBundleSetAllowFileAccessFromFileURLs(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled) 137 { 138 toImpl(bundleRef)->setAllowFileAccessFromFileURLs(toImpl(pageGroupRef), enabled); 139 } 140 136 141 void WKBundleReportException(JSContextRef context, JSValueRef exception) 137 142 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h
r82710 r82848 67 67 WK_EXPORT void WKBundleOverrideXSSAuditorEnabledForTestRunner(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 68 68 WK_EXPORT void WKBundleOverrideAllowUniversalAccessFromFileURLsForTestRunner(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 69 WK_EXPORT void WKBundleSetAllowFileAccessFromFileURLs(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled); 69 70 WK_EXPORT void WKBundleClearAllDatabases(WKBundleRef bundle); 70 71 WK_EXPORT void WKBundleSetDatabaseQuota(WKBundleRef bundle, uint64_t); -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r82710 r82848 121 121 } 122 122 123 void InjectedBundle::setAllowFileAccessFromFileURLs(WebPageGroupProxy* pageGroup, bool enabled) 124 { 125 // Override the preference for all future pages. 126 WebPreferencesStore::overrideAllowFileAccessFromFileURLsForTestRunner(enabled); 127 128 // Change the setting for existing ones. 129 const HashSet<Page*>& pages = PageGroup::pageGroup(pageGroup->identifier())->pages(); 130 for (HashSet<Page*>::iterator iter = pages.begin(); iter != pages.end(); ++iter) 131 (*iter)->settings()->setAllowFileAccessFromFileURLs(enabled); 132 } 133 123 134 void InjectedBundle::clearAllDatabases() 124 135 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h
r82776 r82848 92 92 void overrideXSSAuditorEnabledForTestRunner(WebPageGroupProxy* pageGroup, bool enabled); 93 93 void overrideAllowUniversalAccessFromFileURLsForTestRunner(WebPageGroupProxy*, bool); 94 void setAllowFileAccessFromFileURLs(WebPageGroupProxy*, bool); 94 95 95 96 // UserContent API -
trunk/Tools/ChangeLog
r82844 r82848 1 2011-04-04 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 WebKitTestRunner needs layoutTestController.setAllowFileAccessFromFileURLs 6 https://bugs.webkit.org/show_bug.cgi?id=57572 7 8 * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: 9 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 10 (WTR::LayoutTestController::setAllowFileAccessFromFileURLs): 11 * WebKitTestRunner/InjectedBundle/LayoutTestController.h: 12 1 13 2011-04-04 Keith Kyzivat <keith.kyzivat@nokia.com> 2 14 -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl
r82719 r82848 48 48 void setXSSAuditorEnabled(in boolean value); 49 49 void setAllowUniversalAccessFromFileURLs(in boolean value); 50 void setAllowFileAccessFromFileURLs(in boolean value); 50 51 51 52 // Special DOM functions. -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r82727 r82848 319 319 } 320 320 321 void LayoutTestController::setAllowFileAccessFromFileURLs(bool enabled) 322 { 323 WKBundleSetAllowFileAccessFromFileURLs(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); 324 } 325 321 326 unsigned LayoutTestController::windowCount() 322 327 { -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h
r82719 r82848 76 76 void setXSSAuditorEnabled(bool); 77 77 void setAllowUniversalAccessFromFileURLs(bool); 78 void setAllowFileAccessFromFileURLs(bool); 78 79 79 80 // Special DOM functions.
Note: See TracChangeset
for help on using the changeset viewer.