Commit Graph

3380 Commits

Author SHA1 Message Date
Andrew McCreight
805fb0aa59 Bug 1859643 - Remove nsSoundProxy. r=spohl,win-reviewers
nsISound is no longer used in content processes.

Differential Revision: https://phabricator.services.mozilla.com/D192115
2023-11-06 16:27:07 +00:00
Andrew McCreight
9a37d37df1 Bug 1862097 - Remove the unused PLoginReputation infrastructure. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D192297
2023-10-31 12:29:58 +00:00
alwu
d08daff9e8 Bug 1861029 - set merge result to the codec support info and log result from the given location separately. r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D192001
2023-10-27 18:47:31 +00:00
ChaseKnowlden
106baece1d Bug 1859414 - [ipc] Remove IsPrivilegedMozillaRemoteType. r=jstutte
Differential Revision: https://phabricator.services.mozilla.com/D191811
2023-10-26 13:12:35 +00:00
Andrew McCreight
7715fa05b3 Bug 1859680 - Reject RecvFindImageText() messages on unsupported platforms. r=gregtatum
Also, avoid calling SendFindImageText() on unsupported platforms, so that
test_image_recognition_unsupported.html will pass.

Differential Revision: https://phabricator.services.mozilla.com/D191678
2023-10-24 19:04:55 +00:00
Andrew McCreight
ac7dc36b1b Bug 1860665 - Remove the PContent RecordingDeviceEvents message. r=media-playback-reviewers,padenot
The last sender of this message was removed 6 years ago.

Differential Revision: https://phabricator.services.mozilla.com/D191693
2023-10-24 14:39:37 +00:00
Christian Holler
dabae55717 Bug 1858118 - Add missing BrowserContext null checks in ContentParent. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D191392
2023-10-24 07:25:08 +00:00
alwu
18f2b7c7ea Bug 1860156 - log support info from the remote process, not the merged one. r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D191478
2023-10-23 17:20:36 +00:00
Gregory Pappas
609c093ca6 Bug 1851211 - Remove privacy.partition.bloburl_per_agent_cluster pref r=amadan,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D187291
2023-09-26 20:59:01 +00:00
Benjamin VanderSloot
96a8a80dd8 Bug 1848783, part 3 - Add the site (sans port) to the permission keys of a content process - r=anti-tracking-reviewers,timhuang
without this, permissions set in the main process that are site-scoped on origins with non-null ports are not pushed out to the content process.

Differential Revision: https://phabricator.services.mozilla.com/D186984
2023-09-21 01:48:48 +00:00
Iulian Moraru
498b92b571 Backed out 9 changesets (bug 1848783, bug 1837168, bug 1835920) for causing multiple failures. CLOSED TREE
Backed out changeset ab1717421318 (bug 1848783)
Backed out changeset de5e1715c877 (bug 1848783)
Backed out changeset 1f64106e6667 (bug 1848783)
Backed out changeset e082ba20bbb2 (bug 1848783)
Backed out changeset cb56c5d713bf (bug 1848783)
Backed out changeset 735161c251e4 (bug 1848783)
Backed out changeset 3d1468ac6e84 (bug 1848783)
Backed out changeset 9ff5b92032cb (bug 1837168)
Backed out changeset 15cfb0c4f048 (bug 1835920)
2023-09-20 22:29:41 +03:00
alwu
b12d206510 Bug 1854034 - add log to display support from processes. r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D188665
2023-09-20 17:40:38 +00:00
Benjamin VanderSloot
2b2c7f882b Bug 1848783, part 3 - Add the site (sans port) to the permission keys of a content process - r=anti-tracking-reviewers,timhuang
without this, permissions set in the main process that are site-scoped on origins with non-null ports are not pushed out to the content process.

Differential Revision: https://phabricator.services.mozilla.com/D186984
2023-09-20 16:14:39 +00:00
Cosmin Sabou
805246368b Backed out 9 changesets (bug 1837168, bug 1835920, bug 1848783) for causing storage-access-api wpt failures. CLOSED TREE
Backed out changeset 3fd66f8f5d65 (bug 1848783)
Backed out changeset a96afb6d05d6 (bug 1848783)
Backed out changeset 117132b000ac (bug 1848783)
Backed out changeset 3a14281b7d72 (bug 1848783)
Backed out changeset 7dc5f794364d (bug 1848783)
Backed out changeset 84ca25a557a6 (bug 1848783)
Backed out changeset 8bb89cf9587e (bug 1848783)
Backed out changeset 15a005bef445 (bug 1837168)
Backed out changeset a97bc1fd6637 (bug 1835920)
2023-09-20 04:41:18 +03:00
Benjamin VanderSloot
0c8071bfc7 Bug 1848783, part 3 - Add the site (sans port) to the permission keys of a content process - r=anti-tracking-reviewers,timhuang
without this, permissions set in the main process that are site-scoped on origins with non-null ports are not pushed out to the content process.

Differential Revision: https://phabricator.services.mozilla.com/D186984
2023-09-19 21:03:07 +00:00
Andrew Osmond
724da0c963 Bug 1844651 - Gracefully handle GMP service shutdown barrier related initialization failures. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D188600
2023-09-19 19:23:58 +00:00
Paul Zuehlcke
e5f2baace4 Bug 1839918 - Refactor "cookie-changed" notifications to use nsICookieNotification. r=extension-reviewers,cookie-reviewers,sessionstore-reviewers,bvandersloot,edgul,robwu
Differential Revision: https://phabricator.services.mozilla.com/D185300
2023-09-18 11:55:08 +00:00
Cosmin Sabou
ba8a89ba9e Backed out 9 changesets (bug 1839918) for causing a top crash as in Bug 1852357. a=backout
Backed out changeset 1c438df525c7 (bug 1839918)
Backed out changeset 6e3d7fdfda3f (bug 1839918)
Backed out changeset 087b27593538 (bug 1839918)
Backed out changeset 302d12c12083 (bug 1839918)
Backed out changeset 750e0796c1ad (bug 1839918)
Backed out changeset 3949d9b400d4 (bug 1839918)
Backed out changeset 707021ebfd23 (bug 1839918)
Backed out changeset fa9a6af80526 (bug 1839918)
Backed out changeset 5aa3b2f1b5ec (bug 1839918)
2023-09-11 16:42:08 +03:00
az
611590bb7c Bug 1809570 - Part 2 - Request and process per-codec SW/HW decode support for Android PDMs using JNI calls r=jolin
Depends on D166238

Differential Revision: https://phabricator.services.mozilla.com/D166240
2023-09-08 21:49:43 +00:00
Paul Zuehlcke
34be80ea2b Bug 1839918 - Refactor "cookie-changed" notifications to use nsICookieNotification. r=extension-reviewers,cookie-reviewers,sessionstore-reviewers,bvandersloot,edgul,robwu
Differential Revision: https://phabricator.services.mozilla.com/D185300
2023-09-07 08:25:54 +00:00
Andrew McCreight
01ec407ef1 Bug 1851195 - Remove PContent::DeviceReset. r=gfx-reviewers,bradwerth
This IPC message is never used. about:support runs in the
parent process, and test_device_reset.html is a mochitest chrome,
so it also runs in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D187292
2023-09-01 19:03:43 +00:00
Emilio Cobos Álvarez
11692470d4 Bug 1848357 - Cleanup layer observer handling. r=mconley,gfx-reviewers,bradwerth
This seems to work, and turns out I need to fix this before bug 1847584,
because the epoch handling breaks with those patches in the case
customize mode sets display: none on browser elements.

Instead of dealing with epochs, just always report the last "has layers"
state to BrowserParent. This is both simpler and more reliable (there
were a couple hacks in WebRenderBridgeParent to make sure we notified
even though a transaction failed).

AsyncTabSwitcher pretty much already deals with this correctly because
it already needs to deal with browsers that already have layers, we only
had to loosen some assertions for potentially previous messages which
are fine.

Differential Revision: https://phabricator.services.mozilla.com/D187203
2023-09-01 17:09:27 +00:00
Abhishek Madan
20667968b2 Bug 1843155 - Added secondary partition key to blob urls. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D184158
2023-08-24 18:45:26 +00:00
Cristian Tuns
d71406486f Backed out 3 changesets (bug 1843155, bug 1843152, bug 1843154) for causing bc failures in browser_blobURLIsolation.js CLOSED TREE
Backed out changeset 346583cca204 (bug 1843154)
Backed out changeset acbab8770373 (bug 1843155)
Backed out changeset 12098afb766c (bug 1843152)
2023-08-23 19:53:47 -04:00
Abhishek Madan
b7c708bf43 Bug 1843155 - Added secondary partition key to blob urls. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D184158
2023-08-23 21:45:17 +00:00
Norisz Fay
4318f8e359 Backed out 3 changesets (bug 1843154, bug 1843152, bug 1843155) for causing multiple failures CLOSED TREE
Backed out changeset f80c8cf72c6d (bug 1843154)
Backed out changeset 7632f7c7a5d4 (bug 1843155)
Backed out changeset 5451d5695bae (bug 1843152)
2023-08-18 18:30:43 +03:00
Abhishek Madan
c683a67c2d Bug 1843155 - Added secondary partition key to blob urls. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D184158
2023-08-18 14:11:59 +00:00
Manuel Bucher
343e8460a2 Bug 1842754 - Make LoadInfoArgs non-optional over IPC r=necko-reviewers,jesup
This makes all occurences of LoadInfoArgs non-optional also when
converting between nsILoadInfo in BackgroundUtils.h.

Differential Revision: https://phabricator.services.mozilla.com/D185299
2023-08-11 13:45:25 +00:00
Natalia Csoregi
b88c4e3622 Backed out changeset 3c585e66b44b (bug 1842754) for causing Bug 1847904. CLOSED TREE 2023-08-09 19:35:08 +03:00
Manuel Bucher
96664d7002 Bug 1842754 - Make LoadInfoArgs non-optional over IPC r=necko-reviewers,jesup
This makes all occurences of LoadInfoArgs non-optional also when
converting between nsILoadInfo in BackgroundUtils.h.

Differential Revision: https://phabricator.services.mozilla.com/D185299
2023-08-08 14:37:19 +00:00
Iulian Moraru
dd937e5fb4 Backed out changeset 05857d2111ba (bug 1842754) for causing build bustages on BackgroundUtils.cpp. CLOSED TREE 2023-08-08 13:51:28 +03:00
Manuel Bucher
7659336790 Bug 1842754 - Make LoadInfoArgs non-optional over IPC r=necko-reviewers,jesup
This makes all occurences of LoadInfoArgs non-optional also when
converting between nsILoadInfo in BackgroundUtils.h.

Differential Revision: https://phabricator.services.mozilla.com/D185299
2023-08-08 10:25:04 +00:00
Peter Van der Beken
9ec5838ef5 Bug 1843968 - Hold some strong references. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D184803
2023-08-01 12:09:36 +00:00
Christian Holler (:decoder)
09fe1c39f5 Bug 1838599 - Add fuzzing DROP_PEER event to ContentParent::ActorDestroy. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D181056
2023-07-31 20:36:30 +00:00
Benjamin VanderSloot
917457ab80 Bug 1805860 - Remove navigator.permissions.revoke dead code - r=anti-tracking-reviewers,ipc-reviewers,webidl,saschanaz,mccr8,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D182242
2023-07-19 14:51:11 +00:00
Stanca Serban
bffab85c7f Backed out 8 changesets (bug 1805860, bug 1733556) for causing bp-nu bustages in StorageAccessAPIHelper.cpp.
Backed out changeset fa21a55ce837 (bug 1733556)
Backed out changeset 6c09379cdb5a (bug 1733556)
Backed out changeset d8c19265b981 (bug 1733556)
Backed out changeset d48d415fca83 (bug 1805860)
Backed out changeset 3acd0ba1dba6 (bug 1805860)
Backed out changeset d2a6174bbb14 (bug 1805860)
Backed out changeset 48558ba49efe (bug 1805860)
Backed out changeset c8693b9449d3 (bug 1805860)
2023-07-18 23:39:08 +03:00
Benjamin VanderSloot
38dd0cf00b Bug 1805860 - Remove navigator.permissions.revoke dead code - r=anti-tracking-reviewers,ipc-reviewers,webidl,saschanaz,mccr8,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D182242
2023-07-18 19:14:30 +00:00
kriswright
723fdf658f Bug 1834629 - Set main thread QoS Priority from another thread. r=mccr8
This bug uses the existing process hang messaging infrastructure to raise priorities on main threads. To ensure reduced latency, we also increase the priority of ProcessHangMon threads. We also address an edge-case bug where flipping the QoS prefs during use might lead to a tab getting stuck at the wrong priority.

Due to increasing the priority of the hang monitor thread, we may see some increase in its utilization on MacOS during high CPU load. I'm not sure the extent of how this may impact the browser, but as it makes the thread "faster" it may be more responsive than some other threads during this case.

I tested thread responsiveness by using the stress tool and dispatching various numbers of worker threads, up to 250. During these tests, even when other parts of firefox were less responsive under stress, tab switching appeared to remain snappy and responsive.

I captured some updated power profiles using the change. Profile where pref flipped off during use: https://share.firefox.dev/46BksO3 (Note that we start with the prefs on, then we flip off the prefs half way and repeat the same behavior to observe the fix to the previous bug that left tabs trapped in the background)

Profile with the pref fully enabled: https://share.firefox.dev/46EBIC7

In regards to the edge case, to avoid spurious tab wakeups, we won't reinstate normal thread priority when pref is disabled until the tab is interacted with again.

Differential Revision: https://phabricator.services.mozilla.com/D182787
2023-07-14 16:13:00 +00:00
Narcis Beleuzu
fe96438669 Backed out changeset 70e3969301b9 (bug 1834629) for bustages on ProcessHangMonitor.cpp . CLOSED TREE 2023-07-13 21:00:46 +03:00
kriswright
84e006b1b5 Bug 1834629 - Set main thread QoS Priority from another thread. r=mccr8
This bug uses the existing process hang messaging infrastructure to raise priorities on main threads. To ensure reduced latency, we also increase the priority of ProcessHangMon threads. We also address an edge-case bug where flipping the QoS prefs during use might lead to a tab getting stuck at the wrong priority.

Due to increasing the priority of the hang monitor thread, we may see some increase in its utilization on MacOS during high CPU load. I'm not sure the extent of how this may impact the browser, but as it makes the thread "faster" it may be more responsive than some other threads during this case.

I tested thread responsiveness by using the stress tool and dispatching various numbers of worker threads, up to 250. During these tests, even when other parts of firefox were less responsive under stress, tab switching appeared to remain snappy and responsive.

I captured some updated power profiles using the change. Profile where pref flipped off during use: https://share.firefox.dev/46BksO3 (Note that we start with the prefs on, then we flip off the prefs half way and repeat the same behavior to observe the fix to the previous bug that left tabs trapped in the background)

Profile with the pref fully enabled: https://share.firefox.dev/46EBIC7

In regards to the edge case, to avoid spurious tab wakeups, we won't reinstate normal thread priority when pref is disabled until the tab is interacted with again.

Differential Revision: https://phabricator.services.mozilla.com/D182787
2023-07-13 15:44:03 +00:00
Valentin Gosu
32601d937a Bug 1782561 - Make sure we can evict cookies while processing AddCookie r=necko-reviewers,cookie-reviewers,jesup,edgul
Differential Revision: https://phabricator.services.mozilla.com/D181744
2023-07-06 13:34:55 +00:00
Peter Van der Beken
4314c23bc3 Bug 1522052 - remove nsIDOMChromeWindow. r=dom-core,webdriver-reviewers,devtools-reviewers,whimboo,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D34310
2023-06-23 14:21:05 +00:00
Benjamin VanderSloot
d315a39317 Bug 1836792, part 4 - Move RequestStorageAccess to frame-only permission - r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D180218
2023-06-23 12:14:18 +00:00
Jens Stutte
1ef3406daa Bug 1838779 - Overhaul the thread safety and synchronization of our keepalive checks. r=dom-worker-reviewers,asuth,smaug
Differential Revision: https://phabricator.services.mozilla.com/D180958
2023-06-21 16:47:08 +00:00
Cristina Horotan
86fccc888b Backed out changeset 81e6aadf9911 (bug 1838779) for causing build bustage at ContentParent.cpp 2023-06-21 18:57:32 +03:00
Jens Stutte
ee69996ea3 Bug 1838779 - Overhaul the thread safety and synchronization of our keepalive checks. r=dom-worker-reviewers,asuth,smaug
Differential Revision: https://phabricator.services.mozilla.com/D180958
2023-06-21 14:59:10 +00:00
Narcis Beleuzu
cc8fdcbbd3 Backed out changeset cc655f99b353 (bug 1838779) for bc failure on RecursiveMutex.cpp 2023-06-21 14:14:59 +03:00
Jens Stutte
f5d9db1869 Bug 1838779 - Overhaul the thread safety and synchronization of our keepalive checks. r=dom-worker-reviewers,asuth,smaug
Differential Revision: https://phabricator.services.mozilla.com/D180958
2023-06-21 09:17:18 +00:00
James Teh
fdca51c6f2 Bug 1570560: Remove message and disabling of content accessibility for very old JAWS versions. r=nlapre
Differential Revision: https://phabricator.services.mozilla.com/D180778
2023-06-19 04:24:08 +00:00
Jens Stutte
0598b763ca Bug 1837467 - StartForceKillTimer only after SendShutdown has been called. r=smaug
The parent process might be busy such that the time that passes between NotifyTabDestroying and ShutdownProcess can become significant in terms of activating the ShutdownKill timer too early. In order to avoid this, we will start the timer only after we actually sent the shutdown message.

To cover the time that passes between NotifyTabDestroying (right after sending a delete to the Browser actor) and the effective NotifyTabDestroyed (in response to the Browser actor destroy roundtrip through the content process), we add a second timer that triggers the sending of the shutdown message.

Differential Revision: https://phabricator.services.mozilla.com/D180959
2023-06-16 12:55:37 +00:00