Bug 1362036 - Generate stubs; r=nchevobbe
☠☠ backed out by d2c77bb9a4ce ☠ ☠
authorJan Odvarko <odvarko@gmail.com>
Wed, 30 Aug 2017 15:16:40 +0200
changeset 377796 d00a28769dbe0bcb2b0f9e1948ebe97cdd7a973f
parent 377795 efab54a746d2f498aace3557869f566bef806806
child 377797 ce0752c07ff698c8dd7c94928e5160812318edfd
push id94338
push userkwierso@gmail.com
push dateThu, 31 Aug 2017 02:58:58 +0000
treeherdermozilla-inbound@9ca18987dabb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnchevobbe
bugs1362036
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1362036 - Generate stubs; r=nchevobbe MozReview-Commit-ID: ILcUaOuO3IG
devtools/client/webconsole/new-console-output/test/fixtures/stubs/networkEvent.js
--- a/devtools/client/webconsole/new-console-output/test/fixtures/stubs/networkEvent.js
+++ b/devtools/client/webconsole/new-console-output/test/fixtures/stubs/networkEvent.js
@@ -22,17 +22,58 @@ stubPreparedMessages.set("GET request", 
     "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
     "method": "GET"
   },
   "response": {},
   "source": "network",
   "type": "log",
   "groupId": null,
   "timeStamp": 1487022056850,
-  "indent": 0
+  "indent": 0,
+  "updates": [],
+  "openedOnce": false,
+  "securityState": null,
+  "securityInfo": null,
+  "requestHeadersFromUploadStream": null,
+  "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
+  "urlDetails": {
+    "baseNameWithQuery": "inexistent.html",
+    "host": "example.com",
+    "scheme": "http",
+    "unicodeUrl": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
+    "isLocal": null
+  },
+  "method": "GET",
+  "cause": {
+    "type": "img",
+    "loadingDocumentUri": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
+    "stacktrace": [
+      {
+        "filename": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
+        "lineNumber": 3,
+        "columnNumber": 1,
+        "functionName": "triggerPacket",
+        "asyncCause": null
+      },
+      {
+        "filename": "resource://testing-common/content-task.js line 52 > eval",
+        "lineNumber": 8,
+        "columnNumber": 9,
+        "functionName": null,
+        "asyncCause": null
+      },
+      {
+        "filename": "resource://testing-common/content-task.js",
+        "lineNumber": 53,
+        "columnNumber": 20,
+        "functionName": null,
+        "asyncCause": null
+      }
+    ]
+  }
 }));
 
 stubPreparedMessages.set("GET request update", new NetworkEventMessage({
   "id": "1",
   "actor": "server1.conn0.child1/netEvent30",
   "level": "log",
   "request": {
     "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
@@ -51,34 +92,88 @@ stubPreparedMessages.set("GET request up
     },
     "bodySize": 904,
     "transferredSize": 904
   },
   "source": "network",
   "type": "log",
   "groupId": null,
   "totalTime": 16,
-  "indent": 0
+  "indent": 0,
+  "openedOnce": false,
+  "securityState": null,
+  "securityInfo": null,
+  "requestHeadersFromUploadStream": null,
+  "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
+  "urlDetails": {
+    "baseNameWithQuery": "inexistent.html",
+    "host": "example.com",
+    "scheme": "http",
+    "unicodeUrl": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
+    "isLocal": null
+  },
+  "method": "GET"
 }));
 
 stubPreparedMessages.set("XHR GET request", new NetworkEventMessage({
   "id": "1",
   "actor": "server1.conn1.child1/netEvent30",
   "level": "log",
   "isXHR": true,
   "request": {
     "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
     "method": "GET"
   },
   "response": {},
   "source": "network",
   "type": "log",
   "groupId": null,
   "timeStamp": 1487022057746,
-  "indent": 0
+  "indent": 0,
+  "updates": [],
+  "openedOnce": false,
+  "securityState": null,
+  "securityInfo": null,
+  "requestHeadersFromUploadStream": null,
+  "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
+  "urlDetails": {
+    "baseNameWithQuery": "inexistent.html",
+    "host": "example.com",
+    "scheme": "http",
+    "unicodeUrl": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
+    "isLocal": null
+  },
+  "method": "GET",
+  "cause": {
+    "type": "xhr",
+    "loadingDocumentUri": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
+    "stacktrace": [
+      {
+        "filename": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
+        "lineNumber": 4,
+        "columnNumber": 1,
+        "functionName": "triggerPacket",
+        "asyncCause": null
+      },
+      {
+        "filename": "resource://testing-common/content-task.js line 52 > eval",
+        "lineNumber": 8,
+        "columnNumber": 9,
+        "functionName": null,
+        "asyncCause": null
+      },
+      {
+        "filename": "resource://testing-common/content-task.js",
+        "lineNumber": 53,
+        "columnNumber": 20,
+        "functionName": null,
+        "asyncCause": null
+      }
+    ]
+  }
 }));
 
 stubPreparedMessages.set("XHR GET request update", new NetworkEventMessage({
   "id": "1",
   "actor": "server1.conn0.child1/netEvent31",
   "level": "log",
   "request": {
     "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
@@ -97,34 +192,88 @@ stubPreparedMessages.set("XHR GET reques
     },
     "bodySize": 904,
     "transferredSize": 904
   },
   "source": "network",
   "type": "log",
   "groupId": null,
   "totalTime": 16,
-  "indent": 0
+  "indent": 0,
+  "openedOnce": false,
+  "securityState": null,
+  "securityInfo": null,
+  "requestHeadersFromUploadStream": null,
+  "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
+  "urlDetails": {
+    "baseNameWithQuery": "inexistent.html",
+    "host": "example.com",
+    "scheme": "http",
+    "unicodeUrl": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
+    "isLocal": null
+  },
+  "method": "GET"
 }));
 
 stubPreparedMessages.set("XHR POST request", new NetworkEventMessage({
   "id": "1",
   "actor": "server1.conn2.child1/netEvent30",
   "level": "log",
   "isXHR": true,
   "request": {
     "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
     "method": "POST"
   },
   "response": {},
   "source": "network",
   "type": "log",
   "groupId": null,
   "timeStamp": 1487022058414,
-  "indent": 0
+  "indent": 0,
+  "updates": [],
+  "openedOnce": false,
+  "securityState": null,
+  "securityInfo": null,
+  "requestHeadersFromUploadStream": null,
+  "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
+  "urlDetails": {
+    "baseNameWithQuery": "inexistent.html",
+    "host": "example.com",
+    "scheme": "http",
+    "unicodeUrl": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
+    "isLocal": null
+  },
+  "method": "POST",
+  "cause": {
+    "type": "xhr",
+    "loadingDocumentUri": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
+    "stacktrace": [
+      {
+        "filename": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
+        "lineNumber": 4,
+        "columnNumber": 1,
+        "functionName": "triggerPacket",
+        "asyncCause": null
+      },
+      {
+        "filename": "resource://testing-common/content-task.js line 52 > eval",
+        "lineNumber": 8,
+        "columnNumber": 9,
+        "functionName": null,
+        "asyncCause": null
+      },
+      {
+        "filename": "resource://testing-common/content-task.js",
+        "lineNumber": 53,
+        "columnNumber": 20,
+        "functionName": null,
+        "asyncCause": null
+      }
+    ]
+  }
 }));
 
 stubPreparedMessages.set("XHR POST request update", new NetworkEventMessage({
   "id": "1",
   "actor": "server1.conn0.child1/netEvent32",
   "level": "log",
   "request": {
     "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
@@ -143,17 +292,30 @@ stubPreparedMessages.set("XHR POST reque
     },
     "bodySize": 904,
     "transferredSize": 904
   },
   "source": "network",
   "type": "log",
   "groupId": null,
   "totalTime": 10,
-  "indent": 0
+  "indent": 0,
+  "openedOnce": false,
+  "securityState": null,
+  "securityInfo": null,
+  "requestHeadersFromUploadStream": null,
+  "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
+  "urlDetails": {
+    "baseNameWithQuery": "inexistent.html",
+    "host": "example.com",
+    "scheme": "http",
+    "unicodeUrl": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
+    "isLocal": null
+  },
+  "method": "POST"
 }));
 
 stubPackets.set("GET request", {
   "_type": "NetworkEvent",
   "timeStamp": 1487022056850,
   "node": null,
   "actor": "server1.conn0.child1/netEvent30",
   "discardRequestBody": true,