Kagami Sascha Rosylight
5b4aa1d7b6
Bug 1768189 - Part 44: Apply modernize-concat-nested-namespaces to dom/workers/WorkerStatus.h ... r=andi
...
Depends on D145779
Differential Revision: https://phabricator.services.mozilla.com/D145780
2022-05-09 20:41:20 +00:00
Sylvestre Ledru
35a175aa33
Bug 1754767 - Remove duplicate includes r=media-playback-reviewers,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D138441
2022-02-11 10:01:15 +00:00
Matthew Gaudet
108063d593
Bug 1748888 - Add ErrorResult parameter to PromiseNativeHandler callbacks r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D136423
2022-01-20 19:11:39 +00:00
Steve Fink
9838fc1b01
Bug 1727374 - Root Init dictionaries to fix rooting hazards. r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D123633
2021-09-02 19:06:58 +00:00
Paul Adenot
6859038872
Bug 1724997 - Add callbacks for the start and end of addModule on a Worklet. r=karlt
...
Differential Revision: https://phabricator.services.mozilla.com/D122734
2021-08-26 09:15:38 +00:00
Yulia Startsev
11030852f5
Bug 1681046: fixup worklet error messages for async modules; r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D110561
2021-04-08 08:21:56 +00:00
smolnar
735995919c
Backed out 3 changesets (bug 1681046) for causing jsreftest failures in ScriptLoader. CLOSED TREE
...
Backed out changeset 6704600819ed (bug 1681046)
Backed out changeset 37f56518116b (bug 1681046)
Backed out changeset f61cb7496a35 (bug 1681046)
2021-04-07 12:50:28 +03:00
Yulia Startsev
5b53c060b7
Bug 1681046: fixup worklet error messages for async modules; r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D110561
2021-04-07 08:45:38 +00:00
Brindusan Cristian
337abd9f72
Backed out 2 changesets (bug 1681046) for causing wpt failures in bare-specifiers.sub.html. CLOSED TREE
...
Backed out changeset a26ecd8063ea (bug 1681046)
Backed out changeset e161663a5a7c (bug 1681046)
2021-04-06 18:02:15 +03:00
Yulia Startsev
367d9b7f12
Bug 1681046: fixup worklet error messages for async modules; r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D110561
2021-04-06 12:10:13 +00:00
Simon Giesecke
2969e54562
Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D97742
2021-03-05 15:29:49 +00:00
Alexandru Michis
80cf7cc919
Backed out changeset c6b72f3c76ba (bug 1676361) for causing bustages in nsSocketTransportService2.cpp
...
CLOSED TREE
2021-03-04 23:26:04 +02:00
Simon Giesecke
b68ba311a2
Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D97742
2021-03-04 17:30:48 +00:00
Noemi Erli
c351c837d1
Backed out changeset 06452c4c828c (bug 1676361) for causing bustages CLOSED TREE
2021-03-04 19:13:56 +02:00
Simon Giesecke
e46fd72f6f
Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D97742
2021-03-04 16:14:44 +00:00
smolnar
4a344e2a83
Backed out changeset 9062e17fe15c (bug 1676361) on devs request. CLOSED TREE
2021-03-04 16:51:21 +02:00
Simon Giesecke
fa4029ad0a
Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D97742
2021-03-04 14:32:15 +00:00
Simon Giesecke
95c38cc6b8
Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
...
This makes the naming more consistent with other functions called
Insert and/or Update. Also, it removes the ambiguity whether
Put expects that an entry already exists or not, in particular because
it differed from nsTHashtable::PutEntry in that regard.
Differential Revision: https://phabricator.services.mozilla.com/D105473
2021-02-26 09:11:46 +00:00
yulia
c599eff23e
Bug 1519100 - Use pref to completely pref-off top-level await in the browser; r=emilio,jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D97184
2020-12-04 08:54:10 +00:00
yulia
555605baa8
Bug 1519100 - Implement module promises in html r=emilio,jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D95885
2020-12-04 08:54:03 +00:00
Razvan Maries
eca81a73f1
Backed out 15 changesets (bug 1519100) as per Yulia's request. CLOSED TREE
...
Backed out changeset 16dc37dadf05 (bug 1519100)
Backed out changeset 019b00c63941 (bug 1519100)
Backed out changeset 1155eecec034 (bug 1519100)
Backed out changeset 53a792431e11 (bug 1519100)
Backed out changeset 55918f941155 (bug 1519100)
Backed out changeset 683743bd0395 (bug 1519100)
Backed out changeset 63d506024693 (bug 1519100)
Backed out changeset 8b5244786634 (bug 1519100)
Backed out changeset 3a0a021acc08 (bug 1519100)
Backed out changeset d5bff6c95feb (bug 1519100)
Backed out changeset bab7e81a6c2c (bug 1519100)
Backed out changeset b521ccd694f8 (bug 1519100)
Backed out changeset 9f559a616909 (bug 1519100)
Backed out changeset 98146209da6f (bug 1519100)
Backed out changeset a3ea6c49dbf7 (bug 1519100)
2020-12-03 20:37:45 +02:00
yulia
d0fd5c4500
Bug 1519100 - Use pref to completely pref-off top-level await in the browser; r=emilio,jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D97184
2020-12-03 15:26:04 +00:00
yulia
f037d41c41
Bug 1519100 - Implement module promises in html r=emilio,jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D95885
2020-12-03 15:25:54 +00:00
Bogdan Tara
6a555cd304
Backed out 15 changesets (bug 1519100) for wpt leaks CLOSED TREE
...
Backed out changeset 7302ebdbaa35 (bug 1519100)
Backed out changeset 5b89081f0f08 (bug 1519100)
Backed out changeset ee02050e3c97 (bug 1519100)
Backed out changeset 47cf4bde107e (bug 1519100)
Backed out changeset bfd96f55a3bd (bug 1519100)
Backed out changeset c9afefd66eb7 (bug 1519100)
Backed out changeset 90b61247d071 (bug 1519100)
Backed out changeset e0250e4cba61 (bug 1519100)
Backed out changeset 5f90543431cb (bug 1519100)
Backed out changeset d7f3440addc7 (bug 1519100)
Backed out changeset 10194540aff0 (bug 1519100)
Backed out changeset 880873b815a4 (bug 1519100)
Backed out changeset d99f0109da7a (bug 1519100)
Backed out changeset c723f6b16b67 (bug 1519100)
Backed out changeset da24af409d92 (bug 1519100)
2020-12-02 21:14:35 +02:00
yulia
0568fb2dd6
Bug 1519100 - Use pref to completely pref-off top-level await in the browser; r=emilio,jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D97184
2020-12-02 12:40:21 +00:00
yulia
723bbec8f5
Bug 1519100 - Implement module promises in html r=emilio,jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D95885
2020-12-02 12:40:08 +00:00
Simon Giesecke
46908cfb51
Bug 1660470 - Add missing include directives/forward declarations. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Sonia Singla
031ef8acbe
Bug 1528649 - Remove the context parameter from nsInputStreamPump::AsyncRead. r=valentin,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D85154
2020-08-05 11:21:51 +00:00
Simon Giesecke
a69d79b6db
Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Simon Giesecke
b728921956
Bug 1627892 - Use SafeRefPtr for Request. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D70390
2020-05-11 12:13:48 +00:00
Karl Tomlinson
9ebeffd6e8
Bug 1628842 reject Worklet#addModule() promise with DOM UnknownError on failure to create global r=baku
...
The UnknownError is chosen based on
https://heycam.github.io/webidl/#unknownerror and suspected OOM.
Differential Revision: https://phabricator.services.mozilla.com/D71256
2020-04-17 06:02:16 +00:00
Karl Tomlinson
3b7463aaed
Bug 1581896 allow AudioWorklet on release-or-beta behind a pref r=smaug
...
AudioWorklets are now functional for most use cases, and so it's time to allow
people to experiment.
PaintWorklets are not ready.
Differential Revision: https://phabricator.services.mozilla.com/D68320
2020-03-27 03:09:06 +00:00
Andrea Marchesini
33a2cfbbb6
Bug 1402784 - Use nsIContentPolicy::TYPE_INTERNAL_AUDIOWORKLET and nsIContentPolicy::TYPE_INTERNAL_PAINTWORKLET in Worklet code, r=smaug
...
Depends on D67105
Differential Revision: https://phabricator.services.mozilla.com/D67106
2020-03-17 22:24:39 +00:00
Simon Giesecke
e23194a6d7
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/worklet. r=smaug
...
Depends on D66033
Differential Revision: https://phabricator.services.mozilla.com/D66034
2020-03-09 14:51:58 +00:00
Simon Giesecke
9e7322117c
Bug 1617628 - Hide nsBaseHashtable Put overloads in nsRefPtrHashtable subclass. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D63899
2020-02-25 17:03:36 +00:00
Boris Zbarsky
35bc278e5f
Bug 1615022 part 2. Require an rvalue reference to reject a Promise with an ErrorResult. r=farre,kvark
...
The rejection process consumes the ErrorResult, so an rvalue reference is the honest thing here.
Differential Revision: https://phabricator.services.mozilla.com/D62632
2020-02-14 15:42:30 +00:00
Andrea Marchesini
b0a3a127a6
Bug 1612570 - Add promise support to worklet, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D61406
2020-02-06 13:54:19 +00:00
Narcis Beleuzu
0f04ff356e
Backed out changeset 5d69fddf45db (bug 1612570) for failing dom/worklet/tests/test_promise.html after bug 1611855 got backed out. CLOSED TREE
2020-02-06 14:37:36 +02:00
Andrea Marchesini
b8d962fee5
Bug 1612570 - Add promise support to worklet, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D61406
2020-02-05 22:16:21 +00:00
Arthur Iakab
b46d5ab9f1
Backed out changeset 7dddff2d1120 (bug 1612570) for causing mochitest failures on test_promise.html.
...
CLOSED TREE
2020-02-03 10:27:47 +02:00
Andrea Marchesini
9901807c97
Bug 1612570 - Add promise support to worklet, r=smaug
...
Depends on D61307
Differential Revision: https://phabricator.services.mozilla.com/D61406
2020-02-03 07:26:43 +00:00
Gabriele Svelto
eb403b8785
Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
...
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.
find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
if [ -n "$interfaces" ]; then
if [[ "$interfaces" == *$'\n'* ]]; then
regexp="\("
for i in $interfaces; do regexp="$regexp$i\|"; done
regexp="${regexp%%\\\|}\)"
else
regexp="$interfaces"
fi
interface=$(basename "$path")
rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
if [ $hits -eq 0 ]; then
echo "Removing ${interface} from ${path2}"
grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
mv -f "$path2".tmp "$path2"
fi
done
fi
done
Differential Revision: https://phabricator.services.mozilla.com/D55442
2019-12-06 09:24:56 +00:00
Dorel Luca
67889e1013
Backed out changeset f6e53d1c6518 (bug 1600545) for Android build bustage. CLOSED TREE
2019-12-04 17:32:27 +02:00
Gabriele Svelto
dc6fa2e86c
Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
...
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.
find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
if [ -n "$interfaces" ]; then
if [[ "$interfaces" == *$'\n'* ]]; then
regexp="\("
for i in $interfaces; do regexp="$regexp$i\|"; done
regexp="${regexp%%\\\|}\)"
else
regexp="$interfaces"
fi
interface=$(basename "$path")
rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
if [ $hits -eq 0 ]; then
echo "Removing ${interface} from ${path2}"
grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
mv -f "$path2".tmp "$path2"
fi
done
fi
done
Differential Revision: https://phabricator.services.mozilla.com/D55442
2019-12-04 15:01:19 +00:00
Boris Zbarsky
bc54ddc489
Bug 1591491. Add more use of FakeString::ShareOrDependUpon. r=froydnj
...
If someone then saves the resulting string, this will let us avoid a copy.
Differential Revision: https://phabricator.services.mozilla.com/D50635
2019-10-28 20:41:59 +00:00
Karl Tomlinson
e4505ee895
Bug 1578623 use 1 for first line number of worklet scripts r=baku
...
This is consistent with what the Web Console expects.
Differential Revision: https://phabricator.services.mozilla.com/D44610
2019-09-06 02:02:59 +00:00
Karl Tomlinson
476c85cfe0
Bug 1558128 reject addModule() promise with AbortError on failure to parse worklet script and don't suppress SyntaxErrors r=baku
...
https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script
requires that the addModule() promise is rejected with an "AbortError"
DOMException. https://github.com/w3c/css-houdini-drafts/issues/509 proposes a
more specific error, but that has not been implemented in another browser.
StealExceptionFromJSContext() set ErrorCode to
NS_ERROR_INTERNAL_ERRORRESULT_JS_EXCEPTION if there was a pending exception
(or NS_ERROR_OUT_OF_MEMORY on failure to record the JS exception) or
NS_ERROR_UNCATCHABLE_EXCEPTION if there was no pending exception.
StealNSResult() converted NS_ERROR_INTERNAL_ERRORRESULT_JS_EXCEPTION to
NS_ERROR_DOM_INVALID_STATE_ERR.
Information about the error is lost on conversion of a SyntaxError to the
promise rejection, so allow the SyntaxError to be reported the console.
Depends on D44601
Differential Revision: https://phabricator.services.mozilla.com/D44602
2019-09-04 09:46:50 +00:00
Karl Tomlinson
8199af64dc
Bug 1558128 remove unused local variable r=baku
...
Depends on D44600
Differential Revision: https://phabricator.services.mozilla.com/D44601
2019-09-04 09:46:42 +00:00
Karl Tomlinson
20c3959203
Bug 1473463 remove unnecessary JSAutoRealm as realm is set by AutoEntryScript r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D41341
2019-08-12 11:50:42 +00:00
Karl Tomlinson
7c6ee5d95f
Bug 1473463 evaluate worklet scripts as modules without support for nested import r=baku
...
The separation of parse and evaluate steps permits implementation of behavior
on unhandled exception during evaluation that is different from that on
parsing error.
Implementation of fetching a complete module script graph is tracked in
https://bugzilla.mozilla.org/show_bug.cgi?id=1572644
Differential Revision: https://phabricator.services.mozilla.com/D41339
2019-08-13 11:10:23 +00:00