Backed out changeset c47cd2b5f4a6 (bug 1266256) for various devtools failures 'A promise chain failed to handle a rejection: - [object Object]'. r=backout on a CLOSED TREE
authorSebastian Hengst <archaeopteryx@coole-files.de>
Thu, 21 Apr 2016 21:26:45 +0200
changeset 332245 a603640aa82d54b224b2325d8a445fd14dd00bc6
parent 332244 a86e8abdc7db1bb3446855e1d8ceada375e461ba
child 332246 b3b5be1d2027f915c3c54b966fb41de8444923ee
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1266256
milestone48.0a1
backs outc47cd2b5f4a6ecfeb4ca629eb335696b5883090b
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
Backed out changeset c47cd2b5f4a6 (bug 1266256) for various devtools failures 'A promise chain failed to handle a rejection: - [object Object]'. r=backout on a CLOSED TREE
devtools/server/actors/utils/TabSources.js
--- a/devtools/server/actors/utils/TabSources.js
+++ b/devtools/server/actors/utils/TabSources.js
@@ -254,21 +254,16 @@ TabSources.prototype = {
    * Returns true if the URL likely points to a minified resource, false
    * otherwise.
    *
    * @param String aURL
    *        The URL to test.
    * @returns Boolean
    */
   _isMinifiedURL: function (aURL) {
-    // Filter out null URLs to avoid debug warnings.
-    if (!aUrl) {
-      return false;
-    }
-
     try {
       let url = new URL(aURL);
       let pathname = url.pathname;
       return MINIFIED_SOURCE_REGEXP.test(pathname.slice(pathname.lastIndexOf("/") + 1));
     } catch (e) {
       // Not a valid URL so don't try to parse out the filename, just test the
       // whole thing with the minified source regexp.
       return MINIFIED_SOURCE_REGEXP.test(aURL);