Changeset 209402 in webkit
- Timestamp:
- Dec 6, 2016, 9:46:23 AM (9 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r209399 r209402 1 2016-12-06 Daniel Bates <dabates@apple.com> 2 3 Remove unused InjectedBundle::overrideXSSAuditorEnabledForTestRunner() 4 https://bugs.webkit.org/show_bug.cgi?id=165408 5 6 Reviewed by Alex Christensen. 7 8 InjectedBundle::overrideXSSAuditorEnabledForTestRunner() is unused. This function was only 9 called by WKBundleOverrideXSSAuditorEnabledForTestRunner(), which was removed in r106005. 10 11 * WebProcess/InjectedBundle/InjectedBundle.cpp: 12 (WebKit::InjectedBundle::overrideXSSAuditorEnabledForTestRunner): Deleted. 13 * WebProcess/InjectedBundle/InjectedBundle.h: 14 1 15 2016-12-04 Darin Adler <darin@apple.com> 2 16 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r209230 r209402 269 269 } 270 270 271 void InjectedBundle::overrideXSSAuditorEnabledForTestRunner(WebPageGroupProxy* pageGroup, bool enabled)272 {273 // Override the preference for all future pages.274 WebPreferencesStore::overrideBoolValueForKey(WebPreferencesKey::xssAuditorEnabledKey(), enabled);275 276 // Change the setting for existing ones.277 const HashSet<Page*>& pages = PageGroup::pageGroup(pageGroup->identifier())->pages();278 for (HashSet<Page*>::iterator iter = pages.begin(); iter != pages.end(); ++iter)279 (*iter)->settings().setXSSAuditorEnabled(enabled);280 }281 282 271 void InjectedBundle::setAllowUniversalAccessFromFileURLs(WebPageGroupProxy* pageGroup, bool enabled) 283 272 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h
r208509 r209402 100 100 // TestRunner only SPI 101 101 void overrideBoolPreferenceForTestRunner(WebPageGroupProxy*, const String& preference, bool enabled); 102 void overrideXSSAuditorEnabledForTestRunner(WebPageGroupProxy* pageGroup, bool enabled);103 102 void setAllowUniversalAccessFromFileURLs(WebPageGroupProxy*, bool); 104 103 void setAllowFileAccessFromFileURLs(WebPageGroupProxy*, bool);
Note:
See TracChangeset
for help on using the changeset viewer.