Changeset 209402 in webkit


Ignore:
Timestamp:
Dec 6, 2016, 9:46:23 AM (9 years ago)
Author:
dbates@webkit.org
Message:

Remove unused InjectedBundle::overrideXSSAuditorEnabledForTestRunner()
https://bugs.webkit.org/show_bug.cgi?id=165408

Reviewed by Alex Christensen.

InjectedBundle::overrideXSSAuditorEnabledForTestRunner() is unused. This function was only
called by WKBundleOverrideXSSAuditorEnabledForTestRunner(), which was removed in r106005.

  • WebProcess/InjectedBundle/InjectedBundle.cpp:

(WebKit::InjectedBundle::overrideXSSAuditorEnabledForTestRunner): Deleted.

  • WebProcess/InjectedBundle/InjectedBundle.h:
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r209399 r209402  
     12016-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
    1152016-12-04  Darin Adler  <darin@apple.com>
    216
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp

    r209230 r209402  
    269269}
    270270
    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 
    282271void InjectedBundle::setAllowUniversalAccessFromFileURLs(WebPageGroupProxy* pageGroup, bool enabled)
    283272{
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h

    r208509 r209402  
    100100    // TestRunner only SPI
    101101    void overrideBoolPreferenceForTestRunner(WebPageGroupProxy*, const String& preference, bool enabled);
    102     void overrideXSSAuditorEnabledForTestRunner(WebPageGroupProxy* pageGroup, bool enabled);
    103102    void setAllowUniversalAccessFromFileURLs(WebPageGroupProxy*, bool);
    104103    void setAllowFileAccessFromFileURLs(WebPageGroupProxy*, bool);
Note: See TracChangeset for help on using the changeset viewer.