bug 1523104: remote: remove reference to Network domain in the test; r=ato
authorAlexandre Poirot <poirot.alex@gmail.com>
Fri, 22 Feb 2019 04:11:14 -0800
changeset 521103 cce704488a62b3b64b00c1500da76b4db4e08a6f
parent 521102 b35c2a9a00d24231098fa38de9d4178eee7c659f
child 521104 e3b2b601748cc5263650927d6de6b485975fd6c4
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1523104
milestone67.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 1523104: remote: remove reference to Network domain in the test; r=ato
remote/test/browser/browser_cdp.js
--- a/remote/test/browser/browser_cdp.js
+++ b/remote/test/browser/browser_cdp.js
@@ -27,36 +27,30 @@ add_task(async function() {
       // Ensure debugging the right target, i.e. the one for our test tab.
       return list.find(target => {
         return target.url == TEST_URI;
       });
     },
   });
   ok(true, "CDP client has been instantiated");
 
-  const {Log, Network, Page} = client;
+  const {Log, Page} = client;
   ok("Log" in client, "Log domain is available");
-  ok("Network" in client, "Network domain is available");
   ok("Page" in client, "Page domain is available");
 
   // receive console.log messages and print them
   Log.enable();
   ok(true, "Log domain has been enabled");
 
   Log.entryAdded(({entry}) => {
     const {timestamp, level, text, args} = entry;
     const msg = text || args.join(" ");
     console.log(`${new Date(timestamp)}\t${level.toUpperCase()}\t${msg}`);
   });
 
-  // turn on network stack logging
-  Network.requestWillBeSent((params) => {
-    console.log(params.request.url);
-  });
-
   // turn on navigation related events, such as DOMContentLoaded et al.
   await Page.enable();
   ok(true, "Page domain has been enabled");
 
   await Page.navigate({url: "data:text/html;charset=utf-8,test-page<script>console.log('foo');</script><script>'</script>"});
   ok(true, "A new page has been loaded");
 
   await Page.loadEventFired();