From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- devtools/client/shared/vendor/source-map/lib/url.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 devtools/client/shared/vendor/source-map/lib/url.js (limited to 'devtools/client/shared/vendor/source-map/lib/url.js') 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; -- cgit v1.2.3