Skip to content
  • seokju@webkit.org's avatar
    Web Inspector: Remove unused overriding protocols. · cb8504d4
    seokju@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=126630
    
    Reviewed by Timothy Hatcher.
    
    Source/WebCore:
    
    No new tests, No change in behavior.
    
    Remove unused overriding protocols as these are not used anymore in Frontned.
    -Page.setGeolocationOverride
    -Page.clearGeolocationOverride
    -Page.canOverrideGeolocation
    -Page.setDeviceOrientationOverride
    -Page.clearDeviceOrientationOverride
    -Page.canOverrideGeolocation
    -Network.setUserAgentOverride
    
    * Modules/geolocation/GeolocationController.cpp:
    (WebCore::GeolocationController::GeolocationController):
    (WebCore::GeolocationController::create):
    (WebCore::GeolocationController::positionChanged):
    (WebCore::provideGeolocationTo):
    * Modules/geolocation/GeolocationController.h:
    * dom/DeviceOrientationController.cpp:
    (WebCore::DeviceOrientationController::DeviceOrientationController):
    (WebCore::DeviceOrientationController::create):
    (WebCore::DeviceOrientationController::didChangeDeviceOrientation):
    (WebCore::provideDeviceOrientationTo):
    * dom/DeviceOrientationController.h:
    * inspector/InspectorInstrumentation.cpp:
    * inspector/InspectorInstrumentation.h:
    * inspector/InspectorPageAgent.cpp:
    (WebCore::InspectorPageAgent::InspectorPageAgent):
    * inspector/InspectorPageAgent.h:
    * inspector/InspectorResourceAgent.cpp:
    (WebCore::InspectorResourceAgent::disable):
    * inspector/InspectorResourceAgent.h:
    * inspector/protocol/Network.json:
    * inspector/protocol/Page.json:
    * loader/FrameLoader.cpp:
    (WebCore::FrameLoader::userAgent):
    
    Source/WebInspectorUI:
    
    Update InspectorWebBackendCommands.js after removing unused overriding protocols.
    
    * UserInterface/InspectorWebBackendCommands.js:
    * UserInterface/Legacy/6.0/InspectorWebBackendCommands.js:
    * UserInterface/Legacy/7.0/InspectorWebBackendCommands.js:
    * Versions/Inspector-iOS-6.0.json:
    * Versions/Inspector-iOS-7.0.json:
    
    LayoutTests:
    
    * http/tests/inspector/extensions-useragent-expected.txt: Removed.
    * http/tests/inspector/extensions-useragent.html: Removed.
    * inspector/device-orientation-success-expected.txt: Removed.
    * inspector/device-orientation-success.html: Removed.
    * inspector/geolocation-error-expected.txt: Removed.
    * inspector/geolocation-error.html: Removed.
    * inspector/geolocation-success-expected.txt: Removed.
    * inspector/geolocation-success.html: Removed.
    * inspector/geolocation-watchPosition-expected.txt: Removed.
    * inspector/geolocation-watchPosition.html: Removed.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cb8504d4