Bug 1527350 - Fix the path of files used by chrome browser-element tests; r=qdot
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 12 Feb 2019 19:51:50 +0000
changeset 458792 5006d54251f7
parent 458791 1b9f4cb229fa
child 458793 be5bd597747a
push id35548
push useropoprus@mozilla.com
push dateWed, 13 Feb 2019 09:48:26 +0000
treeherdermozilla-central@93e37c529818 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersqdot
bugs1527350
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 1527350 - Fix the path of files used by chrome browser-element tests; r=qdot Differential Revision: https://phabricator.services.mozilla.com/D19520
dom/browser-element/mochitest/browserElementTestHelpers.js
--- a/dom/browser-element/mochitest/browserElementTestHelpers.js
+++ b/dom/browser-element/mochitest/browserElementTestHelpers.js
@@ -1,15 +1,18 @@
 /* Any copyright is dedicated to the public domain.
    http://creativecommons.org/publicdomain/zero/1.0/ */
 
 // Helpers for managing the browser frame preferences.
 "use strict";
 
 function _getPath() {
+  if (window.location.protocol == "chrome:") {
+    return "/chrome/dom/browser-element/mochitest";
+  }
   return window.location.pathname
                .substring(0, window.location.pathname.lastIndexOf('/'))
                .replace("/priority", "");
 }
 
 const browserElementTestHelpers = {
   _getBoolPref: function(pref) {
     try {