Commit Graph

20114 Commits

Author SHA1 Message Date
Simon Giesecke
5f046f94b5 Bug 1644642 - Fix ArrayType of nsTArray_Impl iterators. a=fix. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D79253
2020-06-11 07:58:38 +00:00
Simon Giesecke
4ab55413a3 Bug 1644640 - Rename RemoveElementsAt(const_iterator, const_iterator) to RemoveElementsRange. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D79033
2020-06-11 07:17:25 +00:00
Valentin Gosu
aaf5f84d8f Bug 1644478 - Make nsPipeInputStream::mPriority Atomic r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D78938
2020-06-10 15:53:36 +00:00
Simon Giesecke
9029b95922 Bug 1643289 - Move elements where possible in nsTPriorityQueue instead of copying them. r=froydnj
Also remove redundant check in Push method on result of infallible operation,
and change its return type to void.

Differential Revision: https://phabricator.services.mozilla.com/D78249
2020-06-10 10:46:34 +00:00
Simon Giesecke
4fc33e202f Bug 1643289 - Make nsTPriorityQueue non-copyable and remove use of CopyableTArray. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78248
2020-06-10 10:46:17 +00:00
Simon Giesecke
82dc9b2271 Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78027
2020-06-10 10:46:14 +00:00
Bas Schouten
45104a7a29 Bug 1644292: Duplicate code for runnable telemetry for runnables executed inside TaskController. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D78888
2020-06-09 13:02:37 +00:00
Bas Schouten
c2dc5d2a40 Bug 1644288: Explicitly do not use timeDurationHelper when TaskController is enabled. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D78825
2020-06-09 12:42:24 +00:00
Valentin Gosu
cac985a474 Bug 1636888 - Allow specifying entire rust modules in MOZ_LOG r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78265
2020-06-10 07:18:40 +00:00
Butkovits Atila
e3dce68834 Backed out 3 changesets (bug 1643289, bug 1642949) for causing failure at test_headless_screenshot.html. CLOSED TREE
Backed out changeset 98c420f73380 (bug 1643289)
Backed out changeset 9447ea8910aa (bug 1643289)
Backed out changeset 0c827da9d847 (bug 1642949)
2020-06-10 10:07:23 +03:00
Simon Giesecke
6944416c7e Bug 1643289 - Move elements where possible in nsTPriorityQueue instead of copying them. r=froydnj
Also remove redundant check in Push method on result of infallible operation,
and change its return type to void.

Differential Revision: https://phabricator.services.mozilla.com/D78249
2020-06-10 05:45:45 +00:00
Simon Giesecke
3371315ec2 Bug 1643289 - Make nsTPriorityQueue non-copyable and remove use of CopyableTArray. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78248
2020-06-10 05:45:26 +00:00
Simon Giesecke
d419f0ff08 Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78027
2020-06-10 05:49:28 +00:00
Simon Giesecke
ca2d0aaa68 Bug 1644403 - Fix inconsistent uses of CopyableAutoTArray and Clone. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78893
2020-06-09 14:27:20 +00:00
Razvan Maries
caec984d54 Backed out 7 changesets (bug 1641737) assertion failures. CLOSED TREE
Backed out changeset 7f7b98339065 (bug 1641737)
Backed out changeset 32fba417ebd0 (bug 1641737)
Backed out changeset abd9cd77f3cb (bug 1641737)
Backed out changeset e3bf9a45db6a (bug 1641737)
Backed out changeset 94d47578009c (bug 1641737)
Backed out changeset 28bca5c5b8b4 (bug 1641737)
Backed out changeset 0296d0f6c1d1 (bug 1641737)
2020-06-09 18:55:08 +03:00
Jean-Yves Avenard
bb29b401bc Bug 1641737 - P4. Add UseDirectTaskDispatch/UseSynchronousDispatch to MozPromiseHolder. r=bholley
The allows to not have to deal with MozPromise::Private directly.

Differential Revision: https://phabricator.services.mozilla.com/D78208
2020-06-09 07:23:57 +00:00
Jean-Yves Avenard
0e3faed81f Bug 1641737 - P1. Set dispatch type to chained promises. r=bholley
When chaining a MozPromise set to be dispatched via the direct task queue (or synchronous), it makes sense for the chained promise to be dispatched in the same fashion.

All MozPromises generated by the IPC bindings are set to use the direct task queue in order to prevent the then runnable to run out of order with other IPC tasks.
We want to preserve that task ordering by default.

Differential Revision: https://phabricator.services.mozilla.com/D78178
2020-06-09 07:23:29 +00:00
alwu
0d200dff8a Bug 1640998 - part7 : create MediaController webidl. r=chunmin,smaug
This patch will
- create a chrome-only webdil interface `MediaController`
- expose supported keys via `MediaController` webidl interface

The advantage of doing so are
- to have a dedicated interface that is only used for MediaController that can be used for testing and our future plan (media hub)

More Details :
Currently, we access media controller's from `ChromeUtils` [1], but it causes a problem of creating a duplicated enum of the enum which we want to expose into Chrome JS.

Instead, we should create a media controller interface to access all its attibutes, which is more easier and clean.

In addition, we're planning to have a something like Chrome's media hub [2]. In order to do that, we have to expose some JS methods to allow us to control playback directly from Chrome JS.

[1] https://searchfox.org/mozilla-central/rev/559b25eb41c1cbffcb90a34e008b8288312fcd25/dom/chrome-webidl/ChromeUtils.webidl#485-493
[2] https://blog.google/products/chrome/manage-audio-and-video-in-chrome/

Differential Revision: https://phabricator.services.mozilla.com/D77757
2020-06-08 18:51:12 +00:00
Kashav Madan
c236372d7d Bug 1641929 - Add a fission.autostart getter, r=nika
This makes it easier to consider special conditions when checking the pref. It
currently returns false if safe mode is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D78798
2020-06-08 22:59:43 +00:00
Dana Keeler
ac4d01ea49 Bug 1644224 - make nsTimerEvent::sCanDeleteAllocator atomic/sequentially consistent r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78771
2020-06-08 19:59:40 +00:00
Simon Giesecke
ebbc7ae838 Bug 1642989 - Use RemoveLastElements instead of RemoveElementsAt where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78049
2020-06-08 08:50:15 +00:00
Simon Giesecke
f5561f73b7 Bug 1642988 - Add RemoveLastElements function. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78048
2020-06-08 08:49:13 +00:00
Simon Giesecke
13502cf27c Bug 1642991 - Use RemoveElementsBy where easily possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78055
2020-06-08 09:01:48 +00:00
Kartikaya Gupta
6fc65e6f89 Bug 1643747 - Filter rust logging on android by the underlying env_logger's filters. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78536
2020-06-05 20:44:53 +00:00
Kartikaya Gupta
7ac36807b1 Bug 1643042 - Turn the scroll origin parameter into a strongly-typed enum. r=tnikkel
This patch is a fairly mechanical conversion. The old `nullptr` gets converted
to ScrollOrigin::NotSpecified, and all the other possible values get corresponding
values in the new ScrollOrigin enum. A few switch statements are introduced to
clean up big if statements, but other than that, additional cleanups will happen
in later patches.

Differential Revision: https://phabricator.services.mozilla.com/D78438
2020-06-05 09:37:51 +00:00
Kris Taeleman
a33030af01 Bug 1633937 - Add OS Build info to about:support r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D73345
2020-06-04 20:15:36 +00:00
Emma Malysz
c2ded60e72 Bug 1610134: revert late writes from nsTerminator. r=dthayer
After investigating the potential to reduce the nsTerminator's crash timeout from
1 min, to 20s, and then finally 40s, we have decided to this does not provide
significant gains to justify increasing the amount of shutdown hang crashes
and potential to lose data. We should maintain the crash timeout at 1 min.

Differential Revision: https://phabricator.services.mozilla.com/D77939
2020-06-04 19:18:21 +00:00
Andrea Marchesini
f3527b4c51 Bug 1643156 - Cleanup nsMultiplexInputStream - part 4 - support Seek(END) correctly, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D77100
2020-06-04 00:18:57 +00:00
Andrea Marchesini
ac5319c5e6 Bug 1643156 - Cleanup nsMultiplexInputStream - part 3 - tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D76998
2020-06-04 00:18:57 +00:00
Andrea Marchesini
8db10f63e0 Bug 1643156 - Cleanup nsMultiplexInputStream - part 2 - remove the use of nsITellable interface for substreams, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D76902
2020-06-04 00:18:57 +00:00
Andrea Marchesini
d0f5bf2fd9 Bug 1643156 - Cleanup nsMultiplexInputStream - part 1 - keep the original stream, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D76901
2020-06-04 12:23:17 +00:00
Bas Schouten
8032d4373e Bug 1606706 - Part 2: Integrate new TaskController code into tree and allow usage by pref. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D74672
2020-06-04 00:02:18 +00:00
Bas Schouten
c01e9666a7 Bug 1606706 - Part 1: Add new TaskController code to the tree. r=smaug,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D74671
2020-06-03 23:39:58 +00:00
Simon Giesecke
70ed1b7b2a Bug 1641827 - Simplify implementations of RemoveLastElement and TruncateLength. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D77760
2020-06-03 08:09:17 +00:00
Bogdan Tara
2719f07eb0 Backed out 2 changesets (bug 1606706) for talos tests timeouts CLOSED TREE
Backed out changeset ab3e1a067a71 (bug 1606706)
Backed out changeset c47cf57dab71 (bug 1606706)
2020-06-03 11:51:04 +03:00
Bas Schouten
3a3972c388 Bug 1606706 - Part 2: Integrate new TaskController code into tree and allow usage by pref. r=smaug,?
Differential Revision: https://phabricator.services.mozilla.com/D74672
2020-06-02 11:36:38 +00:00
Bas Schouten
e79c5d94a5 Bug 1606706 - Part 1: Add new TaskController code to the tree. r=smaug,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D74671
2020-06-02 21:28:24 +00:00
Emilio Cobos Álvarez
31d642347c Bug 1599160 - Fix build error with nsTHashtable<const SheetLoadDataHashKey>. r=froydnj
Trying to use nsTHashtable<SheetLoadDataHashKey> yields the following
error:

   0:01.28 /home/emilio/src/moz/gecko-2/obj-debug-no-sccache/dist/include/nsTHashtable.h:288:8: error: multiple overloads of 'RemoveEntry' instantiate to the same signature 'void (mozilla::SheetLoadDataHashKey *)'
   0:01.28   void RemoveEntry(EntryType* aEntry) { mTable.RemoveEntry(aEntry); }
   0:01.28        ^
   0:01.28 /home/emilio/src/moz/gecko-2/obj-debug-no-sccache/dist/include/mozilla/css/Loader.h:600:38: note: in instantiation of template class 'nsTHashtable<mozilla::SheetLoadDataHashKey>' requested here
   0:01.28   nsTHashtable<SheetLoadDataHashKey> mLoadsPerformed;
   0:01.28                                      ^
   0:01.28 /home/emilio/src/moz/gecko-2/obj-debug-no-sccache/dist/include/nsTHashtable.h:264:8: note: previous declaration is here
   0:01.28   void RemoveEntry(KeyType aKey) {

I tried and failed to std::enable_if my way to victory, but then
realized I could probably use nsTHashtable<const SheetLoadDataHashKey>,
so that the compiler wouldn't complain about the overload (they're
identical, so they don't really matter).

But doesn't work either, unless I have this patch, because:

    0:12.57 /home/emilio/src/moz/gecko-2/obj-debug-no-sccache/dist/include/nsTHashtable.h:504:36: error: call to implicitly-deleted copy constructor of 'const mozilla::SheetLoadDataHashKey'
    0:12.57   new (mozilla::KnownNotNull, aTo) EntryType(std::move(*fromEntry));
    0:12.57                                    ^         ~~~~~~~~~~~~~~~~~~~~~
    0:12.57 /home/emilio/src/moz/gecko-2/obj-debug-no-sccache/dist/include/nsTHashtable.h:478:13: note: in instantiation of member function 'nsTHashtable<const mozilla::SheetLoadDataHashKey>::s_CopyEntry' requested here
    0:12.57           : s_CopyEntry,
    0:12.57             ^
    0:12.57 /home/emilio/src/moz/gecko-2/obj-debug-no-sccache/dist/include/nsTHashtable.h:163:16: note: in instantiation of member function 'nsTHashtable<const mozilla::SheetLoadDataHashKey>::Ops' requested here
    0:12.57       : mTable(Ops(), sizeof(EntryType), PLDHashTable::kDefaultInitialLength) {}
    0:12.57                ^
    0:12.57 /home/emilio/src/moz/gecko-2/layout/style/Loader.cpp:359:9: note: in instantiation of member function 'nsTHashtable<const mozilla::SheetLoadDataHashKey>::nsTHashtable' requested here
    0:12.57 Loader::Loader()
    0:12.57         ^
    0:12.57 /home/emilio/src/moz/gecko-2/obj-debug-no-sccache/dist/include/mozilla/css/Loader.h:97:3: note: copy constructor is implicitly deleted because 'SheetLoadDataHashKey' has a user-declared move constructor
    0:12.57   SheetLoadDataHashKey(SheetLoadDataHashKey&& toMove)
    0:12.57   ^
    0:13.08 1 error generated

This one was easier to fix though. Not too proud of this one.

Differential Revision: https://phabricator.services.mozilla.com/D77830
2020-06-02 17:02:51 +00:00
ssengupta
fd4af3407b Bug 1637742 - P1 - Protocol documentation now states no error should be returned if AsyncWait is called on closed stream r=baku
Differential Revision: https://phabricator.services.mozilla.com/D77407
2020-06-02 11:09:47 +00:00
Dorel Luca
61e47c120c Merge mozilla-cental to autoland. CLOSED TREE 2020-06-01 19:35:58 +03:00
Mozilla Releng Treescript
a56e4bfdd7 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2020-06-01 10:15:55 +00:00
Kagami Sascha Rosylight
716734fea5 Bug 1634454 - Resolve symlinks in nsLocalFileWin r=emk
Differential Revision: https://phabricator.services.mozilla.com/D73462
2020-06-01 15:12:31 +00:00
Sylvestre Ledru
4564119217 Bug 1617369 - Reformat recent rust changes with rustfmt r=froydnj
# ignore-this-changeset

Depends on D77580

Differential Revision: https://phabricator.services.mozilla.com/D77581
2020-05-30 12:58:22 +00:00
Sylvestre Ledru
63be8d152d Bug 1519636 - Reformat recent changes to the Google coding style r=necko-reviewers,dragana
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D77580
2020-05-30 09:55:27 +00:00
Nathan Froyd
02baef509b Bug 1641907 - add clarifying comments for AppInfoService getter(s); r=lina
People seemed to be taking the comment as indicative that Services.py
wasn't providing everything they needed, so make it clearer that you can
still get `nsIXULAppInfo`, you just have to work a little harder.

Differential Revision: https://phabricator.services.mozilla.com/D77477
2020-05-29 16:48:14 +00:00
Jonathan Kingston
d7420f10fd Bug 1359867 - Add support for allow-top-navigation-by-user-activation iframe sandboxing r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D77430
2020-06-01 12:46:31 +00:00
Dorel Luca
ab3da7db14 Backed out 4 changesets (bug 1636823) for gtests failures in TestMultiplexInputStream.BlockingVsAsync. CLOSED TREE
Backed out changeset ebb1525ea063 (bug 1636823)
Backed out changeset 25455bb698d8 (bug 1636823)
Backed out changeset 930874501ab3 (bug 1636823)
Backed out changeset 5d46b483c59c (bug 1636823)
2020-06-01 15:55:33 +03:00
Andrea Marchesini
ca598e4147 Bug 1636823 - nsMultiplexInputStream should not be blocking and nsIAsyncInputStream at the same time - part 4 - support Seek(END) correctly, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D77100
2020-06-01 12:16:45 +00:00
Andrea Marchesini
d712b10ae6 Bug 1636823 - nsMultiplexInputStream should not be blocking and nsIAsyncInputStream at the same time - part 3 - tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D76998
2020-06-01 12:16:27 +00:00
Andrea Marchesini
0a64e6bc6d Bug 1636823 - nsMultiplexInputStream should not be blocking and nsIAsyncInputStream at the same time - part 2 - remove the use of nsITellable interface for substreams, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D76902
2020-06-01 12:16:15 +00:00