gecko-dev/dom/url/tests
Valentin Gosu 7d213246fb Bug 1555302 - Ensure that nsStandardURL::Resolve() doesn't parse URLs with a different scheme as relative r=mayhemer
Normally, this method will return the entire in string if it has a scheme.
However, mParser->ParseURL may fail, leading to the scheme to be cleared,
and the result will be the same HTTP URL with the input appended to the
path. This triggers the assertion in NS_NewURI that the scheme should not
change.

As a fix, we bail out of nsStandardURL::Resolve() if the parsed scheme of
the input is different than the base URIs current scheme. This condition
is necessary, because we still need to support a deprecated form of relative
URLs like http:file or http:/path/file

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

--HG--
extra : moz-landing-system : lando
2019-06-04 13:42:37 +00:00
..
.eslintrc.js
browser_download_after_revoke.js Bug 1532934 - Enable ESLint for dom/url (manual changes). r=Standard8,baku 2019-03-12 22:00:01 +00:00
browser.ini
chrome.ini
empty.html
file_url.jsm Bug 1532934 - Enable ESLint for dom/url (manual changes). r=Standard8,baku 2019-03-12 22:00:01 +00:00
file_worker_url.jsm Bug 1532934 - Enable ESLint for dom/url (automatic changes). r=Standard8,baku 2019-03-12 17:38:47 +00:00
jsm_url_worker.js Bug 1532934 - Enable ESLint for dom/url (manual changes). r=Standard8,baku 2019-03-12 22:00:01 +00:00
mochitest.ini
protocol_worker.js
test_bloburl_location.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_bug883784.jsm Bug 1532934 - Enable ESLint for dom/url (automatic changes). r=Standard8,baku 2019-03-12 17:38:47 +00:00
test_bug883784.xul Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-16 03:59:25 +00:00
test_unknown_url_origin.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_url_data.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_url_empty_port.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_url_malformedHost.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_url.html Bug 1555302 - Ensure that nsStandardURL::Resolve() doesn't parse URLs with a different scheme as relative r=mayhemer 2019-06-04 13:42:37 +00:00
test_url.xul Bug 1544322 - Part 1 - Remove the [type] attribute for one-liner <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-15 20:56:58 +00:00
test_urlExceptions.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_urlSearchParams_sorting.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_urlSearchParams_utf8.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_urlSearchParams.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_urlutils_stringify.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_worker_protocol.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_worker_url_exceptions.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_worker_url.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_worker_url.xul Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-16 03:59:25 +00:00
test_worker_urlApi.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
test_worker_urlSearchParams.html Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
url_exceptions_worker.js Bug 1532934 - Enable ESLint for dom/url (automatic changes). r=Standard8,baku 2019-03-12 17:38:47 +00:00
url_worker.js Bug 1532934 - Enable ESLint for dom/url (manual changes). r=Standard8,baku 2019-03-12 22:00:01 +00:00
urlApi_worker.js Bug 1532934 - Enable ESLint for dom/url (manual changes). r=Standard8,baku 2019-03-12 22:00:01 +00:00
urlSearchParams_commons.js Bug 1532934 - Enable ESLint for dom/url (manual changes). r=Standard8,baku 2019-03-12 22:00:01 +00:00
urlSearchParams_worker.js Bug 1532934 - Enable ESLint for dom/url (manual changes). r=Standard8,baku 2019-03-12 22:00:01 +00:00