Kagami Sascha Rosylight
f8e0f2c6da
Bug 1768189 - Part 3: Apply modernize-concat-nested-namespaces to dom/base/MessageListenerManager.h ... r=andi
...
Depends on D145736
Differential Revision: https://phabricator.services.mozilla.com/D145737
2022-05-09 20:41:04 +00:00
Sean Feng
5042a856cf
Bug 1734997 - Prototype the Prioritized Task Scheduling API r=smaug
...
Spec: https://wicg.github.io/scheduling-apis/
Differential Revision: https://phabricator.services.mozilla.com/D133494
2022-04-21 18:47:52 +00:00
Marian-Vasile Laza
8615f36226
Backed out 7 changesets (bug 1734997) for causing bustages on WebTaskSchedulerMainThread.cpp. CLOSED TREE
...
Backed out changeset 7ab1e7cc8f6a (bug 1734997)
Backed out changeset 0846da0f5ab1 (bug 1734997)
Backed out changeset 3a138b8501ec (bug 1734997)
Backed out changeset 55c6e7862298 (bug 1734997)
Backed out changeset 724cccd1d595 (bug 1734997)
Backed out changeset 5e624d630397 (bug 1734997)
Backed out changeset 09469f7dd10e (bug 1734997)
2022-04-19 12:54:00 -07:00
Sean Feng
ec21b3c0a4
Bug 1734997 - Prototype the Prioritized Task Scheduling API r=smaug
...
Spec: https://wicg.github.io/scheduling-apis/
Differential Revision: https://phabricator.services.mozilla.com/D133494
2022-04-19 19:08:44 +00:00
Tom Schuster
2e72af38c0
Bug 1753309 - Implement AbortSignal.timeout() r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D137900
2022-04-01 17:15:19 +00:00
Florian Quèze
8ad1e5d0aa
Bug 1699742 - Remove MOZ_GECKO_PROFILER ifdefs that are no longer needed, r=gerald.
...
Differential Revision: https://phabricator.services.mozilla.com/D109078
2021-03-22 16:29:52 +00:00
Simon Giesecke
ad01a10a3b
Bug 1634281
- Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin
...
Note that this patch only transforms the use of the nsDataHashtable type alias
to a directly equivalent use of nsTHashMap. It does not change the specification
of the hash key type to make use of the key class deduction that nsTHashMap
allows for in some cases. That can be done in a separate step, but requires more
attention.
Differential Revision: https://phabricator.services.mozilla.com/D106008
2021-03-10 10:47:47 +00:00
Simon Giesecke
9af107a839
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
Simon Giesecke
8c2c2388e6
Bug 1679273 - Fix bustage when building without MOZ_GECKO_PROFILER. r=gerald
...
Differential Revision: https://phabricator.services.mozilla.com/D97966
2020-12-07 14:21:28 +00:00
Simon Giesecke
0b23ac4776
Bug 1673931
- Remove unused includes from Timeout.h.
...
Differential Revision: https://phabricator.services.mozilla.com/D96541
Depends on D96540
2020-11-23 16:09:22 +00:00
Gerald Squelart
a087b2df35
Bug 1663554 - Convert AUTO_PROFILER_TEXT_MARKER_... to new AUTO_PROFILER_MARKER_TEXT - r=gregtatum
...
The name `AUTO_PROFILER_MARKER_TEXT` is more consistent with the equivalent non-`AUTO` macro, and similarly arguments have been re-ordered to be the same, i.e.: Name, category&options, text.
The different macros with different argument sets can now be collapsed into one macro, and the optional arguments (timing, inner window id, backtrace) can easily be added to the `MarkerOptions` where needed.
As a bonus, a specific start time can optionally be provided at construction time.
Differential Revision: https://phabricator.services.mozilla.com/D89588
2020-09-11 00:42:51 +00:00
Olli Pettay
1d2d27759a
Bug 1615564, clearing timeouts should be O(1),
...
Differential Revision: https://phabricator.services.mozilla.com/D76630
2020-05-24 20:59:08 +00:00
Atila Butkovits
a059fdad21
Backed out changeset (Bug 1615564) 1c58f39177c0 for bustages at TimeoutManager.cpp. CLOSED TREE
2020-05-21 13:06:15 +03:00
Olli Pettay
5e1e544d7b
Bug 1615564, clearing timeouts should be O(1) r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D74566
2020-05-20 14:08:59 +00:00
Andi-Bogdan Postelnicu
38afb32dc5
Bug 1626555 - Make `dom/base` buildable outside of `unified-build` environment. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D69183
2020-04-29 09:02:05 +00:00
Markus Stange
e3818b8e81
Bug 1515214 - Add markers with cause stacks and the name of the called function for setTimeout callback execution. r=jesup
...
These duplicate the existing setTimeout markers a bit.
Differential Revision: https://phabricator.services.mozilla.com/D19194
--HG--
extra : moz-landing-system : lando
2019-07-10 20:48:14 +00:00
Edgar Chen
46c9143db2
Bug 1558776 - Part 4: Merge nsITimeoutHandler and TimeoutHandler; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D34876
--HG--
extra : moz-landing-system : lando
2019-06-14 21:04:19 +00:00
Brindusan Cristian
86556db730
Backed out 2 changesets (bug 1515214) for hazard build bustage at CallbackObject.cpp. CLOSED TREE
...
Backed out changeset 7c4973b0d0e8 (bug 1515214)
Backed out changeset 9aabc3ad2470 (bug 1515214)
--HG--
extra : histedit_source : fe9f52b4aa92e6c3aacb62d5eba3807353c20654
2019-03-08 00:04:31 +02:00
Markus Stange
42e110e8e5
Bug 1515214 - Add markers with cause stacks and the name of the called function for setTimeout callback execution. r=jesup
...
These duplicate the existing setTimeout markers a bit.
Differential Revision: https://phabricator.services.mozilla.com/D19194
--HG--
extra : moz-landing-system : lando
2019-03-07 18:04:58 +00:00
Randell Jesup
39f17e966f
Bug 1527414: move DIAGNOSTIC_ASSERT back down to DEBUG-only ASSERT r=smaug
2019-02-25 23:52:11 -05:00
Randell Jesup
df67b772ca
Bug 1527414: fix firing order assertions in nested event loops in RunTimeout r=ehsan
2019-02-19 08:48:05 -05:00
arthur.iakab
a23eac6d53
Backed out changeset 93b9c2a8212b (bug 1527414
) for causing build bustages on TimeoutManager.cpp CLOSED TREE
2019-02-21 02:05:58 +02:00
Randell Jesup
bf0b02c121
Bug 1527414: fix firing order assertions in nested event loops in RunTimeout r=ehsan
2019-02-19 08:48:05 -05:00
Randell Jesup
715863c129
Backed out changeset f8058a73d119 (bug 1528349) r=smaug
...
Expected backout of DIAGNOSTIC_ASSERT
2019-02-19 08:40:14 -05:00
Randell Jesup
4bcec2fdca
Bug 1528349: Move a DOM timeout spec-compliance ASSERT to DIAGNOSTIC_ASSERT r=smaug
2019-02-16 00:31:37 -05:00
Randell Jesup
ec594f87db
Bug 1525337: add firing order assertions for setTimeout/setInterval r=smaug
2019-02-05 18:00:24 -05:00
Randell Jesup
e213c06fe8
Bug 1270059: Defer setTimeout/Intervals()s in content during pageload r=smaug
...
They will run off the new DeferredTimers idle queue if idle time is available
2019-01-26 12:18:06 -05:00
Andrea Marchesini
9cc643f6d3
Bug 1513895 - Unify PopupBlocker algorithm in 1 single file, r=smaug
2018-12-16 10:21:16 +01:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Andreas Farre
c9272ef398
Bug 1437064 - Remove tracking timeouts list from TimeoutManager. r=chutten,Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D7878
--HG--
extra : moz-landing-system : lando
2018-10-12 18:01:19 +00:00
Nika Layzell
3409141758
Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
...
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.
MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Andrew McCreight
298aa82710
Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot
...
This was automatically generated by the script modeline.py.
MozReview-Commit-ID: BgulzkGteAL
--HG--
extra : rebase_source : a4b9d16a4c06c4e85d7d85f485221b1e4ebdfede
2017-10-26 15:08:41 -07:00
Ben Kelly
8547461342
Bug 1378586
P3 Reorder Timeout members to improve binary packing. No functional change. r=farre
2017-07-25 08:35:12 -07:00
Ben Kelly
50ec1a5f3e
Bug 1378586
P2 Avoid Timeout mNestingLevel rollover by just limiting the value to the values we care about. r=farre
2017-07-25 08:35:12 -07:00
Ben Kelly
4deac3f186
Bug 1371787 P8 Change Timeout::mInterval member to a TimeDuration. r=ehsan
2017-06-15 17:30:48 -07:00
Ben Kelly
a3c8156b38
Bug 1371664 P4 Remove old TimeoutManager code that adjusted Timeout::When() while in background. r=ehsan
2017-06-13 18:08:28 -07:00
Ben Kelly
cf2f97c065
Bug 1370025 P5 Remove the old TimeoutManager insertion point logic. r=ehsan
2017-06-05 12:42:33 -07:00
Ben Kelly
e3fc94e5a9
Bug 1363829 P7 Remove the Timeout nsITimer code. r=ehsan
2017-05-31 17:13:19 -07:00
Ben Kelly
9c58cbc4d3
Bug 1363829 P4 Store the scheduled delay on Timeout instead of relying on the nsITimer to hold it. r=ehsan
2017-05-31 17:13:18 -07:00
Ben Kelly
5a9cd2b6fb
Bug 1363829 P3 Improve Timeout ref counting to avoide bare AddRef/Release calls. r=ehsan
2017-05-31 17:13:18 -07:00
Ben Kelly
2473d25f1f
Bug 1343912 P3 Remove unused Timeout::mPrincipal member variable. r=ehsan
2017-05-19 13:45:55 -07:00
Ben Kelly
d642ac9124
Bug 1343912 P2 Change TimeoutManager firing depth to a unique ID that can be expired to optimize cleanup. r=ehsan
2017-05-19 13:45:55 -07:00
Andreas Farre
5600a0a638
Bug 1313864 - Move running idle callbacks to executor. r=bkelly
...
MozReview-Commit-ID: EuJfpkM6Acf
2017-02-01 16:16:29 +01:00
Andrew McCreight
f31f538622
Backed out changeset a0d8fb1244c5 (bug 1313864) for causing bug 1334904.
2017-01-29 10:29:27 -08:00
Andreas Farre
a90b92f181
Bug 1313864 - Move running idle callbacks to executor. r=bkelly
...
MozReview-Commit-ID: EuJfpkM6Acf
2017-01-27 17:54:39 +01:00
Ehsan Akhgari
453c89e409
Bug 1325467 - Part 1: Add Timeout::mIsTracking; r=bkelly
2017-01-17 21:01:15 -05:00
Ben Kelly
7254b4bfa4
Bug 1329284 Refactor DOM timeout to set mWhen/mTimeRemaining from one place. r=ehsan
2017-01-10 08:08:18 -08:00
Ehsan Akhgari
7326630b5d
Bug 1312514 - Part 1: Split tracking and non-tracking timeouts into two separate lists; r=bkelly
...
This will allow us to schedule these timers differently in the future.
This patch only performs the refactoring, and is not intended to change
any behavior. Specifically, this patch doesn't change the order in
which timeouts are fired -- they should still all be fired according to
the mWhen field.
The implementation works by splitting timeout storage per window into
two Timeouts objects, mNormalTimeouts and mTrackingTimeouts. The ForEach
helper methods are extended to deal with both of these objects, and as a
result, most of the algorithms operating on the list of timeouts work
correctly without any modification, with the notable exception of
RunTimeout.
In RunTimeout(), the order in which Timeout objects are processed does
matter, so for that case we use the OrderedTimeoutIterator class to
iterate over both linked lists simultaneously in the mWhen order. Also,
inserting the dummy timeout when running the timeouts is only necessary
for the linked list where the last expired timeout is coming from, so we
only inject the dummy timer into the corresponding list, therefore we
remember which list we picked the last expired timeout from when
looking for it.
2016-12-20 12:40:26 -05:00
Bill McCloskey
66add2ca93
Bug 1305926 - Dispatcher API for assigning DocGroups to runnables (r=ehsan)
...
MozReview-Commit-ID: 8qO95a6z1Ut
2016-11-17 17:01:00 -08:00
Daosheng Mu
7168326772
Bug 1299932 - Part 1: Implement gamepadPose attribute in Gamepad API; r=kip,qdot
...
MozReview-Commit-ID: DiJadVc2TyE
--HG--
extra : rebase_source : f4571090518a084b6d4b1e6fccf951510b227fbd
2016-10-24 18:04:41 +08:00