Граф коммитов

21842 Коммитов

Автор SHA1 Сообщение Дата
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
Nika Layzell 5404b2b305 Bug 1763413 - Stop disabling Fission in safe mode, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D144198
2022-04-21 14:54:01 +00:00
Andrew McCreight 0c12fcbc07 Bug 25886 - Remove NS_DEFINE_IID. r=xpcom-reviewers,nika
There are no remaining uses.

Differential Revision: https://phabricator.services.mozilla.com/D143511
2022-04-21 14:47:27 +00:00
Paul Zuehlcke 1e4838aeeb Bug 1735746 - Block external protocol navigation from sandboxed contexts. r=nika,ckerschb,Gijs,smaug
Differential Revision: https://phabricator.services.mozilla.com/D141131
2022-04-20 11:06:50 +00:00
Gerald Squelart 9c53f3da99 Bug 1765242 - Rename IOInterposer.cpp's thread-safe list of observers to SourceList - r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D143975
2022-04-19 20:39:38 +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
Jon Coppeard cc1c9e02a4 Bug 1764796 - Use the store buffer to trace preserved nursery wrappers in a minor GC r=mccr8
HeapObjectPostWriteBarrier adds or removes a store buffer entry for a change in
the GC graph entry based on the second and third arguments which are the target
of the edge before and after the change.

This patch also removes the store buffer entry in
nsWrapperCache::ReleaseWrapper which didn't happen before. This should help
keep less garbage alive unnecessarily.

Differential Revision: https://phabricator.services.mozilla.com/D143736
2022-04-19 08:48:33 +00:00
Emilio Cobos Álvarez 50cbe3ac09 Bug 1762708 - Restore [scriptable] in nsIGIOService since it is used by JS. r=fix CLOSED TREE 2022-04-16 03:31:34 +03:00
Emilio Cobos Álvarez 5e3a231f28 Bug 1762708 - Use async dbus for revealing files in nsGIOService. r=stransky
This at least doesn't block the UI, even though the file could take a while to
show up.

Depends on D143606

Differential Revision: https://phabricator.services.mozilla.com/D143607
2022-04-15 23:28:08 +00:00
Mike Hommey 8d477f6105 Bug 1764705 - Add missing #include <algorithm> for std::stable_sort. r=xpcom-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D143693
2022-04-14 22:18:26 +00:00
Nika Layzell 4fccdde58f Bug 1761511 - Part 5: Fix gtest deprecation warnings, r=ahal
The TEST_CASE_P macros are deprecated in newer versions of gtest.

Differential Revision: https://phabricator.services.mozilla.com/D142612
2022-04-14 02:09:22 +00:00
Tooru Fujisawa 65b9921c07 Bug 1764004 - Remove unused CycleCollectedJSContext::IsInMicroTask. r=smaug
Depends on D143356

Differential Revision: https://phabricator.services.mozilla.com/D143598
2022-04-14 01:43:00 +00:00
Tooru Fujisawa dea0f5e175 Bug 1761590 - Enter microtask when evaluating console/debugger input. r=nchevobbe,smaug
Differential Revision: https://phabricator.services.mozilla.com/D143356
2022-04-14 01:42:59 +00:00
Nika Layzell 6c4dce02a1 Bug 1713773 - Part 1: Simplify nsThreadManager shutdown, r=xpcom-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D142600
2022-04-12 20:22:24 +00:00
Razvan Cojocaru 80c01fc4fe Bug 1757668 - Use TimeDuration::ToMicroseconds() in TimerThread::Run(). r=sefeng,nika
Modify the code so that instead of getting microseconds by first
getting milliseconds, then multiplying by 1000, it retrieves the
microseconds value directly.

Differential Revision: https://phabricator.services.mozilla.com/D143472
2022-04-12 19:39:48 +00:00
Barret Rennie ef44e57089 Bug 1742928 - Re-enable test_localfile.js test_file_creation_time on Windows r=nika
Differential Revision: https://phabricator.services.mozilla.com/D143202
2022-04-12 19:09:02 +00:00
Iulian Moraru 4ab566ae1b Backed out changeset 75811190935c (bug 1713773) for causing leaks on mutex/nsthread. 2022-04-11 19:01:16 +03:00
Nika Layzell 017ada70cf Bug 1713773 - Simplify nsThreadManager shutdown, r=xpcom-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D142600
2022-04-11 14:33:45 +00:00
Jon Coppeard 80d0e18901 Bug 1763658 - Part 5: Remove unused tracing option r=jandem
This was only used in the ObjectGroup trace hook.

Differential Revision: https://phabricator.services.mozilla.com/D143348
2022-04-11 11:48:14 +00:00
Bryce Seager van Dyk c985cc36b7 Bug 1762839 - Adjust locking in AvailableMemoryWatcherWin to appease thread safety checker. r=nika
This stops the checker complaining that locks aren't held by adding further
annotations and doing some locking slightly earlier.

I've tried to adhere to the convention of passing a lock when a function
requires it, though I don't believe we have to do so to make the checker happy.

Differential Revision: https://phabricator.services.mozilla.com/D143003
2022-04-10 21:58:26 +00:00
Bryce Seager van Dyk 278a264cd7 Bug 1762839 - Fix Win specific thread annotations in nsProcessCommon. r=jesup,rkraesig
This adds in some locks that appear to be missing for the Windows case. It also
adds some locks which I think are missing for the non-Win case where `mProcess`
still exists in nsProcessCommon (though I'm less confident of that case).

Differential Revision: https://phabricator.services.mozilla.com/D142789
2022-04-10 21:58:26 +00:00
Roy Christo aaf8a82db8 Bug 1762749 - Fix ESLint rule warnings for no-unused-vars in xpcom/tests/unit/test_hidden_files.js. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D142765
2022-04-07 15:27:48 +00:00
Roy Christo 9e26010ae4 Bug 1762749 - Fix ESLint rule warnings for no-unused-vars in xpcom/tests/unit/test_localfile.js and upgrade tests to use add_task. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D142764
2022-04-07 15:27:48 +00:00
Jamie Nicol cee8f98714 Bug 1763392 - Generate SDK bindings for nested Java classes as nested C++ classes. r=agi,media-playback-reviewers,bryce
For example, the SDK class android.media.MediaDrm$KeyStatus will now
be defined as MediaDrm::KeyStatus rather than just KeyStatus.

Not only does this avoid polluting the top-level namespace, but it
also avoids a bug where invalid type names were generated if the
nested class contains a method with a parameter or return of the outer
class' type.

Differential Revision: https://phabricator.services.mozilla.com/D143043
2022-04-07 11:12:20 +00:00
Molnar Sandor 9d544b1925 Backed out changeset 9cc08c2f20be (bug 239460) for causing build bustage. CLOSED TREE 2022-04-07 03:02:28 +03:00
Nika Layzell 2b2d7891c1 Bug 239460 - Specify types for XPIDL consts in C++, r=xpcom-reviewers,mccr8
Before this change, all XPIDL constants were declared using an anonymous
`enum` rather than using a static constant. This change makes the
generated code more consistent with what is done in languages like Rust.

Some small changes were needed due to signed/unsigned comparison
warnings which were previously silent.

Differential Revision: https://phabricator.services.mozilla.com/D143090
2022-04-06 23:40:47 +00:00
Cosmin Sabou 97d21fa167 Backed out 5 changesets (bug 1761511) for causing build bustages. CLOSED TREE
Backed out changeset 687de8c00013 (bug 1761511)
Backed out changeset 88e6cf5c70e5 (bug 1761511)
Backed out changeset 4c40758f54f1 (bug 1761511)
Backed out changeset 8a18abcccda4 (bug 1761511)
Backed out changeset 1afb1f32a6a4 (bug 1761511)
2022-04-07 00:13:00 +03:00
Nika Layzell f1c3a8f87c Bug 1761511 - Part 5: Fix gtest deprecation warnings, r=ahal
The TEST_CASE_P macros are deprecated in newer versions of gtest.

Differential Revision: https://phabricator.services.mozilla.com/D142612
2022-04-06 20:45:08 +00:00
Cosmin Sabou cb02113c4e Backed out 2 changesets (bug 1762749) for causing xpcshell failures on test_localfile.js. CLOSED TREE
Backed out changeset 798125b026fb (bug 1762749)
Backed out changeset 3a3ece958323 (bug 1762749)
2022-04-06 23:50:26 +03:00
Nika Layzell 3a5d9a53ba Bug 1435766 - Reimplement nsDirectoryService Mac getters in terms of GetSpecialSystemDirectory, r=xpcom-reviewers,mccr8
This makes the getters more consistent with getters on other platforms,
and theoretically provides a faster way of getting these directories
from C++ code in the future.

Differential Revision: https://phabricator.services.mozilla.com/D142871
2022-04-06 20:43:07 +00:00
Stephen A Pohl 9fe39b5f5d Bug 1761481: Improve the conversion of line breaks. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D142104
2022-04-06 17:45:45 +00:00
Roy Christo 32b5831ee9 Bug 1762749 - Fix ESLint rule warnings for no-unused-vars in xpcom/tests/unit/test_hidden_files.js. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D142765
2022-04-06 17:41:40 +00:00
Roy Christo f06d580993 Bug 1762749 - Fix ESLint rule warnings for no-unused-vars in xpcom/tests/unit/test_localfile.js and upgrade tests to use add_task. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D142764
2022-04-06 17:41:40 +00:00
Olli Pettay 27c58b74af Bug 1762090, don't block refreshdrivers for too long time on linux, r=mstange
Explicitly detect the case when main thread has been empty, and if so, don't give other tasks
extra time.

Differential Revision: https://phabricator.services.mozilla.com/D142740
2022-04-06 00:40:25 +00:00
Joel Maher 25803a0047 Bug 1751492 - run xpcshell tests in fission mode. r=mccr8,necko-reviewers,application-update-reviewers,bytesized,dragana,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D141912
2022-04-05 15:19:46 +00:00
Jan Rio Krause 057785b6d5 Bug 1519200 - Remove `NS_ERROR_FILE_TARGET_DOES_NOT_EXIST` in favor of `NS_ERROR_FILE_NOT_FOUND`. r=xpcom-reviewers,nika,dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D77575
2022-04-05 15:17:03 +00:00
Butkovits Atila 393fc50e58 Backed out 4 changesets (bug 1735746) for causing failures at browser_protocol_custom_sandbox.js. CLOSED TREE
Backed out changeset 703dfd92c775 (bug 1735746)
Backed out changeset 3b06ed08d93b (bug 1735746)
Backed out changeset 9968278b9efe (bug 1735746)
Backed out changeset 49f2e283115d (bug 1735746)
2022-04-05 16:04:29 +03:00
Paul Zuehlcke 720e7605fe Bug 1735746 - Block external protocol navigation from sandboxed contexts. r=nika,ckerschb,Gijs,smaug
Differential Revision: https://phabricator.services.mozilla.com/D141131
2022-04-05 11:31:53 +00:00
Randell Jesup e543d9267a Bug 1762469: xpcom memory reporter cleanup r=nika
Differential Revision: https://phabricator.services.mozilla.com/D142614
2022-04-04 22:57:37 +00:00
Randell Jesup 3c66153d0a Bug 1760645 - xpcom IOInterposer thread-safety annotations r=nika
Differential Revision: https://phabricator.services.mozilla.com/D141654
2022-04-04 22:55:21 +00:00
Narcis Beleuzu 86241816f2 Merge mozilla-central to autoland 2022-04-05 00:52:03 +03:00
Narcis Beleuzu 24c05a0712 Merge autoland to mozilla-central. a=merge 2022-04-05 00:48:48 +03:00
Nathan Froyd 45d38d17c1 Bug 1478146 - Use SetFilePointerEx in nsLocalFileWin.cpp r=nika
Differential Revision: https://phabricator.services.mozilla.com/D142883
2022-04-04 20:39:04 +00:00
Emilio Cobos Álvarez 6553f27967 Bug 1762298 - Inherit used color-scheme from embedder <browser> elements. r=nika,dao,Gijs
This allows popups and sidebars to use the chrome preferred
color-scheme.

This moves the responsibility of setting the content-preferred color
scheme to the appropriate browsers to the front-end (via tabs.css).

We still return the PreferredColorSchemeForContent() when there's no
pres context (e.g., for display:none in-process iframes). We could
potentially move a bunch of the pres-context data to the document
instead, but that should be acceptable IMO as for general web content
there's no behavior change in any case.

Differential Revision: https://phabricator.services.mozilla.com/D142578
2022-04-04 18:22:04 +00:00
Mozilla Releng Treescript b9bcf6abd9 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-04-04 15:55:18 +00:00
Edgar Chen c82b0711e1 Bug 1760560 - Remove directory upload API; r=smaug
HTMLInputElement.getFilesAndDirectories is used for testing Directory API, so
still keep it but mark as chrome only.

Differential Revision: https://phabricator.services.mozilla.com/D142444
2022-04-04 09:54:34 +00:00
Randell Jesup ae3ccd0aa8 Bug 1762605 - RLBox thread-safety annotations r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D142695
2022-04-01 20:43:57 +00:00
Nika Layzell 7743d4fd62 Bug 1761536 - Part 2: Replace nsTArray::elem_type with value_type, r=mccr8
There weren't that many uses of the existing typedef, so it seemed like
it might be worthwhile to just replace all uses of the previous typedef
with the stl-like one.

Differential Revision: https://phabricator.services.mozilla.com/D142705
2022-04-01 17:00:25 +00:00
Nika Layzell 98fc25db17 Bug 1761536 - Part 1: Add a `value_type` typedef to nsTArray, r=xpcom-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D142607
2022-04-01 17:00:25 +00:00