Skip to content
  • caseq@chromium.org's avatar
    Web Inspector: [Extensions API] allow setting extension API per extension security origin · a5f1c310
    caseq@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=74868
    
    Reviewed by Pavel Feldman.
    
    This replaces InspectorExtensionAPI string within InspectorFrontendHost with a map by extension
    security origin, so that we can have APIs customized by extension (in particular, this is needed
    to expose experimental APIs only to certain extensions).
    
    * inspector/InspectorAgent.cpp:
    (WebCore::InspectorAgent::didClearWindowObjectInWorld):
    (WebCore::InspectorAgent::setInjectedScriptForOrigin):
    * inspector/InspectorAgent.h:
    * inspector/InspectorController.cpp:
    (WebCore::InspectorController::setInjectedScriptForOrigin):
    * inspector/InspectorController.h:
    * inspector/InspectorFrontendHost.cpp:
    (WebCore::InspectorFrontendHost::setInjectedScriptForOrigin):
    * inspector/InspectorFrontendHost.h:
    * inspector/InspectorFrontendHost.idl:
    * inspector/front-end/ExtensionServer.js:
    (WebInspector.ExtensionServer.prototype._addExtensions):
    (WebInspector.ExtensionServer.prototype._addExtension):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@103325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a5f1c310