summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/vendor/source-map/lib/url.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/shared/vendor/source-map/lib/url.js')
-rw-r--r--devtools/client/shared/vendor/source-map/lib/url.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/devtools/client/shared/vendor/source-map/lib/url.js b/devtools/client/shared/vendor/source-map/lib/url.js
new file mode 100644
index 0000000000..b0f4434fe5
--- /dev/null
+++ b/devtools/client/shared/vendor/source-map/lib/url.js
@@ -0,0 +1,21 @@
+/* -*- Mode: js; js-indent-level: 2; -*- */
+/*
+ * Copyright 2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE or:
+ * http://opensource.org/licenses/BSD-3-Clause
+ */
+"use strict";
+
+/**
+ * Browser 'URL' implementations have been found to handle non-standard URL
+ * schemes poorly, and schemes like
+ *
+ * webpack:///src/folder/file.js
+ *
+ * are very common in source maps. For the time being we use a JS
+ * implementation in these contexts instead. See
+ *
+ * * https://bugzilla.mozilla.org/show_bug.cgi?id=1374505
+ * * https://bugs.chromium.org/p/chromium/issues/detail?id=734880
+ */
+module.exports = require("../../whatwg-url.js").URL;