869 Commits

Author SHA1 Message Date
Gijs Kruitbosch
1e801cd396 Bug 1881800 - chrome/system-privileged XHR should not use credentials, r=peterv,extension-reviewers,application-update-reviewers,decoder,mossop,robwu,releng-reviewers,bytesized,jcristau
Differential Revision: https://phabricator.services.mozilla.com/D203334
2024-03-26 16:50:45 +00:00
Iulian Moraru
cfcfadac08 Backed out 2 changesets (bug 1881800) for causing non unified build bustages on nsIPrincipal.h. CLOSED TREE
Backed out changeset 1710585070f0 (bug 1881800)
Backed out changeset 9da17ae527f3 (bug 1881800)
2024-03-26 15:46:50 +02:00
Gijs Kruitbosch
3dc935e444 Bug 1881800 - chrome/system-privileged XHR should not use credentials, r=peterv,extension-reviewers,application-update-reviewers,decoder,mossop,robwu,releng-reviewers,bytesized,jcristau
Differential Revision: https://phabricator.services.mozilla.com/D203334
2024-03-26 12:38:54 +00:00
Joshua Marshall
ee03bbaeef Bug 1855699 - Disable WorkerRef instrumentation to cut down on intermittent noise. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D205052
2024-03-26 00:57:56 +00:00
Joshua Marshall
e8185872d8 Bug 1855699 - Add a mutex for the ThreadSafeWorkerRef r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D203911
2024-03-15 15:16:40 +00:00
Thomas Wisniewski
64e64191cb Bug 1847358 part 3: add a fullMimeType attribute to nsIBaseChannel and use it to make our Data URI content-type header parsing standards-compliant for XHR and Fetch; r=dlrobertson,necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D203380
2024-03-04 21:34:27 +00:00
Thomas Wisniewski
7c31f0e0ae Bug 1847358 part 2: create and use nsIBaseChannel to reduce code debt and better-encapsulate logic for range-requests on nsBaseChannel classes; r=dlrobertson,necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D203379
2024-03-04 21:34:27 +00:00
Thomas Wisniewski
820f1c6cb8 Bug 1847358 part 1: move nsBaseChannel::ContentRange content out into its own class as mozilla::net::ContentRange; r=dlrobertson,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D203378
2024-03-04 21:34:27 +00:00
Dave Townsend
6a99b2e0d4 Bug 1864896: Autofix unused function arguments (dom). r=emilio,media-playback-reviewers,dom-storage-reviewers,padenot,janv
Differential Revision: https://phabricator.services.mozilla.com/D202962
2024-03-04 15:44:59 +00:00
Joshua Marshall
5757c0bc75 Bug 1877921 - Own WorkerRef during DebugWorkerRefs r=dom-worker-reviewers,asuth
The Proxy is released on the Worker thread when an iframe with a Worker is destroyed.  This removes the ThreadSafeWorkerRef from the XMLHttpRequestMainThread.  Then the main thread destroys the docshell, calling XMLHttpRequestMainThread::Abort, which relies on the Worker still being alive.

Differential Revision: https://phabricator.services.mozilla.com/D202454
2024-02-27 15:53:15 +00:00
Thomas Wisniewski
4994e7f890 Bug 1880826 - avoid static constructors for XMLHttpRequest::EventType classes with constexpr; r=sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D202177
2024-02-21 21:27:47 +00:00
Thomas Wisniewski
8786e3355f Bug 1880836 - remove the unused LoadStartDetectionRunnable::mEventType; r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D202181
2024-02-21 14:10:57 +00:00
Gregory Pappas
153106ad94 Bug 1881188 - Remove nsLayoutCID.h r=emilio
All of this stuff has been converted to static registration, making this file
unneeded.

Differential Revision: https://phabricator.services.mozilla.com/D202291
2024-02-21 13:04:30 +00:00
Gijs Kruitbosch
ff17e7fc68 Bug 1780071 - Manual fixes/disabling of no-comparison-or-assignment-inside-ok for exceptional cases, r=Standard8,devtools-reviewers,anti-tracking-reviewers,places-reviewers,dom-storage-reviewers,pbz,asuth,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D198979
2024-02-19 23:30:40 +00:00
Jens Stutte
a242ac1c0f Bug 1880235 - Add names to WorkerSyncRunnable derived runnables. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D201813
2024-02-14 16:13:47 +00:00
Thomas Wisniewski
034bb2a89c Bug 1848004 - Refactor event type code in XMLHttpRequest code; r=sunil,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D185919
2024-02-12 23:34:21 +00:00
Kelsey Gilbert
34cdfc4f86 Bug 1874226 - Use unique_ptr not Scoped in xpcom/*. r=xpcom-reviewers,necko-reviewers,valentin,emilio
Differential Revision: https://phabricator.services.mozilla.com/D200250
2024-02-07 18:30:22 +00:00
Cosmin Sabou
66d12d2fff Backed out 2 changesets (bug 1874226) for causing bustages on dom/ContentParent.h. CLOSED TREE
Backed out changeset 3efd59369cd6 (bug 1874226)
Backed out changeset cd7b0bd12dae (bug 1874226)
2024-02-06 03:08:23 +02:00
Kelsey Gilbert
c9e48e76b7 Bug 1874226 - Use unique_ptr not Scoped in xpcom/*. r=xpcom-reviewers,necko-reviewers,valentin,emilio
Differential Revision: https://phabricator.services.mozilla.com/D200250
2024-02-06 00:21:43 +00:00
Joshua Marshall
e756f1ac2f Bug 1805613 - Add a mutable status to WorkerRefs for logging. r=dom-worker-reviewers,asuth
In DEBUG mode, add a settable string to WorkerRefs.  Record what we're doing in
the XHR request worker, and log the status if we seem to be hanging (see
WorkerPrivate::DumpCrashInformation).

Differential Revision: https://phabricator.services.mozilla.com/D190054
2024-01-28 14:28:44 +00:00
sunil mayya
469c6fe9d6 Bug 1826079 - decrease timeout from 3000 to 2500 for test_worker_xhr_timeout.html. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D195676
2023-12-06 18:23:33 +00:00
Jens Stutte
f3e80373c8 Bug 1858033 - Refactor Proxy::mXMLHttpRequestPrivate to become a WeakPtr and simplify Teardown/Unpin. r=dom-worker-reviewers,smaug,asuth
This patch also clarifies that mXMLHttpRequestPrivate is only ever dereferenced on the worker thread
and avoids to copy its raw pointer on the main thread by relying always on Proxy to access it.

Differential Revision: https://phabricator.services.mozilla.com/D194077
2023-12-06 16:17:57 +00:00
Mike Hommey
d02feac002 Bug 1866940 - Remove XMLHttpRequestStringSnapshotReaderHelper. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D194842
2023-11-28 21:36:38 +00:00
Cosmin Sabou
4194f33e15 Backed out changeset 404329b62204 (bug 1858033) for causing XMLHttpRequestWorker related dt failures. CLOSED TREE 2023-11-27 23:12:59 +02:00
Jens Stutte
47e680fe25 Bug 1858033 - Refactor Proxy::mXMLHttpRequestPrivate to become a WeakPtr and use more RefPtr. r=dom-worker-reviewers,smaug,asuth
This patch also clarifies that mXMLHttpRequestPrivate is only ever dereferenced on the worker thread
and avoids to copy its raw pointer on the main thread by relying always on Proxy to access it.

Differential Revision: https://phabricator.services.mozilla.com/D194077
2023-11-27 20:01:09 +00:00
Daisuke Akatsuka
d24e3f0ba6 Bug 1864985: Use nsIURI::hasUserPass instead of checking user pass string r=necko-reviewers,valentin
Depends on D193623

Differential Revision: https://phabricator.services.mozilla.com/D193624
2023-11-17 20:12:11 +00:00
Mike Hommey
ac55867690 Bug 1857687 - Disable thread safety analysis on a few problematic functions. r=nika,necko-reviewers,valentin
The functions return a reference to a value that is normally protected
by a lock in an unlocked manner, but they do so on purpose.

One of them can be annotated with the lock that is being held when it's
called, though, so we do that.

Differential Revision: https://phabricator.services.mozilla.com/D191707
2023-10-26 20:13:22 +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
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
Emilio Cobos Álvarez
25c0d10932 Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu
Sorry this is not a particularly easy patch to review. But it should be
mostly straight-forward.

I kept Document::Dispatch mostly for convenience, but could be
cleaned-up too / changed by SchedulerGroup::Dispatch. Similarly maybe
that can just be NS_DispatchToMainThread if we add an NS_IsMainThread
check there or something (to preserve shutdown semantics).

Differential Revision: https://phabricator.services.mozilla.com/D190450
2023-10-10 08:51:12 +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
edgul
73d2179244 Bug 1838013 - Make XHR URL failure throw syntax error DOMException to pass failure.html WPTs. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D180995
2023-09-15 20:38:48 +00:00
Marco Bonardo
70fdad6676 Bug 1852963 - Rename BrowserTestUtils.loadURIString() to .startLoadingURIString(). r=dao
This should make a bit clearer that it is only starting the load, not waiting
for its completion.

Differential Revision: https://phabricator.services.mozilla.com/D188213
2023-09-15 09:16:34 +00:00
Sandor Molnar
950a3c620d Backed out 3 changesets (bug 1852963) for causing remote failures on remote/shared/messagehandler/test/browser/browser_session_data.js CLOSED TREE
Backed out changeset 98de7bc404c3 (bug 1852963)
Backed out changeset edf1527c9a99 (bug 1852963)
Backed out changeset 34357750f69c (bug 1852963)
2023-09-14 20:29:06 +03:00
Marco Bonardo
61f8ecc425 Bug 1852963 - Rename BrowserTestUtils.loadURIString() to .startLoadingURIString(). r=dao
This should make a bit clearer that it is only starting the load, not waiting
for its completion.

Differential Revision: https://phabricator.services.mozilla.com/D188213
2023-09-14 16:33:13 +00:00
Thomas Wisniewski
15067f0746 Bug 1687903 - Enable stricter HTTP response status line parsing; r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D186229
2023-08-17 20:09:34 +00:00
Narcis Beleuzu
d1f7ba703f Backed out changeset 01ca7125a61d (bug 1687903) for mochitest failure on test_fetch_basic_http.html . CLOSED TREE 2023-08-17 21:38:08 +03:00
Thomas Wisniewski
5c887984a2 Bug 1687903 - Enable stricter HTTP response status line parsing; r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D186229
2023-08-17 14:50:15 +00:00
Natalia Csoregi
f5280e9d84 Backed out changeset ddf986b83075 (bug 697151) for causing assertion failures on XMLHttpRequestMainThread.cpp. CLOSED TREE 2023-08-09 18:25:17 +03:00
Thomas Wisniewski
8c326db1ea Bug 697151 - suspend all other (non-navigation) channels in the docgroup of a sync XHR as its syncloop begins, and resume them after its syncloop completes; r=smaug,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D185161
2023-08-09 14:42:32 +00:00
Thomas Wisniewski
c2ef40afe0 Bug 1397646 - return empty statusText for HTTP2 fetches and XMLHttpRequests; r=kershaw,necko-reviewers,sunil
Differential Revision: https://phabricator.services.mozilla.com/D184527
2023-08-08 19:47:39 +00:00
Dan Robertson
2e71051f28 Bug 1846780: responseXML is populated for a blob with an empty type. r=twisniewski
A blob with an empty content type or any other invalid content type should
return a value for responseXML.

Differential Revision: https://phabricator.services.mozilla.com/D185185
2023-08-08 00:34:03 +00:00
Iulian Moraru
3b2efb9273 Backed out changeset 675cf3cb3d33 (bug 1397646) for causing mochitest failures on test_fetch_basic_http.html. CLOSED TREE 2023-08-07 07:46:50 +03:00
Thomas Wisniewski
ae64997bee Bug 1397646 - return empty statusText for HTTP2 fetches and XMLHttpRequests; r=kershaw,necko-reviewers,sunil
Differential Revision: https://phabricator.services.mozilla.com/D184527
2023-08-07 04:00:31 +00:00
Thomas Wisniewski
0816653c3a Bug 1846699 - fix a logic error in bug 1784880 which causes Raptor and streaming videos to break; r=dlrobertson
Differential Revision: https://phabricator.services.mozilla.com/D185243
2023-08-03 05:05:09 +00:00
Stanca Serban
1798236094 Backed out changeset ae54734e8b25 (bug 1846699) for causing mochitests failures in test_bug945152.html. CLOSED TREE 2023-08-03 07:36:22 +03:00
Thomas Wisniewski
45604097dc Bug 1846699 - fix a logic error in bug 1784880 which causes Raptor and streaming videos to break; r=dlrobertson
Differential Revision: https://phabricator.services.mozilla.com/D185243
2023-08-03 03:57:55 +00:00
Thomas Wisniewski
ef25919692 Bug 1845006 - store the fully-serialized MimeType on data url channels so XHR and fetch may use it for content-type response headers, and clean up the data url parsing code to better match the spec. r=kershaw,sunil,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184713
2023-08-02 23:41:24 +00:00
Peter Van der Beken
3f4ffadbe1 Bug 1846277 - Untangle nsGlobalWindow*.h includes. r=dom-core,media-playback-reviewers,sessionstore-reviewers,padenot,farre
Differential Revision: https://phabricator.services.mozilla.com/D184978
2023-08-02 20:41:49 +00:00