Commit 9e1daa29 authored by Alexandre Poirot's avatar Alexandre Poirot
Browse files

Bug 1585256 - Enable browser_styleeditor_fetch-from-netmonitor.js on fission. r=Honza

Differential Revision: https://phabricator.services.mozilla.com/D63185

--HG--
extra : moz-landing-system : lando
parent 1c8e2951
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ support-files =
  sourcemaps-watching.html
  test_private.css
  test_private.html
  doc_empty.html
  doc_fetch_from_netmonitor.html
  doc_long_string.css
  doc_long.css
@@ -88,7 +89,6 @@ fail-if = fission # Got the expected number of style sheets. - Got 6, expected 1
[browser_styleeditor_copyurl.js]
[browser_styleeditor_enabled.js]
[browser_styleeditor_fetch-from-netmonitor.js]
fail-if = fission
[browser_styleeditor_filesave.js]
[browser_styleeditor_fission_switch_target.js]
[browser_styleeditor_highlight-selector.js]
+8 −1
Original line number Diff line number Diff line
@@ -6,11 +6,18 @@
// A test to ensure Style Editor only issues 1 request for each stylesheet (instead of 2)
// by using the network monitor's request history (bug 1306892).

const EMPTY_TEST_URL = TEST_BASE_HTTP + "doc_empty.html";
const TEST_URL = TEST_BASE_HTTP + "doc_fetch_from_netmonitor.html";

add_task(async function() {
  info("Opening netmonitor");
  const tab = await addTab("about:blank");
  // Navigate first to an empty document in order to:
  // * avoid introducing a cross process navigation when calling navigateTo()
  // * properly wait for request updates when calling navigateTo, while showToolbox
  //   won't necessarily wait for all pending requests. (If we were loading TEST_URL
  //   in the tab, we might have pending updates in the netmonitor which won't be
  //   awaited for by showToolbox)
  const tab = await addTab(EMPTY_TEST_URL);
  const target = await TargetFactory.forTab(tab);
  const toolbox = await gDevTools.showToolbox(target, "netmonitor");
  const monitor = toolbox.getPanel("netmonitor");
+3 −0
Original line number Diff line number Diff line
<!doctype html>
<html>
</html>