Граф коммитов

298 Коммитов

Автор SHA1 Сообщение Дата
edgul 56971a7842 Bug 1603699 - Enable default URI pref. r=valentin,necko-reviewers,extension-reviewers,robwu
Depends on D195672

Differential Revision: https://phabricator.services.mozilla.com/D191240
2023-12-06 19:33:56 +00:00
Tom Marble 9a53e8dcde Bug 1855298 - convert .ini manifests to .toml: batch 10 dom/[t-z]**/mochitest.ini r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D190089
2023-10-25 15:54:48 +00:00
edgul 4e5d1773a6 Bug 1851426 - Relanding URL: protocol setter needs to be more restrictive around file (bug 1347459). r=kershaw,twisniewski,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D188518
2023-10-12 14:33:41 +00:00
Narcis Beleuzu 346566085d Backed out changeset eac298199d7b (bug 1855298) for Linting failure. CLOSED TREE 2023-10-12 01:44:24 +03:00
Tom Marble 8518f990ca Bug 1855298 - convert .ini manifests to .toml: batch 10 dom/[t-z]**/mochitest.ini r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D190089
2023-10-11 20:51:09 +00:00
Narcis Beleuzu 06df5eb7f4 Backed out 2 changesets (bug 1851426) for bc failure on browser_misused_characters_in_strings.js . CLOSED TREE
Backed out changeset 0f0a9e88f81a (bug 1851426)
Backed out changeset da824de73805 (bug 1851426)
2023-10-07 02:50:09 +03:00
edgul ca97748eb9 Bug 1851426 - Relanding URL: protocol setter needs to be more restrictive around file (bug 1347459). r=kershaw,twisniewski,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D188518
2023-10-06 16:04:31 +00:00
Gregory Pappas 62a62f0934 Bug 1851211 - Remove privacy.partition.bloburl_per_agent_cluster pref r=amadan,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D187291
2023-09-26 20:59:01 +00:00
Tom Marble a99a113414 Bug 1853244 - convert .ini manifests to .toml: batch 6 {caps,devtools,dom}/**/browser.ini r=jmaher,media-playback-reviewers,devtools-reviewers,profiler-reviewers,alwu,nchevobbe,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D188856
2023-09-22 20:42:14 +00:00
Tom Marble 9e40a719f2 Bug 1850545 - convert .ini manifests to .toml: batch 3 chrome.ini (bis) r=jmaher,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,places-reviewers,profiler-reviewers,m_kato,mak,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D187597
2023-09-13 18:28:32 +00:00
Thomas Wisniewski 3ee54e1c07 Bug 1850954 - Back out URL protocol spec-compliant restrictions added in bug 1347459 for causing webcompat issues; r=valentin,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D187221
2023-09-01 12:20:46 +00:00
Abhishek Madan 4eb05bf7b0 Bug 1843155 - Added secondary partition key to blob urls. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D184158
2023-08-24 18:45:26 +00:00
Cristian Tuns 07548591c7 Backed out 3 changesets (bug 1843155, bug 1843152, bug 1843154) for causing bc failures in browser_blobURLIsolation.js CLOSED TREE
Backed out changeset 346583cca204 (bug 1843154)
Backed out changeset acbab8770373 (bug 1843155)
Backed out changeset 12098afb766c (bug 1843152)
2023-08-23 19:53:47 -04:00
Abhishek Madan e8da9c3d62 Bug 1843155 - Added secondary partition key to blob urls. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D184158
2023-08-23 21:45:17 +00:00
Norisz Fay bb6bb95d7b Backed out 3 changesets (bug 1843154, bug 1843152, bug 1843155) for causing multiple failures CLOSED TREE
Backed out changeset f80c8cf72c6d (bug 1843154)
Backed out changeset 7632f7c7a5d4 (bug 1843155)
Backed out changeset 5451d5695bae (bug 1843152)
2023-08-18 18:30:43 +03:00
Jonathan Kew de44919c2b Bug 1849332 - Ensure URL::SetPort rejects values with leading non-numeric junk. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D186536
2023-08-18 14:30:44 +00:00
Abhishek Madan c225898ad2 Bug 1843155 - Added secondary partition key to blob urls. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D184158
2023-08-18 14:11:59 +00:00
dylan 3720e4efca Bug 1818374 - strip whitespaces for URL property setters. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D182502
2023-08-17 18:46:14 +00:00
Thomas Wisniewski aa8ab4ddf6 Bug 1347459 - make the link and URL protocol setters adhere to the URL spec text validating changes of protocol between file and/or special schemes; r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D182850
2023-07-06 15:40:31 +00:00
Nika Layzell 1fdee2314c Bug 1839920 - Rename Get{ASCII,UTF}Origin to GetWebExposedOriginSerialization, r=smaug,necko-reviewers,anti-tracking-reviewers,bvandersloot,jesup
This should make uses of the type more clearly indicating where the
origin came from, and should help avoid potential confusion between this
origin and nsIPrincipal::origin in new code.

This new name is long, but explicit. The string returned from this
function corresponds to the "serialization of an origin" from the WHATWG
html spec:
https://html.spec.whatwg.org/multipage/browsers.html#ascii-serialisation-of-an-origin

Differential Revision: https://phabricator.services.mozilla.com/D181794
2023-06-27 19:59:15 +00:00
Narcis Beleuzu 493c4014cd Backed out changeset 2d7083c6241d (bug 1834703) for bc failure on browser_wpi_isolate_high_value.js 2023-06-21 14:11:57 +03:00
CanadaHonk a9076e06d0 Bug 1834703 - Return null origin of "blob:" URL containing disallowed inner schemes r=smaug,valentin
Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: https://github.com/whatwg/url/pull/771
WPT tests: https://github.com/web-platform-tests/wpt/pull/40133

16 WPT subtests newly pass 🎉

Differential Revision: https://phabricator.services.mozilla.com/D179400
2023-06-21 07:01:49 +00:00
Butkovits Atila b91e9bef5a Backed out changeset af0665af9541 (bug 1834703) for causing failures at test_unknown_url_origin.html. CLOSED TREE 2023-06-11 22:46:55 +03:00
CanadaHonk 469df91f40 Bug 1834703 - Return null origin of "blob:" URL containing disallowed inner schemes r=smaug,valentin
Return null origin of a blob URL containing an inner URL which is not of
some schemes (https, http, file per spec) to comply with new spec changes.
Allowed schemes also include moz-extension for our own purposes.

Examples:
- "blob:blob:https://example.org/" - inner blob URL
- "blob:ws://example.org/" - inner non-http(s) URL

Spec PR: https://github.com/whatwg/url/pull/771
WPT tests: https://github.com/web-platform-tests/wpt/pull/40133

New WPT tests are not merged into central yet, so tested manually
instead and results are as expected with WPTs.

Differential Revision: https://phabricator.services.mozilla.com/D179400
2023-06-11 19:04:31 +00:00
CanadaHonk cfda91bc2b Bug 1836170 - Rename ChromeOnly URL.isValidURL r=geckoview-reviewers,emilio,m_kato
Renamed chrome only URL.isValidURL to URL.isValidObjectURL for the name
to better match existing object/blob URL functions and to be less
confusing with new URL.canParse.

No tests for this function exist since it's chrome only (todo?) :'(

Differential Revision: https://phabricator.services.mozilla.com/D179641
2023-06-02 18:27:12 +00:00
CanadaHonk bcfa3780f4 Bug 1823354 - Implement URL.canParse() r=emilio
Implemented URL.canParse() static function for checking if a URL can be
parsed (instead of having to try wrap the constructor).

Avoids using an ErrorResult/Throws as it is not specified, and for
performance (see spec issue from linked PR).

All WPT tests for it now pass.

Spec PR: https://github.com/whatwg/url/pull/763
WPT tests: https://wpt.fyi/results/url/url-statics-canparse.any.html

Differential Revision: https://phabricator.services.mozilla.com/D179617
2023-06-01 06:30:22 +00:00
Sandor Molnar cb123ecfdf Backed out changeset 69cd9d943489 (bug 1823354) for causing wpt failures in /url/idlharness.any.worker.html CLOSED TREE 2023-06-01 03:23:32 +03:00
CanadaHonk b4bb5c7b5a Bug 1823354 - Implement URL.canParse() r=emilio
Implemented URL.canParse() static function for checking if a URL can be
parsed (instead of having to try wrap the constructor).

Avoids using an ErrorResult/Throws as it is not specified, and for
performance (see spec issue from linked PR).

All WPT tests for it now pass.

Spec PR: https://github.com/whatwg/url/pull/763
WPT tests: https://wpt.fyi/results/url/url-statics-canparse.any.html

Differential Revision: https://phabricator.services.mozilla.com/D179617
2023-05-31 23:32:59 +00:00
sankalp1999 92e6376b0e Bug 1831587 - add value arg to delete and has, working wpt, delete ini r=valentin,necko-reviewers,webidl,smaug,emilio
Differential Revision: https://phabricator.services.mozilla.com/D177957
2023-05-29 13:32:06 +00:00
Mark Banner 130a655906 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner 8219a5c503 Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Kagami Sascha Rosylight 4612d82e3a Bug 1831044 - Remove redundant *Throws attributes in URL r=webidl,smaug
D34766 removed the usages by not using URLWorker on those methods.

Differential Revision: https://phabricator.services.mozilla.com/D176989
2023-05-03 10:01:52 +00:00
CanadaHonk 78f2bff811 Bug 1818269 - Implement URLSearchParams size getter r=emilio
Implemented size getter for URLSearchParams.

Spec: https://url.spec.whatwg.org/#dom-urlsearchparams-size

WPT tests (4/4 now pass):
https://github.com/web-platform-tests/wpt/blob/master/url/urlsearchparams-size.any.js
(test not synced into mozilla-central currently)

Differential Revision: https://phabricator.services.mozilla.com/D170768
2023-02-24 17:47:51 +00:00
Marian-Vasile Laza e97cf6b88d Backed out changeset 11f3189abaf5 (bug 1818269) for devtools failures on browser_webconsole_object_inspector_entries.js. CLOSED TREE 2023-02-23 23:58:26 +02:00
CanadaHonk 315c1a3e5b Bug 1818269 - Implement URLSearchParams size getter r=emilio
Implemented size getter for URLSearchParams.

Spec: https://url.spec.whatwg.org/#dom-urlsearchparams-size

WPT tests (4/4 now pass):
https://github.com/web-platform-tests/wpt/blob/master/url/urlsearchparams-size.any.js
(test not synced into mozilla-central currently)

Differential Revision: https://phabricator.services.mozilla.com/D170768
2023-02-23 20:12:10 +00:00
Emilio Cobos Álvarez e447ba61f0 Bug 1812496 - Add some trivial nsIURI <-> URL conversions for chrome code. r=webidl,peterv
Differential Revision: https://phabricator.services.mozilla.com/D167891
2023-01-27 10:42:58 +00:00
Sean Feng f13eed6c1f Bug 1783497 - Update test_url_data.html r=smaug
Due to the changes to chrome url canonicalization, this
test doesn't make sense anymore.

Differential Revision: https://phabricator.services.mozilla.com/D159864
2022-10-24 15:21:30 +00:00
Olli Pettay 93acdfad59 Bug 1777574, automate CC zone handling, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D155084
2022-09-07 11:22:51 +00:00
Mark Banner 7428be4a86 Bug 1782008 - Remove now unnecessary .eslintrc.js files. r=webcompat-reviewers,extension-reviewers,media-playback-reviewers,pip-reviewers,denschub,rpl,alwu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D152736
2022-08-03 11:16:20 +00:00
Kagami Sascha Rosylight ee93b0b6b6 Bug 1768189 - Part 38: Apply modernize-concat-nested-namespaces to dom/url/URLSearchParams.cpp ... r=andi
Depends on D145773

Differential Revision: https://phabricator.services.mozilla.com/D145774
2022-05-09 20:41:18 +00:00
Kagami Sascha Rosylight 831f5ab3a0 Bug 1768189 - Part 37: Apply modernize-concat-nested-namespaces to dom/svg/SVGTSpanElement.cpp ... r=andi
Depends on D145772

Differential Revision: https://phabricator.services.mozilla.com/D145773
2022-05-09 20:41:17 +00:00
Shane Hughes 7573e8e7ba Bug 1764978 - Refactor browser_download_after_revoke.js. r=kershaw
Trying to fix failures of browser_download_after_revoke.js ostensibly
provoked by patch for Bug 1747343.

Differential Revision: https://phabricator.services.mozilla.com/D144057
2022-04-28 11:57:13 +00:00
Shane Hughes 7810a6da05 Bug 1747343 - Add pref to set default action for new mimetypes. r=Gijs,fluent-reviewers,preferences-reviewers
When downloading a file, we check for existing mime types and construct
a new one if it's unrecognized. Mime types have a flag,
alwaysAskBeforeHandling, that determines whether the unknown content
type dialog should be opened before handling the file. Before bug
1733492, the default value for that flag was simply true. Since the new
downloads flow is intended to avoid unnecessary steps, the default value
was changed to the inverted value of the new downloads panel
improvements pref. This patch adds a new pref that the mime info
constructor will read in configuring the flag's value. If the
improvements pref is not enabled, then the flag will be true, so the UCT
dialog will open. If the improvements pref is enabled, then it'll use
the value of the new pref. Also add a an interface for the pref to the
about:preferences UI, and automatically migrate a false value for
browser.download.improvements_to_download_panel to a true value for this
pref. I'm updating some tangentially related test files since they
happen to be touched slightly by this change. Strictly speaking they
would still work, but if the pref value was somehow changed from the
default they would fail.

Differential Revision: https://phabricator.services.mozilla.com/D143002
2022-04-15 18:13:11 +00:00
Eden Chuang 2266b31d41 Bug 1744025 - Replace include "mozilla/dom/WorkerPrivate.h" with include "mozilla/dom/WorkerScope.h" where WorkerPrivate->GlobalScope() is called. r=dom-worker-reviewers,smaug,jstutte
#include "mozilla/dom/WorkerScope.h" is removed from WorkerPrivate.h, where calling WorkerPrivate::GlobalScope() without include "WorkerScope.h" makes WorkerScope as an incomplete type.


Depends on 132800

Depends on D132800

Differential Revision: https://phabricator.services.mozilla.com/D133483
2022-01-25 08:53:03 +00:00
Norisz Fay 5edb88e27a Backed out 9 changesets (bug 1744025) for causing wpt failures on CheckedUnsafePtr.h CLOSED TREE
Backed out changeset 89dca4fc5940 (bug 1744025)
Backed out changeset 7aa395dcdbe4 (bug 1744025)
Backed out changeset 1580a4ea1a85 (bug 1744025)
Backed out changeset af171636a87f (bug 1744025)
Backed out changeset a5edfa1c9cd6 (bug 1744025)
Backed out changeset 8abd6ba69815 (bug 1744025)
Backed out changeset cfb822df5b3f (bug 1744025)
Backed out changeset 5598943a94fd (bug 1744025)
Backed out changeset 43186fbbf8b4 (bug 1744025)
2021-12-15 18:46:01 +02:00
Eden Chuang 4146950108 Bug 1744025 - Replace include "mozilla/dom/WorkerPrivate.h" with include "mozilla/dom/WorkerScope.h" where WorkerPrivate->GlobalScope() is called. r=dom-worker-reviewers,smaug,jstutte
#include "mozilla/dom/WorkerScope.h" is removed from WorkerPrivate.h, where calling WorkerPrivate::GlobalScope() without include "WorkerScope.h" makes WorkerScope as an incomplete type.


Depends on 132800

Depends on D132800

Differential Revision: https://phabricator.services.mozilla.com/D133483
2021-12-15 13:48:19 +00:00
Christian Holler 3782331a06 Bug 1590068 - Add fuzzing target for StructuredCloneData. r=baku,sfink
Differential Revision: https://phabricator.services.mozilla.com/D128513
2021-12-08 18:59:02 +00:00
Tim Huang db88fe8435 Bug 1742598 - Part 1: Add an parameter to URLParams::Serialize() to indicate if the encoding is needed for the serialization result. r=smaug,necko-reviewers,dragana
The URL query stripping doesn't want the URLParams::Serialize() to
encode the result because it will encode the unstripped parameters. This
will change the unstripped parameters once stripping was happened.

Therefore, we introduce an parameter to URLParams::Serialize() to
disable encoding.

Differential Revision: https://phabricator.services.mozilla.com/D131964
2021-11-25 12:13:48 +00:00
Mark Banner dfb34709b9 Bug 1656282 - Enable ESLint no-unused-vars and no-undef rules where they are disabled on dom/**/*.xhtml files. r=smaug
Depends on D131911

Differential Revision: https://phabricator.services.mozilla.com/D131980
2021-11-24 11:26:37 +00:00
Molly Howell 7d084ec40a Bug 1724319 - Stop this test from depending on the download modal for starting a download. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D127173
2021-10-04 19:28:49 +00:00