Boris Zbarsky
fcb04b87e4
Bug 1602090 part 2. Create separate CheckMayLoad and CheckMayLoadWithReporting APIs. r=ckerschb
...
CheckMayLoadAndReport takes a window ID. This allows us to report
errors from it to the web console as needed. Most consumers know statically
whether they want reporting or not, so there's no reason to force the ones that
don't to provide window ids.
Differential Revision: https://phabricator.services.mozilla.com/D56388
2019-12-13 06:24:12 +00:00
Ciure Andrei
2e0157c747
Backed out 4 changesets (bug 1602483, bug 1602090) for causing perma leackchecks CLOSED TREE
...
Backed out changeset 6b057ba06b4a (bug 1602483)
Backed out changeset 9be3269d781d (bug 1602483)
Backed out changeset e3e2c1d7478e (bug 1602090)
Backed out changeset fdc4a588912e (bug 1602090)
2019-12-12 18:37:01 +02:00
Boris Zbarsky
d9b66ffabd
Bug 1602090 part 2. Create separate CheckMayLoad and CheckMayLoadWithReporting APIs. r=ckerschb
...
CheckMayLoadAndReport takes a window ID. This allows us to report
errors from it to the web console as needed. Most consumers know statically
whether they want reporting or not, so there's no reason to force the ones that
don't to provide window ids.
Differential Revision: https://phabricator.services.mozilla.com/D56388
2019-12-12 13:03:42 +00:00
Ehsan Akhgari
cd078cd555
Bug 1593162 - Remove the expired telemetry probes added in bug 1127552; r=edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D51335
2019-11-01 13:43:15 +00:00
Kagami Sascha Rosylight
a4eca894f1
Bug 824857: Support IDL stringifier attributes r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D48355
2019-10-23 04:55:54 +00:00
Boris Zbarsky
c7e93db348
Bug 1589285 part 3. Use the new GetString methods for Web IDL enums in various places. r=edgar
...
The idea is to stop directly accessing EnumTypeValues::strings in type-unsafe
ways from consumer code.
Differential Revision: https://phabricator.services.mozilla.com/D49533
2019-10-17 23:40:57 +00:00
Boris Zbarsky
ebaf6de379
Bug 1581173 part 1. Add a way to more easily throw TypeErrors and RangeErrors with custom message strings via ErrorResult. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D45932
2019-09-20 02:19:18 +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
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
Boris Zbarsky
942187fe9e
Bug 1565688. Remove unused IOService arg from NS_NewURI. r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D37968
2019-07-15 13:39:51 +00:00
Andrea Marchesini
229026c8bf
Bug 1557781 - Better life-time management for BodyStream/FetchStream - part 2 - BodyStream, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D35529
2019-07-01 20:01:17 +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
Andrea Marchesini
2af1292e26
Bug 1558923 - Simplify URL API, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D34766
2019-06-13 19:45:19 +00:00
Narcis Beleuzu
bb2bbcdb7f
Backed out 2 changesets (bug 1558923) for mochitest crashes on AssertIsOnMainThread(). CLOSED TREE
...
Backed out changeset 643de99320a8 (bug 1558923)
Backed out changeset f758b5ccd0c0 (bug 1558923)
2019-06-13 20:59:33 +03:00
Andrea Marchesini
2aad997309
Bug 1558923 - Simplify URL API, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D34766
2019-06-13 16:23:11 +00:00
Noemi Erli
b49d0ece9d
Backed out 2 changesets (bug 1558923) for failures in nsContentUtils.cpp
...
Backed out changeset 12c977801cb2 (bug 1558923)
Backed out changeset d8a688f1b7ce (bug 1558923)
2019-06-13 19:19:05 +03:00
Andrea Marchesini
3bc8390567
Bug 1558923 - Simplify URL API, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D34766
2019-06-13 15:10:24 +00:00
Cosmin Sabou
34370ad98a
Backed out 2 changesets (bug 1558923) for build bustages on dom/URL.h. CLOSED TREE
...
Backed out changeset 0bb5857422f2 (bug 1558923)
Backed out changeset d0411a373ace (bug 1558923)
2019-06-13 13:35:54 +03:00
Andrea Marchesini
d95a1c2ff8
Bug 1558923 - Simplify URL API, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D34766
2019-06-13 10:19:03 +00:00
Kershaw Chang
16eb1bf50f
Bug 1546041 - Throw TypeError if mode is Navigate r=baku
...
According to spec, we should throw TypeError if the mode is Navigate.
Differential Revision: https://phabricator.services.mozilla.com/D31245
2019-05-27 13:51:16 +00:00
Brindusan Cristian
58996e290c
Backed out changeset 3b6338393cc7 (bug 1546041) for mochitest failures at test_request.html. CLOSED TREE
2019-05-27 12:56:32 +03:00
Kershaw Chang
eceb4aa61b
Bug 1546041 - Throw TypeError if mode is Navigate r=baku
...
According to spec, we should throw TypeError if the mode is Navigate.
Differential Revision: https://phabricator.services.mozilla.com/D31245
2019-05-15 20:36:09 +00:00
Ryan Hunt
ad7b7dbb30
Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D21106
2019-02-25 16:05:29 -06:00
Andrea Marchesini
8048821cbc
Bug 1517448 - Set PrincipalInfo for Request and Response objects, r=smaug
2019-01-03 19:24:30 +01:00
Emilio Cobos Álvarez
dc336a73ba
Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
...
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.
Overall it's not a very interesting patch I think.
nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.
I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.
While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Till Schneidereit
c08d9f23d7
Bug 1385890 - Fix Streams implementation in multiple-global uses. r=baku,tcampbell,jorendorff
...
Streams have multiple parts that can be JS objects from different compartments.
For example, the [[reader]] internal slot of a stream can point to a reader
object in another compartment.
This patch makes the ReadableStream implementation robust against mixing and
matching stream-related objects and methods from different globals.
This also removes ReadableStreamBYOBReader and ReadableStreamBYOBRequest for
now, with a view toward enabling basic ReadableStream features by default in
bug 1389628.
Differential Revision: https://phabricator.services.mozilla.com/D8450
2018-10-11 14:18:43 -05:00
Andrea Marchesini
51946984e4
Bug 1488427 - AbortSignal::Unfollow() must be called when unlinked, r=smaug
2018-09-07 11:05:47 +02:00
Andrea Marchesini
d5c928bb18
Bug 1480366 - Traverse/Unlink mAbortFollowing in any object exposed to content, r=smaug
2018-08-28 17:27:58 +02:00
Andrea Marchesini
b7196cdaf0
Bug 1478101 - Split AbortSignal in 2 classes: AbortSignal and AbortSignalImpl, r=bz
2018-08-26 14:16:21 +02:00
Valentin Gosu
7621447682
Bug 1476928 - Remove nsIURI.CloneIgnoringRef and nsIURI.CloneWithNewRef r=JuniorHsu
...
The patch introduces NS_GetURIWithNewRef and NS_GetURIWithNewRef which perform the same function.
Differential Revision: https://phabricator.services.mozilla.com/D2239
2018-07-23 11:28:47 +00:00
Andrea Marchesini
656b292d56
Bug 1471189 - Removing 'Terminating' state in workers, r=mrbkap
2018-07-12 19:33:41 +02:00
Ben Kelly
4bf6b30e0f
Bug 1394399 P1 Default Request.credentials to "same-origin" instead of "omit". r=baku
2018-04-20 08:45:13 -07:00
Andrea Marchesini
da9f889c16
Bug 1448328 - Use thread-safe nsIURI in the URI API - part 1 - No getter/setter runnables, r=valentin
2018-04-14 01:06:35 +02:00
Eric Rahm
cf723ae9c9
Bug 1437188 - Part 1: Remove verbose fetch related warnings. r=bkelly
...
This removes the most verbose fetch related warnings. Cumulatively these
account for about 11,000 warnings during testing.
2018-02-09 14:04:03 -08:00
Andrea Marchesini
3e08265e73
Bug 1432963 - Fixing workers headers - part 17 - no LIBS=[workers] in moz.build files, r=smaug
2018-01-31 08:25:30 +01:00
Andrea Marchesini
5e357eed9f
Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug
2018-01-31 08:24:08 +01:00
Andrea Marchesini
fac6814ce2
Bug 1432963 - Fixing workers headers - part 12 - WorkerRunnable without workers namespace, r=smaug
2018-01-31 08:22:56 +01:00
Ben Kelly
79d50a760d
Bug 1432272 Make Fetch API use the global's base URL instead of the entry document's base URL. r=bz
...
The fetch spec used to use the entry settings as the base for parsing relative
Request/Response URL's, but this is no longer the case. This was changed in:
https://github.com/whatwg/fetch/issues/367
Update our code to match this behavior. We basically convert GetEntryDocument()
to QI the global to nsGlobalWindowInner and use its ExtantDoc instead.
No changes are needed for workers since its not possible to perform cross-global
javascript access in worker threads.
2018-01-23 09:38:21 -05:00
Andrea Marchesini
66b30c7fc9
Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 14 - Request Context enabled, r=asuth
2018-01-08 14:05:05 +01:00
Edouard Oger
af970be704
Bug 1419146 - Respect mozErrors in Request. r=bkelly
...
MozReview-Commit-ID: Lbx395q7BYF
2017-11-20 17:07:26 -05:00
Andrea Marchesini
26b14d70a4
Bug 1397627 - Fetch API and other components should pass the length of the stream to necko when known, r=smaug
2017-09-08 16:06:26 +02:00
Tom Tung
437bf42c3c
Bug 1393439 - P1: Don't return TypeError for no-cors mode and don't check SRI for the hidden opaque body. r=bkelly
...
MozReview-Commit-ID: 1IspF2IlqqP
2017-08-25 16:36:59 +08:00
Andrea Marchesini
10b0d94bc9
Bug 1395141 - RequestInit dictionary must have AbortSignal as optional, r=bkelly
2017-08-30 18:47:23 +02:00
Andrea Marchesini
f7eb755da0
Bug 1378342 - AbortSignal/AbortController - part 9 - Request.signal should not be a reference of RequestInit.signal, r=bkelly
2017-08-29 11:31:07 +02:00
Andrea Marchesini
2a9df1a0b5
Bug 1378342 - AbortSignal/AbortController - part 6 - Implement Request.signal, r=bkelly
2017-08-29 11:31:06 +02:00
Sebastian Hengst
2489acb202
Backed out changeset 2c6f49d73935 (bug 1378342)
2017-08-29 09:16:59 +02:00
Sebastian Hengst
efd6a4702c
Backed out changeset 4c41e61d6763 (bug 1378342)
2017-08-29 09:16:43 +02:00
Andrea Marchesini
967d5dee18
Bug 1378342 - AbortSignal/AbortController - part 9 - Request.signal should not be a reference of RequestInit.signal, r=bkelly
2017-08-29 07:30:21 +02:00
Andrea Marchesini
e2680ff9c6
Bug 1378342 - AbortSignal/AbortController - part 6 - Implement Request.signal, r=bkelly
2017-08-29 07:30:21 +02:00