Web Inspector: Make domain availability a list of types instead of a single type
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Nov 2017 18:32:26 +0000 (18:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Nov 2017 18:32:26 +0000 (18:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=179457

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2017-11-09
Reviewed by Brian Burg.

Source/JavaScriptCore:

* inspector/scripts/codegen/generate_js_backend_commands.py:
(JSBackendCommandsGenerator.generate_domain):
Update output of `InspectorBackend.activateDomain` to include the list.

* inspector/scripts/codegen/models.py:
(Protocol.parse_domain):
Parse `availability` as a list and include a new supported value of "service-worker".

* inspector/protocol/ApplicationCache.json:
* inspector/protocol/CSS.json:
* inspector/protocol/Canvas.json:
* inspector/protocol/DOM.json:
* inspector/protocol/DOMDebugger.json:
* inspector/protocol/DOMStorage.json:
* inspector/protocol/Database.json:
* inspector/protocol/IndexedDB.json:
* inspector/protocol/LayerTree.json:
* inspector/protocol/Memory.json:
* inspector/protocol/Network.json:
* inspector/protocol/Page.json:
* inspector/protocol/Timeline.json:
* inspector/protocol/Worker.json:
Update `availability` to be a list.

* inspector/scripts/tests/generic/domain-availability.json:
* inspector/scripts/tests/generic/expected/domain-availability.json-result:
* inspector/scripts/tests/generic/expected/fail-on-domain-availability-type.json-error: Added.
* inspector/scripts/tests/generic/expected/fail-on-domain-availability-value.json-error: Added.
* inspector/scripts/tests/generic/expected/fail-on-domain-availability.json-error:
* inspector/scripts/tests/generic/fail-on-domain-availability-type.json: Copied from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-availability.json.
* inspector/scripts/tests/generic/fail-on-domain-availability-value.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-availability.json.
Update tests to include a test for the type and an invalid value.

Source/WebInspectorUI:

* UserInterface/Protocol/InspectorBackend.js:
(InspectorBackendClass.prototype.activateDomain):
The second value changed to be an optional list. Check if the active
debuggable type is in the list or not.

* UserInterface/Protocol/Legacy/10.0/InspectorBackendCommands.js:
* UserInterface/Protocol/Legacy/10.3/InspectorBackendCommands.js:
* UserInterface/Protocol/Legacy/11.0/InspectorBackendCommands.js:
* UserInterface/Protocol/Legacy/8.0/InspectorBackendCommands.js:
* UserInterface/Protocol/Legacy/9.0/InspectorBackendCommands.js:
* UserInterface/Protocol/Legacy/9.3/InspectorBackendCommands.js:
* Versions/Inspector-iOS-10.0.json:
* Versions/Inspector-iOS-10.3.json:
* Versions/Inspector-iOS-11.0.json:
* Versions/Inspector-iOS-8.0.json:
* Versions/Inspector-iOS-9.0.json:
* Versions/Inspector-iOS-9.3.json:
Since this is a change to how we generate the frontend resource,
update the legacy versioned backends and regenerate their resource.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224634 268f45cc-cd09-0410-ab3c-d52691b4dbfc

38 files changed:
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/inspector/protocol/ApplicationCache.json
Source/JavaScriptCore/inspector/protocol/CSS.json
Source/JavaScriptCore/inspector/protocol/Canvas.json
Source/JavaScriptCore/inspector/protocol/DOM.json
Source/JavaScriptCore/inspector/protocol/DOMDebugger.json
Source/JavaScriptCore/inspector/protocol/DOMStorage.json
Source/JavaScriptCore/inspector/protocol/Database.json
Source/JavaScriptCore/inspector/protocol/IndexedDB.json
Source/JavaScriptCore/inspector/protocol/LayerTree.json
Source/JavaScriptCore/inspector/protocol/Memory.json
Source/JavaScriptCore/inspector/protocol/Network.json
Source/JavaScriptCore/inspector/protocol/Page.json
Source/JavaScriptCore/inspector/protocol/Timeline.json
Source/JavaScriptCore/inspector/protocol/Worker.json
Source/JavaScriptCore/inspector/scripts/codegen/generate_js_backend_commands.py
Source/JavaScriptCore/inspector/scripts/codegen/models.py
Source/JavaScriptCore/inspector/scripts/tests/generic/domain-availability.json
Source/JavaScriptCore/inspector/scripts/tests/generic/expected/domain-availability.json-result
Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-availability-type.json-error [new file with mode: 0644]
Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-availability-value.json-error [new file with mode: 0644]
Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-availability.json-error
Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-availability-type.json [moved from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-availability.json with 100% similarity]
Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-availability-value.json [new file with mode: 0644]
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Protocol/InspectorBackend.js
Source/WebInspectorUI/UserInterface/Protocol/Legacy/10.0/InspectorBackendCommands.js
Source/WebInspectorUI/UserInterface/Protocol/Legacy/10.3/InspectorBackendCommands.js
Source/WebInspectorUI/UserInterface/Protocol/Legacy/11.0/InspectorBackendCommands.js
Source/WebInspectorUI/UserInterface/Protocol/Legacy/8.0/InspectorBackendCommands.js
Source/WebInspectorUI/UserInterface/Protocol/Legacy/9.0/InspectorBackendCommands.js
Source/WebInspectorUI/UserInterface/Protocol/Legacy/9.3/InspectorBackendCommands.js
Source/WebInspectorUI/Versions/Inspector-iOS-10.0.json
Source/WebInspectorUI/Versions/Inspector-iOS-10.3.json
Source/WebInspectorUI/Versions/Inspector-iOS-11.0.json
Source/WebInspectorUI/Versions/Inspector-iOS-8.0.json
Source/WebInspectorUI/Versions/Inspector-iOS-9.0.json
Source/WebInspectorUI/Versions/Inspector-iOS-9.3.json

index d03c20e..284de35 100644 (file)
@@ -1,3 +1,43 @@
+2017-11-09  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: Make domain availability a list of types instead of a single type
+        https://bugs.webkit.org/show_bug.cgi?id=179457
+
+        Reviewed by Brian Burg.
+
+        * inspector/scripts/codegen/generate_js_backend_commands.py:
+        (JSBackendCommandsGenerator.generate_domain):
+        Update output of `InspectorBackend.activateDomain` to include the list.
+
+        * inspector/scripts/codegen/models.py:
+        (Protocol.parse_domain):
+        Parse `availability` as a list and include a new supported value of "service-worker".
+
+        * inspector/protocol/ApplicationCache.json:
+        * inspector/protocol/CSS.json:
+        * inspector/protocol/Canvas.json:
+        * inspector/protocol/DOM.json:
+        * inspector/protocol/DOMDebugger.json:
+        * inspector/protocol/DOMStorage.json:
+        * inspector/protocol/Database.json:
+        * inspector/protocol/IndexedDB.json:
+        * inspector/protocol/LayerTree.json:
+        * inspector/protocol/Memory.json:
+        * inspector/protocol/Network.json:
+        * inspector/protocol/Page.json:
+        * inspector/protocol/Timeline.json:
+        * inspector/protocol/Worker.json:
+        Update `availability` to be a list.
+
+        * inspector/scripts/tests/generic/domain-availability.json:
+        * inspector/scripts/tests/generic/expected/domain-availability.json-result:
+        * inspector/scripts/tests/generic/expected/fail-on-domain-availability-type.json-error: Added.
+        * inspector/scripts/tests/generic/expected/fail-on-domain-availability-value.json-error: Added.
+        * inspector/scripts/tests/generic/expected/fail-on-domain-availability.json-error:
+        * inspector/scripts/tests/generic/fail-on-domain-availability-type.json: Copied from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-availability.json.
+        * inspector/scripts/tests/generic/fail-on-domain-availability-value.json: Renamed from Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-availability.json.
+        Update tests to include a test for the type and an invalid value.
+
 2017-11-03  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         [JSC][JIT] Clean up SlowPathCall stubs
index 9ffb068..9ef79b0 100644 (file)
@@ -1,6 +1,6 @@
 {
     "domain": "ApplicationCache",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ApplicationCacheResource",
index 9c8a441..0e8b080 100644 (file)
@@ -1,7 +1,7 @@
 {
     "domain": "CSS",
     "description": "This domain exposes CSS read/write operations. All CSS objects, like stylesheets, rules, and styles, have an associated <code>id</code> used in subsequent operations on the related object. Each object type has a specific <code>id</code> structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the <code>get*ForNode()</code> calls (which accept a DOM node id). Alternatively, a client can discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method and subsequently load the required stylesheet contents using the <code>getStyleSheet[Text]()</code> methods.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StyleSheetId",
index 5b73910..123a604 100644 (file)
@@ -1,6 +1,6 @@
 {
     "domain": "Canvas",
-    "availability": "web",
+    "availability": ["web"],
     "description": "Canvas domain allows tracking of canvases that have an associated graphics context. Tracks canvases in the DOM and CSS canvases created with -webkit-canvas.",
     "types": [
         {
index 038f309..f691722 100644 (file)
@@ -1,7 +1,7 @@
 {
     "domain": "DOM",
     "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "NodeId",
index d6ea2d7..04c1761 100644 (file)
@@ -1,7 +1,7 @@
 {
     "domain": "DOMDebugger",
     "description": "DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DOMBreakpointType",
index 812e70d..2bf98fb 100644 (file)
@@ -1,7 +1,7 @@
 {
     "domain": "DOMStorage",
     "description": "Query and modify DOM storage.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StorageId",
index b959e0f..e6ddabc 100644 (file)
@@ -1,6 +1,6 @@
 {
     "domain": "Database",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseId",
index bc35008..069e6ed 100644 (file)
@@ -1,7 +1,7 @@
 {
     "domain": "IndexedDB",
     "featureGuard": "ENABLE(INDEXED_DATABASE)",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseWithObjectStores",
index aaad388..fd59115 100644 (file)
@@ -1,6 +1,6 @@
 {
     "domain": "LayerTree",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LayerId",
index 7dcfe59..b6b3db9 100644 (file)
@@ -2,7 +2,7 @@
     "domain": "Memory",
     "description": "Memory domain exposes page memory tracking.",
     "featureGuard": "ENABLE(RESOURCE_USAGE)",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "Event",
index 16b7b49..099b40a 100644 (file)
@@ -1,7 +1,7 @@
 {
     "domain": "Network",
     "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LoaderId",
index 0454bd6..6e8b09f 100644 (file)
@@ -1,7 +1,7 @@
 {
     "domain": "Page",
     "description": "Actions and events related to the inspected page belong to the page domain.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ResourceType",
index 7739675..4a8ad6d 100644 (file)
@@ -1,7 +1,7 @@
 {
     "domain": "Timeline",
     "description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "EventType",
index a57fac0..a4e853d 100644 (file)
@@ -1,6 +1,6 @@
 {
     "domain": "Worker",
-    "availability": "web",
+    "availability": ["web"],
     "types": [],
     "commands": [
         {
index 785d017..93307a8 100755 (executable)
@@ -25,6 +25,7 @@
 # THE POSSIBILITY OF SUCH DAMAGE.
 
 
+import json
 import logging
 import string
 from string import Template
@@ -131,10 +132,10 @@ class JSBackendCommandsGenerator(Generator):
 
         activate_args = {
             'domain': domain.domain_name,
-            'availability': domain.availability,
+            'availability': json.dumps(domain.availability) if domain.availability else '',
         }
         if domain.availability:
-            lines.append('InspectorBackend.activateDomain("%(domain)s", "%(availability)s");' % activate_args)
+            lines.append('InspectorBackend.activateDomain("%(domain)s", %(availability)s);' % activate_args)
         else:
             lines.append('InspectorBackend.activateDomain("%(domain)s");' % activate_args)
 
index cf9acfd..24d30bf 100755 (executable)
@@ -384,9 +384,12 @@ class Protocol:
         if 'availability' in json:
             if not commands and not events:
                 raise ParseException("Malformed domain specification: availability should only be included if there are commands or events.")
-            allowed_activation_strings = set(['web'])
-            if json['availability'] not in allowed_activation_strings:
-                raise ParseException('Malformed domain specification: availability is an unsupported string. Was: "%s", Allowed values: %s' % (json['availability'], ', '.join(allowed_activation_strings)))
+            if not isinstance(json['availability'], list):
+                raise ParseException("Malformed domain specification: availability is not an array")
+            allowed_activation_strings = set(['web', 'service-worker'])
+            for availability_type in json['availability']:
+                if availability_type not in allowed_activation_strings:
+                    raise ParseException('Malformed domain specification: availability is an unsupported string. Was: "%s", Allowed values: %s' % (json['availability'], ', '.join(allowed_activation_strings)))
 
         if 'workerSupported' in json:
             if not isinstance(json['workerSupported'], bool):
index 361021e..2bd40d4 100644 (file)
@@ -31,7 +31,7 @@
 
 // DomainA.
 InspectorBackend.registerCommand("DomainA.enable", [], []);
-InspectorBackend.activateDomain("DomainA", "web");
+InspectorBackend.activateDomain("DomainA", ["web"]);
 
 // DomainB.
 InspectorBackend.registerCommand("DomainB.enable", [], []);
diff --git a/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-availability-type.json-error b/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-availability-type.json-error
new file mode 100644 (file)
index 0000000..c24e51d
--- /dev/null
@@ -0,0 +1 @@
+ERROR: Malformed domain specification: availability is not an array
diff --git a/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-availability-value.json-error b/Source/JavaScriptCore/inspector/scripts/tests/generic/expected/fail-on-domain-availability-value.json-error
new file mode 100644 (file)
index 0000000..5118d7a
--- /dev/null
@@ -0,0 +1 @@
+ERROR: Malformed domain specification: availability is an unsupported string. Was: "[u'webb']", Allowed values: web, service-worker
diff --git a/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-availability-value.json b/Source/JavaScriptCore/inspector/scripts/tests/generic/fail-on-domain-availability-value.json
new file mode 100644 (file)
index 0000000..539e8fe
--- /dev/null
@@ -0,0 +1,9 @@
+{
+    "domain": "WebOnly",
+    "availability": ["webb"],
+    "commands": [
+        {
+            "name": "enable"
+        }
+    ]
+}
index 03f3d9d..a40d358 100644 (file)
@@ -1,3 +1,30 @@
+2017-11-09  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: Make domain availability a list of types instead of a single type
+        https://bugs.webkit.org/show_bug.cgi?id=179457
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Protocol/InspectorBackend.js:
+        (InspectorBackendClass.prototype.activateDomain):
+        The second value changed to be an optional list. Check if the active
+        debuggable type is in the list or not.
+
+        * UserInterface/Protocol/Legacy/10.0/InspectorBackendCommands.js:
+        * UserInterface/Protocol/Legacy/10.3/InspectorBackendCommands.js:
+        * UserInterface/Protocol/Legacy/11.0/InspectorBackendCommands.js:
+        * UserInterface/Protocol/Legacy/8.0/InspectorBackendCommands.js:
+        * UserInterface/Protocol/Legacy/9.0/InspectorBackendCommands.js:
+        * UserInterface/Protocol/Legacy/9.3/InspectorBackendCommands.js:
+        * Versions/Inspector-iOS-10.0.json:
+        * Versions/Inspector-iOS-10.3.json:
+        * Versions/Inspector-iOS-11.0.json:
+        * Versions/Inspector-iOS-8.0.json:
+        * Versions/Inspector-iOS-9.0.json:
+        * Versions/Inspector-iOS-9.3.json:
+        Since this is a change to how we generate the frontend resource,
+        update the legacy versioned backends and regenerate their resource.
+
 2017-11-09  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         REGRESSION(r224566): [GTK][WPE] Many inspector tests are failing after r224566
index efb6e95..c8813db 100644 (file)
@@ -158,10 +158,10 @@ InspectorBackendClass = class InspectorBackendClass
         InspectorBackend.mainConnection.runAfterPendingDispatches(script);
     }
 
-    activateDomain(domainName, activationDebuggableType)
+    activateDomain(domainName, activationDebuggableTypes)
     {
-        if (!activationDebuggableType || InspectorFrontendHost.debuggableType() === activationDebuggableType) {
-            var agent = this._agents[domainName];
+        if (!activationDebuggableTypes || activationDebuggableTypes.includes(InspectorFrontendHost.debuggableType())) {
+            let agent = this._agents[domainName];
             agent.activate();
             return agent;
         }
index c6e30e3..83cf835 100644 (file)
@@ -36,7 +36,7 @@ InspectorBackend.registerCommand("ApplicationCache.getFramesWithManifests", [],
 InspectorBackend.registerCommand("ApplicationCache.enable", [], []);
 InspectorBackend.registerCommand("ApplicationCache.getManifestForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["manifestURL"]);
 InspectorBackend.registerCommand("ApplicationCache.getApplicationCacheForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["applicationCache"]);
-InspectorBackend.activateDomain("ApplicationCache", "web");
+InspectorBackend.activateDomain("ApplicationCache", ["web"]);
 
 // CSS.
 InspectorBackend.registerCSSDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "CSS");
@@ -70,7 +70,7 @@ InspectorBackend.registerCommand("CSS.getSupportedCSSProperties", [], ["cssPrope
 InspectorBackend.registerCommand("CSS.getSupportedSystemFontFamilyNames", [], ["fontFamilyNames"]);
 InspectorBackend.registerCommand("CSS.forcePseudoState", [{"name": "nodeId", "type": "number", "optional": false}, {"name": "forcedPseudoClasses", "type": "object", "optional": false}], []);
 InspectorBackend.registerCommand("CSS.getNamedFlowCollection", [{"name": "documentNodeId", "type": "number", "optional": false}], ["namedFlows"]);
-InspectorBackend.activateDomain("CSS", "web");
+InspectorBackend.activateDomain("CSS", ["web"]);
 
 // Console.
 InspectorBackend.registerConsoleDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Console");
@@ -145,7 +145,7 @@ InspectorBackend.registerCommand("DOM.undo", [], []);
 InspectorBackend.registerCommand("DOM.redo", [], []);
 InspectorBackend.registerCommand("DOM.markUndoableState", [], []);
 InspectorBackend.registerCommand("DOM.focus", [{"name": "nodeId", "type": "number", "optional": false}], []);
-InspectorBackend.activateDomain("DOM", "web");
+InspectorBackend.activateDomain("DOM", ["web"]);
 
 // DOMStorage.
 InspectorBackend.registerDOMStorageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "DOMStorage");
@@ -158,7 +158,7 @@ InspectorBackend.registerCommand("DOMStorage.disable", [], []);
 InspectorBackend.registerCommand("DOMStorage.getDOMStorageItems", [{"name": "storageId", "type": "object", "optional": false}], ["entries"]);
 InspectorBackend.registerCommand("DOMStorage.setDOMStorageItem", [{"name": "storageId", "type": "object", "optional": false}, {"name": "key", "type": "string", "optional": false}, {"name": "value", "type": "string", "optional": false}], []);
 InspectorBackend.registerCommand("DOMStorage.removeDOMStorageItem", [{"name": "storageId", "type": "object", "optional": false}, {"name": "key", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("DOMStorage", "web");
+InspectorBackend.activateDomain("DOMStorage", ["web"]);
 
 // Database.
 InspectorBackend.registerDatabaseDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Database");
@@ -167,7 +167,7 @@ InspectorBackend.registerCommand("Database.enable", [], []);
 InspectorBackend.registerCommand("Database.disable", [], []);
 InspectorBackend.registerCommand("Database.getDatabaseTableNames", [{"name": "databaseId", "type": "string", "optional": false}], ["tableNames"]);
 InspectorBackend.registerCommand("Database.executeSQL", [{"name": "databaseId", "type": "string", "optional": false}, {"name": "query", "type": "string", "optional": false}], ["columnNames", "values", "sqlError"]);
-InspectorBackend.activateDomain("Database", "web");
+InspectorBackend.activateDomain("Database", ["web"]);
 
 // Debugger.
 InspectorBackend.registerDebuggerDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Debugger");
@@ -228,7 +228,7 @@ InspectorBackend.registerCommand("IndexedDB.requestDatabaseNames", [{"name": "se
 InspectorBackend.registerCommand("IndexedDB.requestDatabase", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}], ["databaseWithObjectStores"]);
 InspectorBackend.registerCommand("IndexedDB.requestData", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}, {"name": "objectStoreName", "type": "string", "optional": false}, {"name": "indexName", "type": "string", "optional": false}, {"name": "skipCount", "type": "number", "optional": false}, {"name": "pageSize", "type": "number", "optional": false}, {"name": "keyRange", "type": "object", "optional": true}], ["objectStoreDataEntries", "hasMore"]);
 InspectorBackend.registerCommand("IndexedDB.clearObjectStore", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}, {"name": "objectStoreName", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("IndexedDB", "web");
+InspectorBackend.activateDomain("IndexedDB", ["web"]);
 
 // Inspector.
 InspectorBackend.registerInspectorDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Inspector");
@@ -247,7 +247,7 @@ InspectorBackend.registerCommand("LayerTree.enable", [], []);
 InspectorBackend.registerCommand("LayerTree.disable", [], []);
 InspectorBackend.registerCommand("LayerTree.layersForNode", [{"name": "nodeId", "type": "number", "optional": false}], ["layers"]);
 InspectorBackend.registerCommand("LayerTree.reasonsForCompositingLayer", [{"name": "layerId", "type": "string", "optional": false}], ["compositingReasons"]);
-InspectorBackend.activateDomain("LayerTree", "web");
+InspectorBackend.activateDomain("LayerTree", ["web"]);
 
 // Memory.
 InspectorBackend.registerMemoryDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Memory");
@@ -261,7 +261,7 @@ InspectorBackend.registerCommand("Memory.enable", [], []);
 InspectorBackend.registerCommand("Memory.disable", [], []);
 InspectorBackend.registerCommand("Memory.startTracking", [], []);
 InspectorBackend.registerCommand("Memory.stopTracking", [], []);
-InspectorBackend.activateDomain("Memory", "web");
+InspectorBackend.activateDomain("Memory", ["web"]);
 
 // Network.
 InspectorBackend.registerNetworkDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Network");
@@ -285,7 +285,7 @@ InspectorBackend.registerCommand("Network.disable", [], []);
 InspectorBackend.registerCommand("Network.setExtraHTTPHeaders", [{"name": "headers", "type": "object", "optional": false}], []);
 InspectorBackend.registerCommand("Network.getResponseBody", [{"name": "requestId", "type": "string", "optional": false}], ["body", "base64Encoded"]);
 InspectorBackend.registerCommand("Network.loadResource", [{"name": "frameId", "type": "string", "optional": false}, {"name": "url", "type": "string", "optional": false}], ["content", "mimeType", "status"]);
-InspectorBackend.activateDomain("Network", "web");
+InspectorBackend.activateDomain("Network", ["web"]);
 
 // Page.
 InspectorBackend.registerPageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Page");
@@ -322,7 +322,7 @@ InspectorBackend.registerCommand("Page.setCompositingBordersVisible", [{"name":
 InspectorBackend.registerCommand("Page.snapshotNode", [{"name": "nodeId", "type": "number", "optional": false}], ["dataURL"]);
 InspectorBackend.registerCommand("Page.snapshotRect", [{"name": "x", "type": "number", "optional": false}, {"name": "y", "type": "number", "optional": false}, {"name": "width", "type": "number", "optional": false}, {"name": "height", "type": "number", "optional": false}, {"name": "coordinateSystem", "type": "string", "optional": false}], ["dataURL"]);
 InspectorBackend.registerCommand("Page.archive", [], ["data"]);
-InspectorBackend.activateDomain("Page", "web");
+InspectorBackend.activateDomain("Page", ["web"]);
 
 // Runtime.
 InspectorBackend.registerRuntimeDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Runtime");
@@ -377,4 +377,4 @@ InspectorBackend.registerCommand("Timeline.start", [{"name": "maxCallStackDepth"
 InspectorBackend.registerCommand("Timeline.stop", [], []);
 InspectorBackend.registerCommand("Timeline.setAutoCaptureEnabled", [{"name": "enabled", "type": "boolean", "optional": false}], []);
 InspectorBackend.registerCommand("Timeline.setInstruments", [{"name": "instruments", "type": "object", "optional": false}], []);
-InspectorBackend.activateDomain("Timeline", "web");
+InspectorBackend.activateDomain("Timeline", ["web"]);
index bfbe546..655cdab 100644 (file)
@@ -36,7 +36,7 @@ InspectorBackend.registerCommand("ApplicationCache.getFramesWithManifests", [],
 InspectorBackend.registerCommand("ApplicationCache.enable", [], []);
 InspectorBackend.registerCommand("ApplicationCache.getManifestForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["manifestURL"]);
 InspectorBackend.registerCommand("ApplicationCache.getApplicationCacheForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["applicationCache"]);
-InspectorBackend.activateDomain("ApplicationCache", "web");
+InspectorBackend.activateDomain("ApplicationCache", ["web"]);
 
 // CSS.
 InspectorBackend.registerCSSDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "CSS");
@@ -70,7 +70,7 @@ InspectorBackend.registerCommand("CSS.getSupportedCSSProperties", [], ["cssPrope
 InspectorBackend.registerCommand("CSS.getSupportedSystemFontFamilyNames", [], ["fontFamilyNames"]);
 InspectorBackend.registerCommand("CSS.forcePseudoState", [{"name": "nodeId", "type": "number", "optional": false}, {"name": "forcedPseudoClasses", "type": "object", "optional": false}], []);
 InspectorBackend.registerCommand("CSS.getNamedFlowCollection", [{"name": "documentNodeId", "type": "number", "optional": false}], ["namedFlows"]);
-InspectorBackend.activateDomain("CSS", "web");
+InspectorBackend.activateDomain("CSS", ["web"]);
 
 // Console.
 InspectorBackend.registerConsoleDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Console");
@@ -148,7 +148,7 @@ InspectorBackend.registerCommand("DOM.undo", [], []);
 InspectorBackend.registerCommand("DOM.redo", [], []);
 InspectorBackend.registerCommand("DOM.markUndoableState", [], []);
 InspectorBackend.registerCommand("DOM.focus", [{"name": "nodeId", "type": "number", "optional": false}], []);
-InspectorBackend.activateDomain("DOM", "web");
+InspectorBackend.activateDomain("DOM", ["web"]);
 
 // DOMStorage.
 InspectorBackend.registerDOMStorageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "DOMStorage");
@@ -161,7 +161,7 @@ InspectorBackend.registerCommand("DOMStorage.disable", [], []);
 InspectorBackend.registerCommand("DOMStorage.getDOMStorageItems", [{"name": "storageId", "type": "object", "optional": false}], ["entries"]);
 InspectorBackend.registerCommand("DOMStorage.setDOMStorageItem", [{"name": "storageId", "type": "object", "optional": false}, {"name": "key", "type": "string", "optional": false}, {"name": "value", "type": "string", "optional": false}], []);
 InspectorBackend.registerCommand("DOMStorage.removeDOMStorageItem", [{"name": "storageId", "type": "object", "optional": false}, {"name": "key", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("DOMStorage", "web");
+InspectorBackend.activateDomain("DOMStorage", ["web"]);
 
 // Database.
 InspectorBackend.registerDatabaseDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Database");
@@ -170,7 +170,7 @@ InspectorBackend.registerCommand("Database.enable", [], []);
 InspectorBackend.registerCommand("Database.disable", [], []);
 InspectorBackend.registerCommand("Database.getDatabaseTableNames", [{"name": "databaseId", "type": "string", "optional": false}], ["tableNames"]);
 InspectorBackend.registerCommand("Database.executeSQL", [{"name": "databaseId", "type": "string", "optional": false}, {"name": "query", "type": "string", "optional": false}], ["columnNames", "values", "sqlError"]);
-InspectorBackend.activateDomain("Database", "web");
+InspectorBackend.activateDomain("Database", ["web"]);
 
 // Debugger.
 InspectorBackend.registerDebuggerDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Debugger");
@@ -235,7 +235,7 @@ InspectorBackend.registerCommand("IndexedDB.requestDatabaseNames", [{"name": "se
 InspectorBackend.registerCommand("IndexedDB.requestDatabase", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}], ["databaseWithObjectStores"]);
 InspectorBackend.registerCommand("IndexedDB.requestData", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}, {"name": "objectStoreName", "type": "string", "optional": false}, {"name": "indexName", "type": "string", "optional": false}, {"name": "skipCount", "type": "number", "optional": false}, {"name": "pageSize", "type": "number", "optional": false}, {"name": "keyRange", "type": "object", "optional": true}], ["objectStoreDataEntries", "hasMore"]);
 InspectorBackend.registerCommand("IndexedDB.clearObjectStore", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}, {"name": "objectStoreName", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("IndexedDB", "web");
+InspectorBackend.activateDomain("IndexedDB", ["web"]);
 
 // Inspector.
 InspectorBackend.registerInspectorDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Inspector");
@@ -254,7 +254,7 @@ InspectorBackend.registerCommand("LayerTree.enable", [], []);
 InspectorBackend.registerCommand("LayerTree.disable", [], []);
 InspectorBackend.registerCommand("LayerTree.layersForNode", [{"name": "nodeId", "type": "number", "optional": false}], ["layers"]);
 InspectorBackend.registerCommand("LayerTree.reasonsForCompositingLayer", [{"name": "layerId", "type": "string", "optional": false}], ["compositingReasons"]);
-InspectorBackend.activateDomain("LayerTree", "web");
+InspectorBackend.activateDomain("LayerTree", ["web"]);
 
 // Memory.
 InspectorBackend.registerMemoryDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Memory");
@@ -268,7 +268,7 @@ InspectorBackend.registerCommand("Memory.enable", [], []);
 InspectorBackend.registerCommand("Memory.disable", [], []);
 InspectorBackend.registerCommand("Memory.startTracking", [], []);
 InspectorBackend.registerCommand("Memory.stopTracking", [], []);
-InspectorBackend.activateDomain("Memory", "web");
+InspectorBackend.activateDomain("Memory", ["web"]);
 
 // Network.
 InspectorBackend.registerNetworkDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Network");
@@ -292,7 +292,7 @@ InspectorBackend.registerCommand("Network.disable", [], []);
 InspectorBackend.registerCommand("Network.setExtraHTTPHeaders", [{"name": "headers", "type": "object", "optional": false}], []);
 InspectorBackend.registerCommand("Network.getResponseBody", [{"name": "requestId", "type": "string", "optional": false}], ["body", "base64Encoded"]);
 InspectorBackend.registerCommand("Network.loadResource", [{"name": "frameId", "type": "string", "optional": false}, {"name": "url", "type": "string", "optional": false}], ["content", "mimeType", "status"]);
-InspectorBackend.activateDomain("Network", "web");
+InspectorBackend.activateDomain("Network", ["web"]);
 
 // Page.
 InspectorBackend.registerPageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Page");
@@ -323,7 +323,7 @@ InspectorBackend.registerCommand("Page.setCompositingBordersVisible", [{"name":
 InspectorBackend.registerCommand("Page.snapshotNode", [{"name": "nodeId", "type": "number", "optional": false}], ["dataURL"]);
 InspectorBackend.registerCommand("Page.snapshotRect", [{"name": "x", "type": "number", "optional": false}, {"name": "y", "type": "number", "optional": false}, {"name": "width", "type": "number", "optional": false}, {"name": "height", "type": "number", "optional": false}, {"name": "coordinateSystem", "type": "string", "optional": false}], ["dataURL"]);
 InspectorBackend.registerCommand("Page.archive", [], ["data"]);
-InspectorBackend.activateDomain("Page", "web");
+InspectorBackend.activateDomain("Page", ["web"]);
 
 // Runtime.
 InspectorBackend.registerRuntimeDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Runtime");
@@ -381,7 +381,7 @@ InspectorBackend.registerCommand("Timeline.start", [{"name": "maxCallStackDepth"
 InspectorBackend.registerCommand("Timeline.stop", [], []);
 InspectorBackend.registerCommand("Timeline.setAutoCaptureEnabled", [{"name": "enabled", "type": "boolean", "optional": false}], []);
 InspectorBackend.registerCommand("Timeline.setInstruments", [{"name": "instruments", "type": "object", "optional": false}], []);
-InspectorBackend.activateDomain("Timeline", "web");
+InspectorBackend.activateDomain("Timeline", ["web"]);
 
 // Worker.
 InspectorBackend.registerWorkerDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Worker");
@@ -392,4 +392,4 @@ InspectorBackend.registerCommand("Worker.enable", [], []);
 InspectorBackend.registerCommand("Worker.disable", [], []);
 InspectorBackend.registerCommand("Worker.initialized", [{"name": "workerId", "type": "string", "optional": false}], []);
 InspectorBackend.registerCommand("Worker.sendMessageToWorker", [{"name": "workerId", "type": "string", "optional": false}, {"name": "message", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("Worker", "web");
+InspectorBackend.activateDomain("Worker", ["web"]);
index f31822f..06ea4e1 100644 (file)
@@ -36,7 +36,7 @@ InspectorBackend.registerCommand("ApplicationCache.getFramesWithManifests", [],
 InspectorBackend.registerCommand("ApplicationCache.enable", [], []);
 InspectorBackend.registerCommand("ApplicationCache.getManifestForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["manifestURL"]);
 InspectorBackend.registerCommand("ApplicationCache.getApplicationCacheForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["applicationCache"]);
-InspectorBackend.activateDomain("ApplicationCache", "web");
+InspectorBackend.activateDomain("ApplicationCache", ["web"]);
 
 // CSS.
 InspectorBackend.registerCSSDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "CSS");
@@ -70,7 +70,7 @@ InspectorBackend.registerCommand("CSS.getSupportedCSSProperties", [], ["cssPrope
 InspectorBackend.registerCommand("CSS.getSupportedSystemFontFamilyNames", [], ["fontFamilyNames"]);
 InspectorBackend.registerCommand("CSS.forcePseudoState", [{"name": "nodeId", "type": "number", "optional": false}, {"name": "forcedPseudoClasses", "type": "object", "optional": false}], []);
 InspectorBackend.registerCommand("CSS.getNamedFlowCollection", [{"name": "documentNodeId", "type": "number", "optional": false}], ["namedFlows"]);
-InspectorBackend.activateDomain("CSS", "web");
+InspectorBackend.activateDomain("CSS", ["web"]);
 
 // Console.
 InspectorBackend.registerConsoleDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Console");
@@ -148,7 +148,7 @@ InspectorBackend.registerCommand("DOM.undo", [], []);
 InspectorBackend.registerCommand("DOM.redo", [], []);
 InspectorBackend.registerCommand("DOM.markUndoableState", [], []);
 InspectorBackend.registerCommand("DOM.focus", [{"name": "nodeId", "type": "number", "optional": false}], []);
-InspectorBackend.activateDomain("DOM", "web");
+InspectorBackend.activateDomain("DOM", ["web"]);
 
 // DOMDebugger.
 InspectorBackend.registerEnum("DOMDebugger.DOMBreakpointType", {SubtreeModified: "subtree-modified", AttributeModified: "attribute-modified", NodeRemoved: "node-removed"});
@@ -160,7 +160,7 @@ InspectorBackend.registerCommand("DOMDebugger.setInstrumentationBreakpoint", [{"
 InspectorBackend.registerCommand("DOMDebugger.removeInstrumentationBreakpoint", [{"name": "eventName", "type": "string", "optional": false}], []);
 InspectorBackend.registerCommand("DOMDebugger.setXHRBreakpoint", [{"name": "url", "type": "string", "optional": false}, {"name": "isRegex", "type": "boolean", "optional": true}], []);
 InspectorBackend.registerCommand("DOMDebugger.removeXHRBreakpoint", [{"name": "url", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("DOMDebugger", "web");
+InspectorBackend.activateDomain("DOMDebugger", ["web"]);
 
 // DOMStorage.
 InspectorBackend.registerDOMStorageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "DOMStorage");
@@ -173,7 +173,7 @@ InspectorBackend.registerCommand("DOMStorage.disable", [], []);
 InspectorBackend.registerCommand("DOMStorage.getDOMStorageItems", [{"name": "storageId", "type": "object", "optional": false}], ["entries"]);
 InspectorBackend.registerCommand("DOMStorage.setDOMStorageItem", [{"name": "storageId", "type": "object", "optional": false}, {"name": "key", "type": "string", "optional": false}, {"name": "value", "type": "string", "optional": false}], []);
 InspectorBackend.registerCommand("DOMStorage.removeDOMStorageItem", [{"name": "storageId", "type": "object", "optional": false}, {"name": "key", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("DOMStorage", "web");
+InspectorBackend.activateDomain("DOMStorage", ["web"]);
 
 // Database.
 InspectorBackend.registerDatabaseDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Database");
@@ -182,7 +182,7 @@ InspectorBackend.registerCommand("Database.enable", [], []);
 InspectorBackend.registerCommand("Database.disable", [], []);
 InspectorBackend.registerCommand("Database.getDatabaseTableNames", [{"name": "databaseId", "type": "string", "optional": false}], ["tableNames"]);
 InspectorBackend.registerCommand("Database.executeSQL", [{"name": "databaseId", "type": "string", "optional": false}, {"name": "query", "type": "string", "optional": false}], ["columnNames", "values", "sqlError"]);
-InspectorBackend.activateDomain("Database", "web");
+InspectorBackend.activateDomain("Database", ["web"]);
 
 // Debugger.
 InspectorBackend.registerDebuggerDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Debugger");
@@ -248,7 +248,7 @@ InspectorBackend.registerCommand("IndexedDB.requestDatabaseNames", [{"name": "se
 InspectorBackend.registerCommand("IndexedDB.requestDatabase", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}], ["databaseWithObjectStores"]);
 InspectorBackend.registerCommand("IndexedDB.requestData", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}, {"name": "objectStoreName", "type": "string", "optional": false}, {"name": "indexName", "type": "string", "optional": false}, {"name": "skipCount", "type": "number", "optional": false}, {"name": "pageSize", "type": "number", "optional": false}, {"name": "keyRange", "type": "object", "optional": true}], ["objectStoreDataEntries", "hasMore"]);
 InspectorBackend.registerCommand("IndexedDB.clearObjectStore", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}, {"name": "objectStoreName", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("IndexedDB", "web");
+InspectorBackend.activateDomain("IndexedDB", ["web"]);
 
 // Inspector.
 InspectorBackend.registerInspectorDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Inspector");
@@ -267,7 +267,7 @@ InspectorBackend.registerCommand("LayerTree.enable", [], []);
 InspectorBackend.registerCommand("LayerTree.disable", [], []);
 InspectorBackend.registerCommand("LayerTree.layersForNode", [{"name": "nodeId", "type": "number", "optional": false}], ["layers"]);
 InspectorBackend.registerCommand("LayerTree.reasonsForCompositingLayer", [{"name": "layerId", "type": "string", "optional": false}], ["compositingReasons"]);
-InspectorBackend.activateDomain("LayerTree", "web");
+InspectorBackend.activateDomain("LayerTree", ["web"]);
 
 // Memory.
 InspectorBackend.registerMemoryDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Memory");
@@ -281,7 +281,7 @@ InspectorBackend.registerCommand("Memory.enable", [], []);
 InspectorBackend.registerCommand("Memory.disable", [], []);
 InspectorBackend.registerCommand("Memory.startTracking", [], []);
 InspectorBackend.registerCommand("Memory.stopTracking", [], []);
-InspectorBackend.activateDomain("Memory", "web");
+InspectorBackend.activateDomain("Memory", ["web"]);
 
 // Network.
 InspectorBackend.registerNetworkDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Network");
@@ -308,7 +308,7 @@ InspectorBackend.registerCommand("Network.getResponseBody", [{"name": "requestId
 InspectorBackend.registerCommand("Network.setResourceCachingDisabled", [{"name": "disabled", "type": "boolean", "optional": false}], []);
 InspectorBackend.registerCommand("Network.loadResource", [{"name": "frameId", "type": "string", "optional": false}, {"name": "url", "type": "string", "optional": false}], ["content", "mimeType", "status"]);
 InspectorBackend.registerCommand("Network.resolveWebSocket", [{"name": "requestId", "type": "string", "optional": false}, {"name": "objectGroup", "type": "string", "optional": true}], ["object"]);
-InspectorBackend.activateDomain("Network", "web");
+InspectorBackend.activateDomain("Network", ["web"]);
 
 // Page.
 InspectorBackend.registerPageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Page");
@@ -339,7 +339,7 @@ InspectorBackend.registerCommand("Page.setCompositingBordersVisible", [{"name":
 InspectorBackend.registerCommand("Page.snapshotNode", [{"name": "nodeId", "type": "number", "optional": false}], ["dataURL"]);
 InspectorBackend.registerCommand("Page.snapshotRect", [{"name": "x", "type": "number", "optional": false}, {"name": "y", "type": "number", "optional": false}, {"name": "width", "type": "number", "optional": false}, {"name": "height", "type": "number", "optional": false}, {"name": "coordinateSystem", "type": "string", "optional": false}], ["dataURL"]);
 InspectorBackend.registerCommand("Page.archive", [], ["data"]);
-InspectorBackend.activateDomain("Page", "web");
+InspectorBackend.activateDomain("Page", ["web"]);
 
 // Runtime.
 InspectorBackend.registerRuntimeDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Runtime");
@@ -398,7 +398,7 @@ InspectorBackend.registerCommand("Timeline.start", [{"name": "maxCallStackDepth"
 InspectorBackend.registerCommand("Timeline.stop", [], []);
 InspectorBackend.registerCommand("Timeline.setAutoCaptureEnabled", [{"name": "enabled", "type": "boolean", "optional": false}], []);
 InspectorBackend.registerCommand("Timeline.setInstruments", [{"name": "instruments", "type": "object", "optional": false}], []);
-InspectorBackend.activateDomain("Timeline", "web");
+InspectorBackend.activateDomain("Timeline", ["web"]);
 
 // Worker.
 InspectorBackend.registerWorkerDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Worker");
@@ -409,4 +409,4 @@ InspectorBackend.registerCommand("Worker.enable", [], []);
 InspectorBackend.registerCommand("Worker.disable", [], []);
 InspectorBackend.registerCommand("Worker.initialized", [{"name": "workerId", "type": "string", "optional": false}], []);
 InspectorBackend.registerCommand("Worker.sendMessageToWorker", [{"name": "workerId", "type": "string", "optional": false}, {"name": "message", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("Worker", "web");
+InspectorBackend.activateDomain("Worker", ["web"]);
index 412e1b0..f288276 100644 (file)
@@ -126,7 +126,7 @@ InspectorBackend.registerCommand("ApplicationCache.getFramesWithManifests", [],
 InspectorBackend.registerCommand("ApplicationCache.enable", [], []);
 InspectorBackend.registerCommand("ApplicationCache.getManifestForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["manifestURL"]);
 InspectorBackend.registerCommand("ApplicationCache.getApplicationCacheForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["applicationCache"]);
-InspectorBackend.activateDomain("ApplicationCache", "web");
+InspectorBackend.activateDomain("ApplicationCache", ["web"]);
 
 // CSS.
 InspectorBackend.registerCSSDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "CSS");
@@ -156,7 +156,7 @@ InspectorBackend.registerCommand("CSS.addRule", [{"name": "contextNodeId", "type
 InspectorBackend.registerCommand("CSS.getSupportedCSSProperties", [], ["cssProperties"]);
 InspectorBackend.registerCommand("CSS.forcePseudoState", [{"name": "nodeId", "type": "number", "optional": false}, {"name": "forcedPseudoClasses", "type": "object", "optional": false}], []);
 InspectorBackend.registerCommand("CSS.getNamedFlowCollection", [{"name": "documentNodeId", "type": "number", "optional": false}], ["namedFlows"]);
-InspectorBackend.activateDomain("CSS", "web");
+InspectorBackend.activateDomain("CSS", ["web"]);
 
 // DOM.
 InspectorBackend.registerDOMDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "DOM");
@@ -209,7 +209,7 @@ InspectorBackend.registerCommand("DOM.undo", [], []);
 InspectorBackend.registerCommand("DOM.redo", [], []);
 InspectorBackend.registerCommand("DOM.markUndoableState", [], []);
 InspectorBackend.registerCommand("DOM.focus", [{"name": "nodeId", "type": "number", "optional": false}], []);
-InspectorBackend.activateDomain("DOM", "web");
+InspectorBackend.activateDomain("DOM", ["web"]);
 
 // DOMStorage.
 InspectorBackend.registerDOMStorageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "DOMStorage");
@@ -222,7 +222,7 @@ InspectorBackend.registerCommand("DOMStorage.disable", [], []);
 InspectorBackend.registerCommand("DOMStorage.getDOMStorageItems", [{"name": "storageId", "type": "object", "optional": false}], ["entries"]);
 InspectorBackend.registerCommand("DOMStorage.setDOMStorageItem", [{"name": "storageId", "type": "object", "optional": false}, {"name": "key", "type": "string", "optional": false}, {"name": "value", "type": "string", "optional": false}], []);
 InspectorBackend.registerCommand("DOMStorage.removeDOMStorageItem", [{"name": "storageId", "type": "object", "optional": false}, {"name": "key", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("DOMStorage", "web");
+InspectorBackend.activateDomain("DOMStorage", ["web"]);
 
 // Database.
 InspectorBackend.registerDatabaseDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Database");
@@ -231,7 +231,7 @@ InspectorBackend.registerCommand("Database.enable", [], []);
 InspectorBackend.registerCommand("Database.disable", [], []);
 InspectorBackend.registerCommand("Database.getDatabaseTableNames", [{"name": "databaseId", "type": "string", "optional": false}], ["tableNames"]);
 InspectorBackend.registerCommand("Database.executeSQL", [{"name": "databaseId", "type": "string", "optional": false}, {"name": "query", "type": "string", "optional": false}], ["columnNames", "values", "sqlError"]);
-InspectorBackend.activateDomain("Database", "web");
+InspectorBackend.activateDomain("Database", ["web"]);
 
 // IndexedDB.
 InspectorBackend.registerIndexedDBDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "IndexedDB");
@@ -243,7 +243,7 @@ InspectorBackend.registerCommand("IndexedDB.requestDatabaseNames", [{"name": "se
 InspectorBackend.registerCommand("IndexedDB.requestDatabase", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}], ["databaseWithObjectStores"]);
 InspectorBackend.registerCommand("IndexedDB.requestData", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}, {"name": "objectStoreName", "type": "string", "optional": false}, {"name": "indexName", "type": "string", "optional": false}, {"name": "skipCount", "type": "number", "optional": false}, {"name": "pageSize", "type": "number", "optional": false}, {"name": "keyRange", "type": "object", "optional": true}], ["objectStoreDataEntries", "hasMore"]);
 InspectorBackend.registerCommand("IndexedDB.clearObjectStore", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}, {"name": "objectStoreName", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("IndexedDB", "web");
+InspectorBackend.activateDomain("IndexedDB", ["web"]);
 
 // LayerTree.
 InspectorBackend.registerLayerTreeDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "LayerTree");
@@ -252,7 +252,7 @@ InspectorBackend.registerCommand("LayerTree.enable", [], []);
 InspectorBackend.registerCommand("LayerTree.disable", [], []);
 InspectorBackend.registerCommand("LayerTree.layersForNode", [{"name": "nodeId", "type": "number", "optional": false}], ["layers"]);
 InspectorBackend.registerCommand("LayerTree.reasonsForCompositingLayer", [{"name": "layerId", "type": "string", "optional": false}], ["compositingReasons"]);
-InspectorBackend.activateDomain("LayerTree", "web");
+InspectorBackend.activateDomain("LayerTree", ["web"]);
 
 // Network.
 InspectorBackend.registerNetworkDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Network");
@@ -276,7 +276,7 @@ InspectorBackend.registerCommand("Network.disable", [], []);
 InspectorBackend.registerCommand("Network.setExtraHTTPHeaders", [{"name": "headers", "type": "object", "optional": false}], []);
 InspectorBackend.registerCommand("Network.getResponseBody", [{"name": "requestId", "type": "string", "optional": false}], ["body", "base64Encoded"]);
 InspectorBackend.registerCommand("Network.loadResource", [{"name": "frameId", "type": "string", "optional": false}, {"name": "url", "type": "string", "optional": false}], ["content", "mimeType", "status"]);
-InspectorBackend.activateDomain("Network", "web");
+InspectorBackend.activateDomain("Network", ["web"]);
 
 // Page.
 InspectorBackend.registerPageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Page");
@@ -312,7 +312,7 @@ InspectorBackend.registerCommand("Page.setCompositingBordersVisible", [{"name":
 InspectorBackend.registerCommand("Page.snapshotNode", [{"name": "nodeId", "type": "number", "optional": false}], ["dataURL"]);
 InspectorBackend.registerCommand("Page.snapshotRect", [{"name": "x", "type": "number", "optional": false}, {"name": "y", "type": "number", "optional": false}, {"name": "width", "type": "number", "optional": false}, {"name": "height", "type": "number", "optional": false}, {"name": "coordinateSystem", "type": "string", "optional": false}], ["dataURL"]);
 InspectorBackend.registerCommand("Page.archive", [], ["data"]);
-InspectorBackend.activateDomain("Page", "web");
+InspectorBackend.activateDomain("Page", ["web"]);
 
 // Timeline.
 InspectorBackend.registerTimelineDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Timeline");
@@ -322,4 +322,4 @@ InspectorBackend.registerEvent("Timeline.recordingStarted", []);
 InspectorBackend.registerEvent("Timeline.recordingStopped", []);
 InspectorBackend.registerCommand("Timeline.start", [{"name": "maxCallStackDepth", "type": "number", "optional": true}], []);
 InspectorBackend.registerCommand("Timeline.stop", [], []);
-InspectorBackend.activateDomain("Timeline", "web");
+InspectorBackend.activateDomain("Timeline", ["web"]);
index cfedd07..4ae8288 100644 (file)
@@ -36,7 +36,7 @@ InspectorBackend.registerCommand("ApplicationCache.getFramesWithManifests", [],
 InspectorBackend.registerCommand("ApplicationCache.enable", [], []);
 InspectorBackend.registerCommand("ApplicationCache.getManifestForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["manifestURL"]);
 InspectorBackend.registerCommand("ApplicationCache.getApplicationCacheForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["applicationCache"]);
-InspectorBackend.activateDomain("ApplicationCache", "web");
+InspectorBackend.activateDomain("ApplicationCache", ["web"]);
 
 // CSS.
 InspectorBackend.registerCSSDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "CSS");
@@ -66,7 +66,7 @@ InspectorBackend.registerCommand("CSS.addRule", [{"name": "contextNodeId", "type
 InspectorBackend.registerCommand("CSS.getSupportedCSSProperties", [], ["cssProperties"]);
 InspectorBackend.registerCommand("CSS.forcePseudoState", [{"name": "nodeId", "type": "number", "optional": false}, {"name": "forcedPseudoClasses", "type": "object", "optional": false}], []);
 InspectorBackend.registerCommand("CSS.getNamedFlowCollection", [{"name": "documentNodeId", "type": "number", "optional": false}], ["namedFlows"]);
-InspectorBackend.activateDomain("CSS", "web");
+InspectorBackend.activateDomain("CSS", ["web"]);
 
 // Console.
 InspectorBackend.registerConsoleDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Console");
@@ -135,7 +135,7 @@ InspectorBackend.registerCommand("DOM.undo", [], []);
 InspectorBackend.registerCommand("DOM.redo", [], []);
 InspectorBackend.registerCommand("DOM.markUndoableState", [], []);
 InspectorBackend.registerCommand("DOM.focus", [{"name": "nodeId", "type": "number", "optional": false}], []);
-InspectorBackend.activateDomain("DOM", "web");
+InspectorBackend.activateDomain("DOM", ["web"]);
 
 // DOMStorage.
 InspectorBackend.registerDOMStorageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "DOMStorage");
@@ -148,7 +148,7 @@ InspectorBackend.registerCommand("DOMStorage.disable", [], []);
 InspectorBackend.registerCommand("DOMStorage.getDOMStorageItems", [{"name": "storageId", "type": "object", "optional": false}], ["entries"]);
 InspectorBackend.registerCommand("DOMStorage.setDOMStorageItem", [{"name": "storageId", "type": "object", "optional": false}, {"name": "key", "type": "string", "optional": false}, {"name": "value", "type": "string", "optional": false}], []);
 InspectorBackend.registerCommand("DOMStorage.removeDOMStorageItem", [{"name": "storageId", "type": "object", "optional": false}, {"name": "key", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("DOMStorage", "web");
+InspectorBackend.activateDomain("DOMStorage", ["web"]);
 
 // Database.
 InspectorBackend.registerDatabaseDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Database");
@@ -157,7 +157,7 @@ InspectorBackend.registerCommand("Database.enable", [], []);
 InspectorBackend.registerCommand("Database.disable", [], []);
 InspectorBackend.registerCommand("Database.getDatabaseTableNames", [{"name": "databaseId", "type": "string", "optional": false}], ["tableNames"]);
 InspectorBackend.registerCommand("Database.executeSQL", [{"name": "databaseId", "type": "string", "optional": false}, {"name": "query", "type": "string", "optional": false}], ["columnNames", "values", "sqlError"]);
-InspectorBackend.activateDomain("Database", "web");
+InspectorBackend.activateDomain("Database", ["web"]);
 
 // Debugger.
 InspectorBackend.registerDebuggerDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Debugger");
@@ -202,7 +202,7 @@ InspectorBackend.registerCommand("IndexedDB.requestDatabaseNames", [{"name": "se
 InspectorBackend.registerCommand("IndexedDB.requestDatabase", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}], ["databaseWithObjectStores"]);
 InspectorBackend.registerCommand("IndexedDB.requestData", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}, {"name": "objectStoreName", "type": "string", "optional": false}, {"name": "indexName", "type": "string", "optional": false}, {"name": "skipCount", "type": "number", "optional": false}, {"name": "pageSize", "type": "number", "optional": false}, {"name": "keyRange", "type": "object", "optional": true}], ["objectStoreDataEntries", "hasMore"]);
 InspectorBackend.registerCommand("IndexedDB.clearObjectStore", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}, {"name": "objectStoreName", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("IndexedDB", "web");
+InspectorBackend.activateDomain("IndexedDB", ["web"]);
 
 // Inspector.
 InspectorBackend.registerInspectorDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Inspector");
@@ -222,7 +222,7 @@ InspectorBackend.registerCommand("LayerTree.enable", [], []);
 InspectorBackend.registerCommand("LayerTree.disable", [], []);
 InspectorBackend.registerCommand("LayerTree.layersForNode", [{"name": "nodeId", "type": "number", "optional": false}], ["layers"]);
 InspectorBackend.registerCommand("LayerTree.reasonsForCompositingLayer", [{"name": "layerId", "type": "string", "optional": false}], ["compositingReasons"]);
-InspectorBackend.activateDomain("LayerTree", "web");
+InspectorBackend.activateDomain("LayerTree", ["web"]);
 
 // Network.
 InspectorBackend.registerNetworkDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Network");
@@ -246,7 +246,7 @@ InspectorBackend.registerCommand("Network.disable", [], []);
 InspectorBackend.registerCommand("Network.setExtraHTTPHeaders", [{"name": "headers", "type": "object", "optional": false}], []);
 InspectorBackend.registerCommand("Network.getResponseBody", [{"name": "requestId", "type": "string", "optional": false}], ["body", "base64Encoded"]);
 InspectorBackend.registerCommand("Network.loadResource", [{"name": "frameId", "type": "string", "optional": false}, {"name": "url", "type": "string", "optional": false}], ["content", "mimeType", "status"]);
-InspectorBackend.activateDomain("Network", "web");
+InspectorBackend.activateDomain("Network", ["web"]);
 
 // Page.
 InspectorBackend.registerPageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Page");
@@ -283,7 +283,7 @@ InspectorBackend.registerCommand("Page.setCompositingBordersVisible", [{"name":
 InspectorBackend.registerCommand("Page.snapshotNode", [{"name": "nodeId", "type": "number", "optional": false}], ["dataURL"]);
 InspectorBackend.registerCommand("Page.snapshotRect", [{"name": "x", "type": "number", "optional": false}, {"name": "y", "type": "number", "optional": false}, {"name": "width", "type": "number", "optional": false}, {"name": "height", "type": "number", "optional": false}, {"name": "coordinateSystem", "type": "string", "optional": false}], ["dataURL"]);
 InspectorBackend.registerCommand("Page.archive", [], ["data"]);
-InspectorBackend.activateDomain("Page", "web");
+InspectorBackend.activateDomain("Page", ["web"]);
 
 // Runtime.
 InspectorBackend.registerRuntimeDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Runtime");
@@ -320,4 +320,4 @@ InspectorBackend.registerEvent("Timeline.recordingStarted", []);
 InspectorBackend.registerEvent("Timeline.recordingStopped", []);
 InspectorBackend.registerCommand("Timeline.start", [{"name": "maxCallStackDepth", "type": "number", "optional": true}], []);
 InspectorBackend.registerCommand("Timeline.stop", [], []);
-InspectorBackend.activateDomain("Timeline", "web");
+InspectorBackend.activateDomain("Timeline", ["web"]);
index c366c29..85add79 100644 (file)
@@ -36,7 +36,7 @@ InspectorBackend.registerCommand("ApplicationCache.getFramesWithManifests", [],
 InspectorBackend.registerCommand("ApplicationCache.enable", [], []);
 InspectorBackend.registerCommand("ApplicationCache.getManifestForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["manifestURL"]);
 InspectorBackend.registerCommand("ApplicationCache.getApplicationCacheForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["applicationCache"]);
-InspectorBackend.activateDomain("ApplicationCache", "web");
+InspectorBackend.activateDomain("ApplicationCache", ["web"]);
 
 // CSS.
 InspectorBackend.registerCSSDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "CSS");
@@ -70,7 +70,7 @@ InspectorBackend.registerCommand("CSS.getSupportedCSSProperties", [], ["cssPrope
 InspectorBackend.registerCommand("CSS.getSupportedSystemFontFamilyNames", [], ["fontFamilyNames"]);
 InspectorBackend.registerCommand("CSS.forcePseudoState", [{"name": "nodeId", "type": "number", "optional": false}, {"name": "forcedPseudoClasses", "type": "object", "optional": false}], []);
 InspectorBackend.registerCommand("CSS.getNamedFlowCollection", [{"name": "documentNodeId", "type": "number", "optional": false}], ["namedFlows"]);
-InspectorBackend.activateDomain("CSS", "web");
+InspectorBackend.activateDomain("CSS", ["web"]);
 
 // Console.
 InspectorBackend.registerConsoleDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Console");
@@ -142,7 +142,7 @@ InspectorBackend.registerCommand("DOM.undo", [], []);
 InspectorBackend.registerCommand("DOM.redo", [], []);
 InspectorBackend.registerCommand("DOM.markUndoableState", [], []);
 InspectorBackend.registerCommand("DOM.focus", [{"name": "nodeId", "type": "number", "optional": false}], []);
-InspectorBackend.activateDomain("DOM", "web");
+InspectorBackend.activateDomain("DOM", ["web"]);
 
 // DOMStorage.
 InspectorBackend.registerDOMStorageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "DOMStorage");
@@ -155,7 +155,7 @@ InspectorBackend.registerCommand("DOMStorage.disable", [], []);
 InspectorBackend.registerCommand("DOMStorage.getDOMStorageItems", [{"name": "storageId", "type": "object", "optional": false}], ["entries"]);
 InspectorBackend.registerCommand("DOMStorage.setDOMStorageItem", [{"name": "storageId", "type": "object", "optional": false}, {"name": "key", "type": "string", "optional": false}, {"name": "value", "type": "string", "optional": false}], []);
 InspectorBackend.registerCommand("DOMStorage.removeDOMStorageItem", [{"name": "storageId", "type": "object", "optional": false}, {"name": "key", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("DOMStorage", "web");
+InspectorBackend.activateDomain("DOMStorage", ["web"]);
 
 // Database.
 InspectorBackend.registerDatabaseDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Database");
@@ -164,7 +164,7 @@ InspectorBackend.registerCommand("Database.enable", [], []);
 InspectorBackend.registerCommand("Database.disable", [], []);
 InspectorBackend.registerCommand("Database.getDatabaseTableNames", [{"name": "databaseId", "type": "string", "optional": false}], ["tableNames"]);
 InspectorBackend.registerCommand("Database.executeSQL", [{"name": "databaseId", "type": "string", "optional": false}, {"name": "query", "type": "string", "optional": false}], ["columnNames", "values", "sqlError"]);
-InspectorBackend.activateDomain("Database", "web");
+InspectorBackend.activateDomain("Database", ["web"]);
 
 // Debugger.
 InspectorBackend.registerDebuggerDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Debugger");
@@ -209,7 +209,7 @@ InspectorBackend.registerCommand("IndexedDB.requestDatabaseNames", [{"name": "se
 InspectorBackend.registerCommand("IndexedDB.requestDatabase", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}], ["databaseWithObjectStores"]);
 InspectorBackend.registerCommand("IndexedDB.requestData", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}, {"name": "objectStoreName", "type": "string", "optional": false}, {"name": "indexName", "type": "string", "optional": false}, {"name": "skipCount", "type": "number", "optional": false}, {"name": "pageSize", "type": "number", "optional": false}, {"name": "keyRange", "type": "object", "optional": true}], ["objectStoreDataEntries", "hasMore"]);
 InspectorBackend.registerCommand("IndexedDB.clearObjectStore", [{"name": "securityOrigin", "type": "string", "optional": false}, {"name": "databaseName", "type": "string", "optional": false}, {"name": "objectStoreName", "type": "string", "optional": false}], []);
-InspectorBackend.activateDomain("IndexedDB", "web");
+InspectorBackend.activateDomain("IndexedDB", ["web"]);
 
 // Inspector.
 InspectorBackend.registerInspectorDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Inspector");
@@ -228,7 +228,7 @@ InspectorBackend.registerCommand("LayerTree.enable", [], []);
 InspectorBackend.registerCommand("LayerTree.disable", [], []);
 InspectorBackend.registerCommand("LayerTree.layersForNode", [{"name": "nodeId", "type": "number", "optional": false}], ["layers"]);
 InspectorBackend.registerCommand("LayerTree.reasonsForCompositingLayer", [{"name": "layerId", "type": "string", "optional": false}], ["compositingReasons"]);
-InspectorBackend.activateDomain("LayerTree", "web");
+InspectorBackend.activateDomain("LayerTree", ["web"]);
 
 // Network.
 InspectorBackend.registerNetworkDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Network");
@@ -256,7 +256,7 @@ InspectorBackend.registerCommand("Network.clearBrowserCache", [], []);
 InspectorBackend.registerCommand("Network.canClearBrowserCookies", [], ["result"]);
 InspectorBackend.registerCommand("Network.clearBrowserCookies", [], []);
 InspectorBackend.registerCommand("Network.loadResource", [{"name": "frameId", "type": "string", "optional": false}, {"name": "url", "type": "string", "optional": false}], ["content", "mimeType", "status"]);
-InspectorBackend.activateDomain("Network", "web");
+InspectorBackend.activateDomain("Network", ["web"]);
 
 // Page.
 InspectorBackend.registerPageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Page");
@@ -293,7 +293,7 @@ InspectorBackend.registerCommand("Page.setCompositingBordersVisible", [{"name":
 InspectorBackend.registerCommand("Page.snapshotNode", [{"name": "nodeId", "type": "number", "optional": false}], ["dataURL"]);
 InspectorBackend.registerCommand("Page.snapshotRect", [{"name": "x", "type": "number", "optional": false}, {"name": "y", "type": "number", "optional": false}, {"name": "width", "type": "number", "optional": false}, {"name": "height", "type": "number", "optional": false}, {"name": "coordinateSystem", "type": "string", "optional": false}], ["dataURL"]);
 InspectorBackend.registerCommand("Page.archive", [], ["data"]);
-InspectorBackend.activateDomain("Page", "web");
+InspectorBackend.activateDomain("Page", ["web"]);
 
 // Runtime.
 InspectorBackend.registerRuntimeDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Runtime");
@@ -331,7 +331,7 @@ InspectorBackend.registerEvent("Timeline.recordingStarted", ["startTime"]);
 InspectorBackend.registerEvent("Timeline.recordingStopped", ["endTime"]);
 InspectorBackend.registerCommand("Timeline.start", [{"name": "maxCallStackDepth", "type": "number", "optional": true}], []);
 InspectorBackend.registerCommand("Timeline.stop", [], []);
-InspectorBackend.activateDomain("Timeline", "web");
+InspectorBackend.activateDomain("Timeline", ["web"]);
 
 // Worker.
 InspectorBackend.registerWorkerDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Worker");
@@ -346,4 +346,4 @@ InspectorBackend.registerCommand("Worker.canInspectWorkers", [], ["result"]);
 InspectorBackend.registerCommand("Worker.connectToWorker", [{"name": "workerId", "type": "number", "optional": false}], []);
 InspectorBackend.registerCommand("Worker.disconnectFromWorker", [{"name": "workerId", "type": "number", "optional": false}], []);
 InspectorBackend.registerCommand("Worker.setAutoconnectToWorkers", [{"name": "value", "type": "boolean", "optional": false}], []);
-InspectorBackend.activateDomain("Worker", "web");
+InspectorBackend.activateDomain("Worker", ["web"]);
index dada1af..9e0c6cd 100644 (file)
@@ -1,7 +1,7 @@
 {"domains":[
 {
     "domain": "ApplicationCache",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ApplicationCacheResource",
@@ -90,7 +90,7 @@
 {
     "domain": "CSS",
     "description": "This domain exposes CSS read/write operations. All CSS objects, like stylesheets, rules, and styles, have an associated <code>id</code> used in subsequent operations on the related object. Each object type has a specific <code>id</code> structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the <code>get*ForNode()</code> calls (which accept a DOM node id). Alternatively, a client can discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method and subsequently load the required stylesheet contents using the <code>getStyleSheet[Text]()</code> methods.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StyleSheetId",
 {
     "domain": "DOM",
     "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "NodeId",
 {
     "domain": "DOMStorage",
     "description": "Query and modify DOM storage.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StorageId",
 ,
 {
     "domain": "Database",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseId",
 {
     "domain": "IndexedDB",
     "featureGuard": "ENABLE(INDEXED_DATABASE)",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseWithObjectStores",
 ,
 {
     "domain": "LayerTree",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LayerId",
     "domain": "Memory",
     "description": "Memory domain exposes page memory tracking.",
     "featureGuard": "ENABLE(RESOURCE_USAGE)",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "Event",
 {
     "domain": "Network",
     "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LoaderId",
 {
     "domain": "Page",
     "description": "Actions and events related to the inspected page belong to the page domain.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ResourceType",
 {
     "domain": "Timeline",
     "description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "EventType",
index 5c0aaac..c9d87e0 100644 (file)
@@ -1,7 +1,7 @@
 {"domains":[
 {
     "domain": "ApplicationCache",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ApplicationCacheResource",
@@ -90,7 +90,7 @@
 {
     "domain": "CSS",
     "description": "This domain exposes CSS read/write operations. All CSS objects, like stylesheets, rules, and styles, have an associated <code>id</code> used in subsequent operations on the related object. Each object type has a specific <code>id</code> structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the <code>get*ForNode()</code> calls (which accept a DOM node id). Alternatively, a client can discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method and subsequently load the required stylesheet contents using the <code>getStyleSheet[Text]()</code> methods.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StyleSheetId",
 {
     "domain": "DOM",
     "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "NodeId",
 {
     "domain": "DOMStorage",
     "description": "Query and modify DOM storage.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StorageId",
 ,
 {
     "domain": "Database",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseId",
 {
     "domain": "IndexedDB",
     "featureGuard": "ENABLE(INDEXED_DATABASE)",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseWithObjectStores",
 ,
 {
     "domain": "LayerTree",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LayerId",
     "domain": "Memory",
     "description": "Memory domain exposes page memory tracking.",
     "featureGuard": "ENABLE(RESOURCE_USAGE)",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "Event",
 {
     "domain": "Network",
     "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LoaderId",
 {
     "domain": "Page",
     "description": "Actions and events related to the inspected page belong to the page domain.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ResourceType",
 {
     "domain": "Timeline",
     "description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "EventType",
 ,
 {
     "domain": "Worker",
-    "availability": "web",
+    "availability": ["web"],
     "types": [],
     "commands": [
         {
index 3e7aab3..d69673e 100644 (file)
@@ -1,7 +1,7 @@
 {"domains":[
 {
     "domain": "ApplicationCache",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ApplicationCacheResource",
@@ -90,7 +90,7 @@
 {
     "domain": "CSS",
     "description": "This domain exposes CSS read/write operations. All CSS objects, like stylesheets, rules, and styles, have an associated <code>id</code> used in subsequent operations on the related object. Each object type has a specific <code>id</code> structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the <code>get*ForNode()</code> calls (which accept a DOM node id). Alternatively, a client can discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method and subsequently load the required stylesheet contents using the <code>getStyleSheet[Text]()</code> methods.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StyleSheetId",
 {
     "domain": "DOM",
     "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "NodeId",
 {
     "domain": "DOMDebugger",
     "description": "DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DOMBreakpointType",
 {
     "domain": "DOMStorage",
     "description": "Query and modify DOM storage.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StorageId",
 ,
 {
     "domain": "Database",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseId",
 {
     "domain": "IndexedDB",
     "featureGuard": "ENABLE(INDEXED_DATABASE)",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseWithObjectStores",
 ,
 {
     "domain": "LayerTree",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LayerId",
     "domain": "Memory",
     "description": "Memory domain exposes page memory tracking.",
     "featureGuard": "ENABLE(RESOURCE_USAGE)",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "Event",
 {
     "domain": "Network",
     "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LoaderId",
 {
     "domain": "Page",
     "description": "Actions and events related to the inspected page belong to the page domain.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ResourceType",
 {
     "domain": "Timeline",
     "description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "EventType",
 ,
 {
     "domain": "Worker",
-    "availability": "web",
+    "availability": ["web"],
     "types": [],
     "commands": [
         {
index 00b4303..3268b07 100644 (file)
 },
 {
     "domain": "ApplicationCache",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ApplicationCacheResource",
 {
     "domain": "CSS",
     "description": "This domain exposes CSS read/write operations. All CSS objects, like stylesheets, rules, and styles, have an associated <code>id</code> used in subsequent operations on the related object. Each object type has a specific <code>id</code> structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the <code>get*ForNode()</code> calls (which accept a DOM node id). Alternatively, a client can discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method and subsequently load the required stylesheet contents using the <code>getStyleSheet[Text]()</code> methods.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StyleSheetId",
 {
     "domain": "DOM",
     "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "NodeId",
 {
     "domain": "DOMStorage",
     "description": "Query and modify DOM storage.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StorageId",
 ,
 {
     "domain": "Database",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseId",
 ,
 {
     "domain": "IndexedDB",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseWithObjectStores",
 ,
 {
     "domain": "LayerTree",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LayerId",
 {
     "domain": "Network",
     "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LoaderId",
 {
     "domain": "Page",
     "description": "Actions and events related to the inspected page belong to the page domain.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ResourceType",
 {
     "domain": "Timeline",
     "description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "EventType",
index 29e4abe..51f7552 100644 (file)
@@ -1,7 +1,7 @@
 {"domains":[
 {
     "domain": "ApplicationCache",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ApplicationCacheResource",
@@ -90,7 +90,7 @@
 {
     "domain": "CSS",
     "description": "This domain exposes CSS read/write operations. All CSS objects, like stylesheets, rules, and styles, have an associated <code>id</code> used in subsequent operations on the related object. Each object type has a specific <code>id</code> structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the <code>get*ForNode()</code> calls (which accept a DOM node id). Alternatively, a client can discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method and subsequently load the required stylesheet contents using the <code>getStyleSheet[Text]()</code> methods.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StyleSheetId",
 {
     "domain": "DOM",
     "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "NodeId",
 {
     "domain": "DOMStorage",
     "description": "Query and modify DOM storage.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StorageId",
 ,
 {
     "domain": "Database",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseId",
 {
     "domain": "IndexedDB",
     "featureGuard": "ENABLE(INDEXED_DATABASE)",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseWithObjectStores",
 ,
 {
     "domain": "LayerTree",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LayerId",
 {
     "domain": "Network",
     "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LoaderId",
 {
     "domain": "Page",
     "description": "Actions and events related to the inspected page belong to the page domain.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ResourceType",
 {
     "domain": "Timeline",
     "description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "EventType",
index 3cb516b..b57550c 100644 (file)
@@ -1,7 +1,7 @@
 {"domains":[
 {
     "domain": "ApplicationCache",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ApplicationCacheResource",
@@ -90,7 +90,7 @@
 {
     "domain": "CSS",
     "description": "This domain exposes CSS read/write operations. All CSS objects, like stylesheets, rules, and styles, have an associated <code>id</code> used in subsequent operations on the related object. Each object type has a specific <code>id</code> structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the <code>get*ForNode()</code> calls (which accept a DOM node id). Alternatively, a client can discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method and subsequently load the required stylesheet contents using the <code>getStyleSheet[Text]()</code> methods.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StyleSheetId",
 {
     "domain": "DOM",
     "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "NodeId",
 {
     "domain": "DOMStorage",
     "description": "Query and modify DOM storage.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "StorageId",
 ,
 {
     "domain": "Database",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseId",
 {
     "domain": "IndexedDB",
     "featureGuard": "ENABLE(INDEXED_DATABASE)",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "DatabaseWithObjectStores",
 ,
 {
     "domain": "LayerTree",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LayerId",
 {
     "domain": "Network",
     "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "LoaderId",
 {
     "domain": "Page",
     "description": "Actions and events related to the inspected page belong to the page domain.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "ResourceType",
 {
     "domain": "Timeline",
     "description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.",
-    "availability": "web",
+    "availability": ["web"],
     "types": [
         {
             "id": "EventType",
 {
     "domain": "Worker",
     "types": [],
-    "availability": "web",
+    "availability": ["web"],
     "commands": [
         {
             "name": "enable"