Commit graph

299 commits

Author SHA1 Message Date
alwu
24c4bb6bd5 Bug 1785738 - part1 : add new type of utility process. r=bobowen,gerard-majax,fluent-reviewers,flod
Create a new type of utility process which would be used for media
foundation media engine CDM usage. The media engine is a media pipeline
provided by the Windows Media Foundation, and our final goal is to use
that pipeline to play encrypted content in order to achieve Widevine L1
protection to allow users to watch high resolution videos.

Differential Revision: https://phabricator.services.mozilla.com/D154033
2022-09-03 00:53:58 +00:00
nchevobbe
6e0558b9e7 Bug 1483662 - Add ChromeUtils.dateNow() . r=arai,kmag
The function returns the current a fractional number
representing the current time (in milliseconds from the Epoch).

This replicates the JSShell `dateNow` function.

This could be useful in JS land so we can get a more
precise timestamp than `Date.now`.

For example, it will be used in DevTools code, for the console,
so we can more precisely compare evaluation results
with consoleAPI messages that might have been emitted
as a result of the evaluation.

Differential Revision: https://phabricator.services.mozilla.com/D155547
2022-09-02 04:58:29 +00:00
Alexandre Lissy
b135ca0732 Bug 1780796 - Use one process per platform decoder module sandbox requirements r=alwu,nika,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D152545
2022-09-01 12:59:32 +00:00
Emilio Cobos Álvarez
4fc9841344 Bug 1782623 - Set select color-scheme based on child background. r=dholbert
This makes us use light or dark select popups on supported platforms
based on the background of the select element, which allows us to use
the right scrollbar color.

Depends on D153424

Differential Revision: https://phabricator.services.mozilla.com/D153425
2022-08-02 15:49:13 +00:00
Kris Maglione
27515a3d83 Bug 1770237: Part 17 - Rename mozJSComponentLoader to mozJSModuleLoader r=mccr8,decoder
Differential Revision: https://phabricator.services.mozilla.com/D148197
2022-06-22 20:31:37 +00:00
Tooru Fujisawa
9084893802 Bug 1768870 - Part 2: Add ChromeUtils.defineESModuleGetters. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D146212
2022-06-17 04:59:13 +00:00
Tooru Fujisawa
b746e955ad Bug 1768870 - Part 1: Rename JSM-specific module_getter functions. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D146211
2022-06-17 04:59:12 +00:00
criss
8fc8ec5d8e Backed out 8 changesets (bug 1771092, bug 1768870, bug 1771097, bug 1769002, bug 1768819) for causing mochitest failures on browser_sendQuery.js. CLOSED TREE
Backed out changeset 8a4d712f819a (bug 1771092)
Backed out changeset f4e27a35c83c (bug 1771092)
Backed out changeset 072323bc72cc (bug 1771092)
Backed out changeset 2ccf2a00fff7 (bug 1769002)
Backed out changeset ba7086fd9b1f (bug 1768819)
Backed out changeset 6205d3e2c666 (bug 1771097)
Backed out changeset 960f0aee97d5 (bug 1768870)
Backed out changeset 5f53760c5637 (bug 1768870)
2022-06-17 05:44:37 +03:00
Tooru Fujisawa
7d3a2529f0 Bug 1768870 - Part 2: Add ChromeUtils.defineESModuleGetters. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D146212
2022-06-17 01:30:22 +00:00
Tooru Fujisawa
c73cf134fa Bug 1768870 - Part 1: Rename JSM-specific module_getter functions. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D146211
2022-06-17 01:30:22 +00:00
Molnar Sandor
c1ae6857f8 Backed out 9 changesets (bug 1769002, bug 1768870, bug 1771097, bug 1771092, bug 1768819) for causing lint failures. CLOSED TREE
Backed out changeset 829df1dfad70 (bug 1769002)
Backed out changeset f0537d333adc (bug 1771092)
Backed out changeset 25b43856bc00 (bug 1771092)
Backed out changeset a49f754ca73f (bug 1771092)
Backed out changeset 164f85686a32 (bug 1769002)
Backed out changeset ef5cf9ceb915 (bug 1768819)
Backed out changeset c64e6c1fbfe7 (bug 1771097)
Backed out changeset f85393f988a8 (bug 1768870)
Backed out changeset fe708d13cc1d (bug 1768870)
2022-06-16 20:15:14 +03:00
Tooru Fujisawa
3fddc2b25a Bug 1768870 - Part 2: Add ChromeUtils.defineESModuleGetters. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D146212
2022-06-16 16:20:36 +00:00
Tooru Fujisawa
88deafb9fa Bug 1768870 - Part 1: Rename JSM-specific module_getter functions. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D146211
2022-06-16 16:20:35 +00:00
Jon Coppeard
01f312e1ec Bug 1771678 - Part 2: Re-add the renamed ChromeUtils.importESModule method r=smaug
This reverses the action of bug 1771112, with the method renamed to importESModule.

Differential Revision: https://phabricator.services.mozilla.com/D147681
2022-06-16 15:05:35 +00:00
Kagami Sascha Rosylight
1991e6336d Bug 1769290 - Part 7: Apply mozilla-js-handle-rooted-typedef against dom/base r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D148280
2022-06-05 20:54:59 +00:00
Jon Coppeard
a7fd419ccc Bug 1771112 - Temporarily remove ChromeUtils.importModule API r=smaug
This removes the API and skips the tests. The implementation in
mozJSComponentLoader is not removed.

This patch will be backed out after the next merge.

Differential Revision: https://phabricator.services.mozilla.com/D147278
2022-05-25 12:12:18 +00:00
Jon Coppeard
aed536664b Bug 1432901 - Part 11: Add ChromeUtils.importModule method to import and ES6 module r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D145566
2022-05-10 12:58:09 +00:00
Markus Stange
80f6715a90 Bug 1765399 - Replace nsIWidget::GetVsyncSource with nsIWidget::GetVsyncDispatcher. r=smaug
All users of nsIWidget::GetVsyncSource just want the dispatcher anyway.
Getting the dispatcher directly from the widget will allow us to remove VsyncSource::GetVsyncDispatcher.

Differential Revision: https://phabricator.services.mozilla.com/D144374
2022-05-05 02:15:17 +00:00
Marian-Vasile Laza
1cd0ac703f Backed out 16 changesets (bug 1765399) for causing build bustages on RefPtr.h.
Backed out changeset 8ff5e213e351 (bug 1765399)
Backed out changeset bd164f5cc8b3 (bug 1765399)
Backed out changeset 939b577eee05 (bug 1765399)
Backed out changeset ee00e3583f42 (bug 1765399)
Backed out changeset e5001537e536 (bug 1765399)
Backed out changeset d5a4004a2955 (bug 1765399)
Backed out changeset d3c1f6c420e3 (bug 1765399)
Backed out changeset d21fca656853 (bug 1765399)
Backed out changeset 5e5a29a99c9e (bug 1765399)
Backed out changeset ce326de1e107 (bug 1765399)
Backed out changeset 3890e83660b0 (bug 1765399)
Backed out changeset 2f3ceca7aefe (bug 1765399)
Backed out changeset 40c47c498858 (bug 1765399)
Backed out changeset 3a3a2aa6de9b (bug 1765399)
Backed out changeset 4a30a4b3d30d (bug 1765399)
Backed out changeset a9115d9d648e (bug 1765399)
2022-05-05 00:30:06 +03:00
Markus Stange
ca8906e4d1 Bug 1765399 - Replace nsIWidget::GetVsyncSource with nsIWidget::GetVsyncDispatcher. r=smaug
All users of nsIWidget::GetVsyncSource just want the dispatcher anyway.
Getting the dispatcher directly from the widget will allow us to remove VsyncSource::GetVsyncDispatcher.

Differential Revision: https://phabricator.services.mozilla.com/D144374
2022-05-04 16:13:38 +00:00
Mark Banner
20a0448631 Bug 1609271 - Disallow passing null as the target argument to ChromeUtils.import. r=evilpie,emilio
Differential Revision: https://phabricator.services.mozilla.com/D140516
2022-04-22 12:42:41 +00:00
Alexandre Lissy
cd822fce9c Bug 1761054 - Add Utility Processes with proper classification in about:processes r=nika,fluent-reviewers,flod,florian
Differential Revision: https://phabricator.services.mozilla.com/D141881
2022-04-14 16:22:21 +00:00
Dimi
5186434570 Bug 1681985 - P3. Implement CreditCardRuleset in C++ r=sgalich,emilio
Depends on D137269

Differential Revision: https://phabricator.services.mozilla.com/D137271
2022-03-11 11:45:59 +00:00
Chris Peterson
809cd2a13e Bug 1598759 - Remove support for Large-Allocation HTTP header. r=nika,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D140459
2022-03-09 03:18:04 +00:00
Olli Pettay
1edf4c885e Bug 1754562, make parent process' idle detection be aware of active RefreshDrivers in the other processes, r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D138504
2022-02-26 22:37:03 +00:00
criss
d17f55ed9f Backed out changeset 39bd7bdd12be (bug 1754562) for causing multiple failures. CLOSED TREE 2022-02-25 13:40:50 +02:00
Olli Pettay
89b093258f Bug 1754562, make parent process' idle detection be aware of active RefreshDrivers in the other processes, r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D138504
2022-02-25 10:13:16 +00:00
Eden Chuang
4de896f8ef Bug 1744025: Use CheckedUnsafePtr<WorkerPrivate> in WorkerGlobalScopeBase. r=dom-worker-reviewers,asuth
Depends on D132708

Differential Revision: https://phabricator.services.mozilla.com/D132709
2022-01-25 08:53:00 +00:00
Philip Chimento
a5427de8be Bug 1735200 - Add cause argument to JS::CreateError(). r=jandem
Add a cause argument to JS::CreateError(), in order to be able to create
errors with cause through the public API.

Differential Revision: https://phabricator.services.mozilla.com/D135931
2022-01-17 15:23:40 +00:00
Norisz Fay
5edb88e27a Backed out 9 changesets (bug 1744025) for causing wpt failures on CheckedUnsafePtr.h CLOSED TREE
Backed out changeset 89dca4fc5940 (bug 1744025)
Backed out changeset 7aa395dcdbe4 (bug 1744025)
Backed out changeset 1580a4ea1a85 (bug 1744025)
Backed out changeset af171636a87f (bug 1744025)
Backed out changeset a5edfa1c9cd6 (bug 1744025)
Backed out changeset 8abd6ba69815 (bug 1744025)
Backed out changeset cfb822df5b3f (bug 1744025)
Backed out changeset 5598943a94fd (bug 1744025)
Backed out changeset 43186fbbf8b4 (bug 1744025)
2021-12-15 18:46:01 +02:00
Eden Chuang
fe725492f9 Bug 1744025: Use CheckedUnsafePtr<WorkerPrivate> in WorkerGlobalScopeBase. r=dom-worker-reviewers,asuth
Depends on D132708

Differential Revision: https://phabricator.services.mozilla.com/D132709
2021-12-15 13:48:17 +00:00
Alexandre Poirot
679bde75eb Bug 1740543 - Expose xpcom's GetErrorName() to JS. r=xpcom-reviewers,nika
This will help JS codebase decipher what a given nsresult refers to.

Differential Revision: https://phabricator.services.mozilla.com/D130879
2021-12-09 14:00:39 +00:00
Florian Quèze
c27db31462 Bug 1744991 - add ChromeUtils.vsyncEnabled to allow checking from tests if vsync remained enabled, r=mstange.
Differential Revision: https://phabricator.services.mozilla.com/D133204
2021-12-09 11:27:40 +00:00
Norisz Fay
1b759d112f Backed out changeset 4628f9ff25a5 (bug 1740543) for causing build bustages on ErrorNames CLOSED TREE 2021-12-09 12:44:14 +02:00
Alexandre Poirot
2ecfb8077f Bug 1740543 - Expose xpcom's GetErrorName() to JS. r=xpcom-reviewers,nika
This will help JS codebase decipher what a given nsresult refers to.

Differential Revision: https://phabricator.services.mozilla.com/D130879
2021-12-09 10:02:53 +00:00
Sandor Molnar
68afd87d02 Backed out 8 changesets (bug 1744025) for causing bp-hybrid bustages in dom/clients/api/Clients.cpp. CLOSED TREE
Backed out changeset b6452430763d (bug 1744025)
Backed out changeset 46e9f06636da (bug 1744025)
Backed out changeset 913cdee4824f (bug 1744025)
Backed out changeset e1bc4e2066c7 (bug 1744025)
Backed out changeset e6b99af4b7ca (bug 1744025)
Backed out changeset e9b749f80ec2 (bug 1744025)
Backed out changeset 26d3176a00ef (bug 1744025)
Backed out changeset 2c8941fdcee5 (bug 1744025)
2021-12-08 01:30:06 +02:00
Jens Stutte
d53627390a Bug 1744025: Use CheckedUnsafePtr<WorkerPrivate> in WorkerGlobalScopeBase. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D132709
2021-12-07 16:47:15 +00:00
Alexandre Lissy
60d10601bb Bug 1726804 - Refactor definition and usage of GECKO_PROCESS_TYPE() r=nika,firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D121388
2021-11-19 14:02:55 +00:00
Alexandru Michis
2cb5b32d02 Backed out 2 changesets (bug 1726804) for causing sm bustages in geckoprocesstypes.
CLOSED TREE

Backed out changeset bf7f73fd1921 (bug 1726804)
Backed out changeset c9936f7534cb (bug 1726804)
2021-11-19 11:40:59 +02:00
Alexandre Lissy
b71c7b7255 Bug 1726804 - Refactor definition and usage of GECKO_PROCESS_TYPE() r=nika,firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D121388
2021-11-19 08:33:42 +00:00
Gerald Squelart
5399574d8b Bug 1738627 - profiler_thread_is_being_profiled_for_markers - r=canaltinova
`profiler_thread_is_being_profiled` is used a lot for markers, so it makes sense to have a specialized version, which is a bit shorter, and lives in ProfilerMarkers.h.

Differential Revision: https://phabricator.services.mozilla.com/D130009
2021-11-08 23:59:35 +00:00
Randell Jesup
b257161e3a Bug 1738765: Process-isolate ServiceWorkers if they match an allow-list of sites r=nika,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D130113
2021-11-08 19:53:06 +00:00
Cristian Tuns
1aeac93d23 Backed out 5 changesets (bug 1738627) for causing xpcshell failures on test_ext_geckoProfiler_schema.js CLOSED TREE
Backed out changeset 42d385d7da97 (bug 1738627)
Backed out changeset edeb3a338954 (bug 1738627)
Backed out changeset 98f02e35134d (bug 1738627)
Backed out changeset 711daa6dd24b (bug 1738627)
Backed out changeset 49e12753a40c (bug 1738627)
2021-11-05 05:12:28 -04:00
Gerald Squelart
7fa084ae7c Bug 1738627 - profiler_thread_is_being_profiled_for_markers - r=canaltinova
`profiler_thread_is_being_profiled` is used a lot for markers, so it makes sense to have a specialized version, which is a bit shorter, and lives in ProfilerMarkers.h.

Differential Revision: https://phabricator.services.mozilla.com/D130009
2021-11-05 05:52:28 +00:00
Gerald Squelart
df50ece611 Bug 1735697 - Remove profiler_can_accept_markers(), use profiler_thread_is_being_profiled() instead - r=florian
Differential Revision: https://phabricator.services.mozilla.com/D128577
2021-10-18 23:11:30 +00:00
Andrew Creskey
46162554f6 Bug 1717920 - Add scrolling metrics to history metadata r=mossop,botond,edgar
Disabled by default, browser.places.interactions.enabled, this adds scrolling metrics (time spent scrolling and distance scrolled) to the history metadata.

Differential Revision: https://phabricator.services.mozilla.com/D120656
2021-09-02 14:11:56 +00:00
Tim Huang
67476e5f95 Bug 1724768 - Part 1: Add ChromeUtils.getPartitionKeyFromURL(). r=pbz,robwu
Differential Revision: https://phabricator.services.mozilla.com/D122320
2021-08-13 07:57:17 +00:00
Florian Quèze
c16325eda9 Bug 1724187 - Change the category of the ChromeUtils.addProfilerMarker label frame to PROFILER so that this code is ignored in stacks captured for profiler markers, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D121859
2021-08-06 20:24:42 +00:00
Florian Quèze
ca7bbcc752 Bug 1720374 - Remove MOZ_GECKO_PROFILER ifdefs that are not useful, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D119810
2021-07-15 22:04:23 +00:00
Tooru Fujisawa
cc92ef732d Bug 1708448 - Move property and element functions into js/public/PropertyAndElement.h. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D119619
2021-07-13 11:52:42 +00:00