Commit Graph

463 Commits

Author SHA1 Message Date
Tom Schuster
ca6d8b796f Bug 1837976 - Check RFPTarget::SiteSpecificZoom from JS. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D181869
2023-06-28 17:02:40 +00:00
Tom Schuster
44e5d260a6 Bug 1837976 - Expose ShouldResistFingerprinting to JS via ChromeUtils. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D181614
2023-06-28 17:02:39 +00:00
Stanca Serban
31a6b71519 Backed out changeset 714fb5e0c999 (bug 1786885) for causing bustages in ChromeUtils.webidl. CLOSED TREE 2023-06-24 02:32:30 +03:00
Barret Rennie
d7e9b3368b Bug 1786885 - Add ChromeUtils::GetLibcConstants r=nika
ChromeUtils::GetLibcConstants() is a replacement for
nsIOSFileConstantsService providing OS.Consts.LIBC. The constants from
OS.Consts.Win have been inlined into subprocess_shared_win.js, since it was
already defining several other constants and it was the only consumer.

Differential Revision: https://phabricator.services.mozilla.com/D180358
2023-06-23 23:14:37 +00:00
Florian Quèze
0e354778bd Bug 1836191 - remove ChromeUtils.requestPerformanceMetrics that was only used by about:performance, r=smaug.
Differential Revision: https://phabricator.services.mozilla.com/D179696
2023-06-08 21:53:18 +00:00
Dan Robertson
0124920014 Bug 1821733 - Add chrome-only method for ending a wheel event group. r=smaug
Add a chrome-only method for ending a wheel event group. This can then
be used by the webdriver to ensure that the wheel event group does not
live longer than the action chain.

Differential Revision: https://phabricator.services.mozilla.com/D177923
2023-05-22 19:50:10 +00:00
Alexandre Poirot
28e34df8ef Bug 1819767 - [devtools] Expose ChromeUtils.isDevToolsOpened to know if DevTools are debugging something in the current process. r=smaug,devtools-reviewers,jdescottes
This doesn't help know what particular resource DevTools is currently inspecting,
but at least it helps know if it debugs something:
* one or many BrowsingContext(s) for regular DevTools (you can use BrowsingContext.watchedByDevTools instead)
* the whole process for the Browser Console/Toolbox

Differential Revision: https://phabricator.services.mozilla.com/D173295
2023-04-03 12:35:53 +00:00
Csoregi Natalia
1d11c2a5b2 Backed out 2 changesets (bug 1819767) for causing bustage on ChromeUtils.cpp. CLOSED TREE
Backed out changeset f67a63d151f5 (bug 1819767)
Backed out changeset 91e577f436e9 (bug 1819767)
2023-03-31 02:23:14 +03:00
Alexandre Poirot
763c211b2d Bug 1819767 - [devtools] Expose ChromeUtils.isDevToolsOpened to know if DevTools are debugging something in the current process. r=smaug,devtools-reviewers,jdescottes
This doesn't help know what particular resource DevTools is currently inspecting,
but at least it helps know if it debugs something:
* one or many BrowsingContext(s) for regular DevTools (you can use BrowsingContext.watchedByDevTools instead)
* the whole process for the Browser Console/Toolbox

Differential Revision: https://phabricator.services.mozilla.com/D173295
2023-03-30 21:25:08 +00:00
Andi-Bogdan Postelnicu
18e90b4312 Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-27 07:20:25 +00:00
Sandor Molnar
a21465caf7 Backed out 2 changesets (bug 1276351) for causing build bustage in image/ClippedImage.cp CLOSED TREE
Backed out changeset e84598eb82c1 (bug 1276351)
Backed out changeset e940b0554484 (bug 1276351)
2023-03-25 14:16:43 +02:00
Andi-Bogdan Postelnicu
a53c65154f Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-25 06:58:52 +00:00
Iulian Moraru
55a9a03f95 Backed out 2 changesets (bug 1276351) for causing multiple failures.
Backed out changeset eeaf4f1e06af (bug 1276351)
Backed out changeset d44cb5704342 (bug 1276351)
2023-03-25 00:08:24 +02:00
Andi-Bogdan Postelnicu
75ea04501c Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-24 18:55:39 +00:00
Andreas Farre
e98f487c6c Bug 1821596 - Don't start JS Validator if ORB isn't enabled. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D172209
2023-03-10 08:41:43 +00:00
Tooru Fujisawa
2e7d5c6952 Bug 1805288 - Part 1: Add ChromeUtils.defineLazyGetter. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D171319
2023-03-08 07:11:02 +00:00
Butkovits Atila
47ad5e4d8d Backed out 2 changesets (bug 1805288) for causing Bug 1820250. CLOSED TREE
Backed out changeset f7a22635f81a (bug 1805288)
Backed out changeset e717e0354d72 (bug 1805288)
2023-03-06 12:41:23 +02:00
Tooru Fujisawa
6ba113a0b1 Bug 1805288 - Part 1: Add ChromeUtils.defineLazyGetter. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D171319
2023-03-03 06:29:16 +00:00
Jed Davis
986fa1ddc6 Bug 1763625 - Refactor how we access child process handles. r=nika,media-playback-reviewers,karlt
Differential Revision: https://phabricator.services.mozilla.com/D169777
2023-02-28 03:41:51 +00:00
Csoregi Natalia
62edd570d3 Backed out changeset dc92467cea22 (bug 1763625) for causing memory-related crashes and failures. CLOSED TREE 2023-02-28 00:52:22 +02:00
Jed Davis
f65b5e7036 Bug 1763625 - Refactor how we access child process handles. r=nika,media-playback-reviewers,karlt
Differential Revision: https://phabricator.services.mozilla.com/D169777
2023-02-27 20:32:51 +00:00
Alexandre Lissy
03d17b81fc Bug 1818465 - Add test to ensure Utility Actor Names always reflected in about:processes r=florian,nika
Differential Revision: https://phabricator.services.mozilla.com/D170753
2023-02-25 00:58:05 +00:00
Noemi Erli
2b8b5b577b Backed out 2 changesets (bug 1818465) for causing failures in browser_formless_submit_chrome.js CLOSED TREE
Backed out changeset 0abd5d9c6073 (bug 1818465)
Backed out changeset 7fa24fc3c568 (bug 1818465)
2023-02-24 22:33:51 +02:00
Alexandre Lissy
ccff80cb90 Bug 1818465 - Add test to ensure Utility Actor Names always reflected in about:processes r=florian,nika
Differential Revision: https://phabricator.services.mozilla.com/D170753
2023-02-24 16:15:07 +00:00
Andreas Farre
6cab7743a5 Bug 1815387 - Don't assert that we get a JSOracleParent. r=smaug
This assert is too strong. We might not get an actor, e.g. in the case
of shutting down. And that's OK. It is up to the caller to make sure
that it actually got an actor.

Differential Revision: https://phabricator.services.mozilla.com/D169078
2023-02-07 15:44:39 +00:00
Andreas Farre
0dd0451f8a Bug 1806501 - Start the JS Oracle process early. r=smaug
Depends on D168252

Differential Revision: https://phabricator.services.mozilla.com/D167230
2023-02-06 15:52:29 +00:00
Andreas Farre
18b9822941 Bug 1812035 - Fix broken about:memory tests. r=smaug
Tests for about:memory doesn't know about utility processes. Make sure
to hide the utility process reporter when needed.

Differential Revision: https://phabricator.services.mozilla.com/D167662
2023-02-06 15:52:28 +00:00
David Parks
c4a4bb625d Bug 1704500: Make UtilityActorName an alias for WebIDLUtilityActorName r=gerard-majax
This eliminates a redundant enum that we had to keep synchronized with another.

Depends on D155020

Differential Revision: https://phabricator.services.mozilla.com/D162943
2023-01-31 21:10:28 +00:00
David Parks
48c92a9ae7 Bug 1704500: Add WindowsUtils kind of utility process on Windows r=gerard-majax,ipc-reviewers,nika
Adds a new type of utility process that is set up to handle Windows OS objects.  We are adding this process type to run Windows geolocation APIs but more services are expected to be included in it.  The ILocation APIs have a race condition that would otherwise crash the main process.  The ILocation work is in a later patch in the series.

Depends on D155017

Differential Revision: https://phabricator.services.mozilla.com/D155018
2023-01-31 21:10:26 +00:00
Iulian Moraru
139a51d58f Backed out 7 changesets (bug 1704500) for causing bc failures on browser_utility_geolocation_crashed.js. CLOSED TREE
Backed out changeset afcc1e8b5ad7 (bug 1704500)
Backed out changeset 1c27f9c36fda (bug 1704500)
Backed out changeset c0f0a280aaea (bug 1704500)
Backed out changeset 4be2d58ddf54 (bug 1704500)
Backed out changeset 1386732459ce (bug 1704500)
Backed out changeset 88e8015e1ec4 (bug 1704500)
Backed out changeset d96e810e20ec (bug 1704500)
2023-01-29 03:17:48 +02:00
David Parks
ad03918940 Bug 1704500: Make UtilityActorName an alias for WebIDLUtilityActorName r=gerard-majax
This eliminates a redundant enum that we had to keep synchronized with another.

Depends on D155020

Differential Revision: https://phabricator.services.mozilla.com/D162943
2023-01-28 21:00:50 +00:00
David Parks
6c33211268 Bug 1704500: Add WindowsUtils kind of utility process on Windows r=gerard-majax,ipc-reviewers,nika
Adds a new type of utility process that is set up to handle Windows OS objects.  We are adding this process type to run Windows geolocation APIs but more services are expected to be included in it.  The ILocation APIs have a race condition that would otherwise crash the main process.  The ILocation work is in a later patch in the series.

Depends on D155017

Differential Revision: https://phabricator.services.mozilla.com/D155018
2023-01-28 21:00:48 +00:00
Narcis Beleuzu
47cb05bbf5 Backed out 3 changesets (bug 1812275, bug 1812035, bug 1806501) for bc failures on browser_aboutprocesses_default_options.js .
Backed out changeset 4f13d8470d97 (bug 1806501)
Backed out changeset a276a2939cee (bug 1812275)
Backed out changeset 67775732c1a8 (bug 1812035)
2023-01-27 17:14:57 +02:00
Andreas Farre
3171029340 Bug 1806501 - Start the JS Oracle process early. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D167230
2023-01-27 09:17:17 +00:00
Andreas Farre
8ef1c9c7af Bug 1812035 - Fix broken about:memory tests. r=smaug
Tests for about:memory doesn't know about utility processes. Make sure
to hide the utility process reporter when needed, and count the number
of living processes, also when needed.

Differential Revision: https://phabricator.services.mozilla.com/D167662
2023-01-27 09:17:16 +00:00
Sandor Molnar
75efc1e999 Backed out 7 changesets (bug 1704500) for causing multiple failures in browser_utility_geolocation_crashed/test_geolocation_reset_accuracy CLOSED TREE
Backed out changeset c3ae64389c26 (bug 1704500)
Backed out changeset 747d84ff17c7 (bug 1704500)
Backed out changeset 313b8770dc51 (bug 1704500)
Backed out changeset 30632246ee2b (bug 1704500)
Backed out changeset 90a8d51fc17c (bug 1704500)
Backed out changeset a1d1a97a2ffa (bug 1704500)
Backed out changeset 6bfb4d8de1e1 (bug 1704500)
2023-01-27 05:49:32 +02:00
David Parks
e5980cd25e Bug 1704500: Make UtilityActorName an alias for WebIDLUtilityActorName r=gerard-majax
This eliminates a redundant enum that we had to keep synchronized with another.

Depends on D155020

Differential Revision: https://phabricator.services.mozilla.com/D162943
2023-01-26 20:15:08 +00:00
David Parks
9f370d3092 Bug 1704500: Add WindowsUtils kind of utility process on Windows r=gerard-majax,ipc-reviewers,nika
Adds a new type of utility process that is set up to handle Windows OS objects.  We are adding this process type to run Windows geolocation APIs but more services are expected to be included in it.  The ILocation APIs have a race condition that would otherwise crash the main process.  The ILocation work is in a later patch in the series.

Depends on D155017

Differential Revision: https://phabricator.services.mozilla.com/D155018
2023-01-26 20:15:06 +00:00
Cristian Tuns
f386edee20 Backed out 7 changesets (bug 1704500) for causing build bustages CLOSED TREE
Backed out changeset e48723d8d42e (bug 1704500)
Backed out changeset 897b985f9298 (bug 1704500)
Backed out changeset c2474d1c0046 (bug 1704500)
Backed out changeset d4508f8ba7df (bug 1704500)
Backed out changeset 241be693628d (bug 1704500)
Backed out changeset 341ec2465c7d (bug 1704500)
Backed out changeset 0d1c0dcd7645 (bug 1704500)
2023-01-25 15:33:33 -05:00
David Parks
23324c492a Bug 1704500: Make UtilityActorName an alias for WebIDLUtilityActorName r=gerard-majax
This eliminates a redundant enum that we had to keep synchronized with another.

Depends on D155020

Differential Revision: https://phabricator.services.mozilla.com/D162943
2023-01-25 19:58:47 +00:00
David Parks
380d2eaafb Bug 1704500: Add WindowsUtils kind of utility process on Windows r=gerard-majax,ipc-reviewers,nika
Adds a new type of utility process that is set up to handle Windows OS objects.  We are adding this process type to run Windows geolocation APIs but more services are expected to be included in it.  The ILocation APIs have a race condition that would otherwise crash the main process.  The ILocation work is in a later patch in the series.

Depends on D155017

Differential Revision: https://phabricator.services.mozilla.com/D155018
2023-01-25 19:58:45 +00:00
Marian-Vasile Laza
d9f3cbeedf Backed out 8 changesets (bug 1704500) for causing build bustages on UtilityProcessHost.cpp. CLOSED TREE
Backed out changeset da69da68588d (bug 1704500)
Backed out changeset 8f1b73a96bb0 (bug 1704500)
Backed out changeset 817d104b3a3e (bug 1704500)
Backed out changeset 1c84f8f0796a (bug 1704500)
Backed out changeset 93e59d5488dc (bug 1704500)
Backed out changeset f85e8eed6fed (bug 1704500)
Backed out changeset e581bfdf0f8e (bug 1704500)
Backed out changeset 5d62d1a33cf8 (bug 1704500)
2023-01-25 05:18:00 +02:00
David Parks
8c59524317 Bug 1704500: Make UtilityActorName an alias for WebIDLUtilityActorName r=gerard-majax
This eliminates a redundant enum that we had to keep synchronized with another.

Depends on D155020

Differential Revision: https://phabricator.services.mozilla.com/D162943
2023-01-25 02:48:57 +00:00
David Parks
0dd8d7c063 Bug 1704500: Add WindowsUtils kind of utility process on Windows r=gerard-majax,ipc-reviewers,nika
Adds a new type of utility process that is set up to handle Windows OS objects.  We are adding this process type to run Windows geolocation APIs but more services are expected to be included in it.  The ILocation APIs have a race condition that would otherwise crash the main process.  The ILocation work is in a later patch in the series.

Depends on D155017

Differential Revision: https://phabricator.services.mozilla.com/D155018
2023-01-25 02:48:56 +00:00
Sandor Molnar
f9b2395cee Backed out 2 changesets (bug 1812035, bug 1806501) for causing bc failures in ipc/glue/test/browser/browser_utility_audioDecodeCrash.js CLOSED TREE
Backed out changeset d7f1a776a986 (bug 1806501)
Backed out changeset 4a44daa59af4 (bug 1812035)
2023-01-24 18:31:34 +02:00
Andreas Farre
fba7fef652 Bug 1806501 - Start the JS Oracle process early. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D167230
2023-01-24 15:37:49 +00:00
Andreas Farre
ad29180b54 Bug 1812035 - Fix broken about:memory tests. r=smaug
Tests for about:memory doesn't know about utility processes. Make sure
to hide the utility process reporter when needed, and count the number
of living processes, also when needed.

Differential Revision: https://phabricator.services.mozilla.com/D167662
2023-01-24 15:37:49 +00:00
Cosmin Sabou
9b18b1a231 Backed out changeset c04e43c43057 (bug 1806501) for mochitest failures on test_aboutmemory.xhtml. CLOSED TREE 2023-01-19 12:41:37 +02:00
Andreas Farre
f78a79df33 Bug 1806501 - Start the JS Oracle process early. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D167230
2023-01-19 09:56:28 +00:00
Sean Feng
c5b0c3587b Bug 1532644 - Implement the initial version of the Javascript Validator for ORB r=farre,smaug
For things that can be parsed as Javascript, we need to figure out
if they are JSON, and we want to block opaque JSON resources for ORB.

This initial version just checks the first byte of the response, and
blocks it if it's a curly bracket.

Differential Revision: https://phabricator.services.mozilla.com/D163283
2023-01-09 15:27:18 +00:00