Commit Graph

464 Commits

Author SHA1 Message Date
Olli Pettay
1870f57250 Bug 1598775 - Ensure postMessage related optimizations during page load work also in Fission, r=farre
Bug 1534012 added a test for postMessage during load and that revealed that mLoading flag isn't always updated
soon enough, so add BrowsingContext::IsLoading which checks also possible local loading status.

Depends on D54754

Differential Revision: https://phabricator.services.mozilla.com/D54836
2019-11-30 21:13:54 +00:00
Olli Pettay
c26c2348f4 Bug 1599467 - Make XHR and Fetch to use deprioritized loading while the top level page is loading in Fission, r=farre
The patch moves DeprioritizedLoadRunner handling from top level inner window to top level browsing context.

Differential Revision: https://phabricator.services.mozilla.com/D54754
2019-11-30 21:13:24 +00:00
Dana Keeler
4a8a5fb4fa bug 1550686 - remove nsIBadCertListener2 r=dragana,smaug
Differential Revision: https://phabricator.services.mozilla.com/D51001
2019-11-06 00:19:14 +00:00
Andrea Marchesini
5d9289d065 Bug 1591579 - Retrieve the XHR response values only when needed, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D51412
2019-11-04 17:46:23 +00:00
Andrea Marchesini
e858585987 Bug 1591579 - XHR ArrayBufferBuilder needs to have a refcounted buffer handling, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D51088
2019-11-04 15:38:04 +00:00
Andrea Marchesini
9883986e8b Bug 1591579 - XMLWorker takes data from XMLMainThread without calling GetResponse(), r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50921
2019-11-04 15:38:08 +00:00
Andrea Marchesini
a2c06573fd Bug 1591579 - XHR-MainThread exposes a set of methods to retrieve response values for workers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50920
2019-11-04 15:38:10 +00:00
Andrea Marchesini
480ab92597 Bug 1591579 - XHR uses a ref-counted ArrayBufferBuilder, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50919
2019-11-04 15:38:12 +00:00
Andrea Marchesini
23e7de35ce Bug 1591579 - XHR creates the Blob response only at the first GetResponse() call, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50918
2019-11-04 15:38:14 +00:00
Dorel Luca
4d33a0c3ce Backed out 7 changesets (bug 1591579) for Hazzard failure on dom/xhr/XMLHttpRequestWorker.cpp. CLOSED TREE
Backed out changeset 9a1cf12c3de1 (bug 1591579)
Backed out changeset 4a228aa6e526 (bug 1591579)
Backed out changeset b19e6eba3b12 (bug 1591579)
Backed out changeset d7c095dce497 (bug 1591579)
Backed out changeset dfb0fcebe51e (bug 1591579)
Backed out changeset 9d525c1c558d (bug 1591579)
Backed out changeset f4bcdcefe2d1 (bug 1591579)
2019-11-04 17:33:15 +02:00
Andrea Marchesini
a21db591b2 Bug 1591579 - Retrieve the XHR response values only when needed, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D51412
2019-11-04 13:31:14 +00:00
Andrea Marchesini
8402109f2a Bug 1591579 - XHR ArrayBufferBuilder needs to have a refcounted buffer handling, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D51088
2019-11-04 13:31:14 +00:00
Andrea Marchesini
98a651a79e Bug 1591579 - XMLWorker takes data from XMLMainThread without calling GetResponse(), r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50921
2019-11-04 13:23:29 +00:00
Andrea Marchesini
8e0a01909d Bug 1591579 - XHR-MainThread exposes a set of methods to retrieve response values for workers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50920
2019-11-04 13:23:11 +00:00
Andrea Marchesini
fe5b2d0f1c Bug 1591579 - XHR uses a ref-counted ArrayBufferBuilder, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50919
2019-11-04 13:22:54 +00:00
Andrea Marchesini
81249bc12b Bug 1591579 - XHR creates the Blob response only at the first GetResponse() call, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50918
2019-11-04 13:22:39 +00:00
Cosmin Sabou
4fee979a5f Backed out 6 changesets (bug 1591579) for causing crashes @mozilla::dom::ArrayBufferBuilder::GetArrayBuffer. CLOSED TREE
Backed out changeset 188e5fcabf09 (bug 1591579)
Backed out changeset 0b036738dcc8 (bug 1591579)
Backed out changeset f887657889ad (bug 1591579)
Backed out changeset 1f0a3434af2b (bug 1591579)
Backed out changeset 150606f7639b (bug 1591579)
Backed out changeset ca31ccb7a42a (bug 1591579)
2019-10-31 13:45:21 +02:00
Andrea Marchesini
2f3da51738 Bug 1591579 - XHR ArrayBufferBuilder needs to have a refcounted buffer handling, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D51088
2019-10-31 10:28:10 +00:00
Andrea Marchesini
8fd1a0748c Bug 1591579 - XMLWorker takes data from XMLMainThread without calling GetResponse(), r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50921
2019-10-31 10:27:33 +00:00
Andrea Marchesini
1bce839176 Bug 1591579 - XHR-MainThread exposes a set of methods to retrieve response values for workers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50920
2019-10-31 10:27:11 +00:00
Andrea Marchesini
560d3b1eb7 Bug 1591579 - XHR uses a ref-counted ArrayBufferBuilder, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50919
2019-10-31 10:26:54 +00:00
Andrea Marchesini
782d5d56d4 Bug 1591579 - XHR creates the Blob response only at the first GetResponse() call, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50918
2019-10-31 10:26:41 +00:00
Dorel Luca
3c025159dd Backed out 6 changesets (bug 1591579) for Mochitest failures in dom/html/test/test_formData.html. CLOSED TREE
Backed out changeset a6a3816ce90a (bug 1591579)
Backed out changeset e5dff8a0b369 (bug 1591579)
Backed out changeset 891a7037f2ac (bug 1591579)
Backed out changeset 1b33ca1c22a7 (bug 1591579)
Backed out changeset 97732c922fb5 (bug 1591579)
Backed out changeset 299bd59f790d (bug 1591579)
2019-10-30 19:45:49 +02:00
Andrea Marchesini
a793fa7948 Bug 1591579 - XHR ArrayBufferBuilder needs to have a refcounted buffer handling, r=smaug
Depends on D50951

Differential Revision: https://phabricator.services.mozilla.com/D51088
2019-10-30 13:14:06 +00:00
Andrea Marchesini
ba80c62c0d Bug 1591579 - XMLWorker takes data from XMLMainThread without calling GetResponse(), r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50921
2019-10-30 16:52:54 +00:00
Andrea Marchesini
b2907b623e Bug 1591579 - XHR-MainThread exposes a set of methods to retrieve response values for workers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50920
2019-10-30 12:28:02 +00:00
Andrea Marchesini
1d7d50761f Bug 1591579 - XHR uses a ref-counted ArrayBufferBuilder, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50919
2019-10-30 12:28:00 +00:00
Andrea Marchesini
cb9ae6dbd6 Bug 1591579 - XHR creates the Blob response only at the first GetResponse() call, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50918
2019-10-30 12:27:58 +00:00
Andrea Marchesini
de63797ea7 Bug 1585284 - Use BlobImpl in MutableBlobStorage instead of Blob, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49436
2019-10-21 05:33:33 +00:00
Andrea Marchesini
e5c5bd4530 Bug 1585284 - Use nsIGlobalObject in any Blob/File CTOR, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49392
2019-10-21 05:33:33 +00:00
Kershaw Chang
a09cc710df Bug 1546185 - Also check mEventDispatchingSuspended to see if we are in sync event loop r=baku
Only useing `mFlagSyncLooping` to check if the current code is in sync event loop is not enough. The crashtest in this patch shows that `mFlagSyncLooping` is set to false in OnStopReequets while we are still in sync event loop.
`mEventDispatchingSuspended` is set to true right before calling `SpinEventLoopUntil` and set to false after, so we should also use it to check if `SpinEventLoopUntil` is finished.

Differential Revision: https://phabricator.services.mozilla.com/D47240
2019-10-01 11:31:43 +00:00
Edgar Chen
9ce65d9730 Bug 1578355 - Part 1: Move user-activation code from EventStateManager to UserActivation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45168
2019-09-20 20:51:25 +00:00
Daniel Varga
0c8477fc87 Backed out 3 changesets (bug 1578355) for build bustage at build/src/dom/base/nsSyncLoadService.h:48:21. On a CLOSED TREE
Backed out changeset d50ad759f129 (bug 1578355)
Backed out changeset 339ab54ca471 (bug 1578355)
Backed out changeset 284299dac42c (bug 1578355)
2019-09-20 14:05:12 +03:00
Edgar Chen
91a465e33d Bug 1578355 - Part 1: Move user-activation code from EventStateManager to UserActivation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45168
2019-09-20 10:31:55 +00:00
Bas Schouten
caad66fdd9 Bug 1548373: Report Open stacks for XHR responses. r=mayhemer,julienw
Differential Revision: https://phabricator.services.mozilla.com/D42831
2019-09-11 15:33:00 +00:00
Thomas Nguyen
a688b675a4 Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug
ReferrerPolicy gets tossed back and forth as a uint32_t and
ReferrerPolicy enum in header file. Expose ReferrerPolicyValues from
webidl file and use consistently in native code.

Differential Revision: https://phabricator.services.mozilla.com/D41954
2019-08-21 13:24:45 +00:00
Ehsan Akhgari
72bfb10c8a Bug 1575335 - Avoid creating an extra copy of the file name URI when checking whether the currently running script is from a tracker; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D42706
2019-08-20 20:58:57 +00:00
Nicholas Nethercote
0d12f68593 Bug 1573720 - Convert dom.mapped_arraybuffer.enabled to a static pref. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D41918
2019-08-15 05:31:10 +00:00
Tom Schuster
19210b5259 Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D40108
2019-08-02 08:54:18 +00:00
Mihai Alexandru Michis
5a74ddfbef Backed out 2 changesets (bug 1558915) for causing bustages. CLOSED TREE
Backed out changeset e44c9fd81e5b (bug 1558915)
Backed out changeset 3da6e9e86be4 (bug 1558915)
2019-08-02 12:17:42 +03:00
Tom Schuster
1079fb412e Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D40108
2019-08-02 08:54:18 +00:00
Thomas Wisniewski
7647fe6458 Bug 1504344 - Remove the pref dom.xhr.lowercase_header.enabled; r=baku
Remove the pref dom.xhr.lowercase_header.enabled, as we are unaware of any actionable compat concerns now that bug 1540688 landed, and an ESR had been spun off.

Differential Revision: https://phabricator.services.mozilla.com/D39636
2019-07-31 11:16:25 +00:00
Kannan Vijayan
c690c1925f Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D39378
2019-07-26 16:48:31 +00:00
Nicholas Nethercote
c4aacd8403 Bug 1563139 - Remove StaticPrefs.h. r=glandium
This requires replacing inclusions of it with inclusions of more specific prefs
files.

The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
and is used in `Codegen.py` because doing something smarter is tricky and
suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
still trigger recompilation of all the generated DOM bindings files, but that's
still a big improvement over trigger recompilation of every file that uses
static prefs.

Most of the changes in this commit are very boring. The only changes that are
not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.

Differential Revision: https://phabricator.services.mozilla.com/D39138
2019-07-26 01:10:23 +00:00
Kershaw Chang
e370b0c73a Bug 1309358 - P1: Add wildcard to Access-Control-Expose-Headers r=baku
For requests without credentials, add wildcard to Access-Control-Expose-Headers.

Differential Revision: https://phabricator.services.mozilla.com/D36624
2019-07-16 08:50:14 +00:00
Sylvestre Ledru
3bf4f867df Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D38057
2019-07-16 07:33:44 +00:00
Boris Zbarsky
011222050d Bug 1565767 part 4. Remove some unnecesary refcounting at Document::GetBaseURI callsites. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D37972
2019-07-15 18:28:43 +00:00
Niklas Hambüchen
ce9b21868d Bug 1564930 - Improve "XHR must not be LOADING or DONE" error messages. r=baku
The previous error message suggested that this is an internal error message
pointing out a bad state in the XHR state machine, when in fact this is
a user error (calling `overrideMimeType()` or setting `responseType()` after
`send()`).

This commit improves and disambiguates the error messages, pointing out to
the user what they did wrong, like other browsers do.

Differential Revision: https://phabricator.services.mozilla.com/D37659
2019-07-12 22:51:10 +00:00
Thomas Nguyen
e12491abb6 Bug 1557636 Use Referrer info in worker and fix sharedworker's wrong referrer r=baku
SharedWorker should use worker's referrer info instead of default value

Differential Revision: https://phabricator.services.mozilla.com/D34861
2019-06-13 20:37:34 +00:00
Olli Pettay
0a1005b5fb Bug 1558215 - Refactor nsPIDOMWindowInner::AddAfterLoadRunner to be easier to use, r=baku
Differential Revision: https://phabricator.services.mozilla.com/D34366
2019-06-12 18:36:41 +00:00