Commit Graph

9556 Commits

Author SHA1 Message Date
Gijs Kruitbosch
9e0531a790 Bug 1718082 - move hasSiblings from BrowserChild to BC and update as a synced field, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D171645
2023-03-13 17:32:08 +00:00
Marian-Vasile Laza
ee72efd1e9 Backed out 5 changesets (bug 1809843) for causing Cargo related build bustages. CLOSED TREE
Backed out changeset 5c494680f448 (bug 1809843)
Backed out changeset 02742b38edab (bug 1809843)
Backed out changeset 2b9b32ca8294 (bug 1809843)
Backed out changeset 56631cb02ae6 (bug 1809843)
Backed out changeset 37e35a60a71f (bug 1809843)
2023-03-13 13:53:26 +02:00
Kershaw Chang
a60df34ad0 Bug 1809843 - Skip Failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,valentin,sgalich,robwu
Differential Revision: https://phabricator.services.mozilla.com/D171842
2023-03-13 11:12:33 +00:00
Cristian Tuns
2af0d81d29 Backed out 2 changesets (bug 1810619) for causing wd failures in dom_content_loaded.py CLOSED TREE
Backed out changeset 81d6ef111d4f (bug 1810619)
Backed out changeset 637be53c4d27 (bug 1810619)
2023-03-09 01:22:56 -05:00
Nika Layzell
eece505eef Bug 1810619 - Part 1: Be more precise in named lookup code, r=smaug,geckoview-reviewers,m_kato
This makes various changes to the named lookup/navigation code to make
them more precise, and avoid issues which could happen if a window is
closed while script is still executing.

This also should improve handling for inactive windows in some cases, by
more frequently working off of the WindowContext tree rather than the
BrowsingContext tree.

As part of these changes, some behaviour was changed around e.g. the
file URI exception to avoid the deprecated nsIPrincipal::GetURI method.
I don't believe the behaviour should have changed in a meaningful way.

Differential Revision: https://phabricator.services.mozilla.com/D171755
2023-03-08 21:09:20 +00:00
Jan de Mooij
0170c352a5 Bug 1820136 - Use moz_set_max_dirty_page_modifier and jemalloc_free_dirty_pages for the JS shell to match the browser. r=smaug,jonco
This matches the behavior for foreground content processes since bug 1815069.

Also adds a testing function for fuzzing and performance testing.

Differential Revision: https://phabricator.services.mozilla.com/D171561
2023-03-07 14:38:16 +00:00
Florian Quèze
ebc5b01060 Bug 1817297 - Stop sending PreferenceUpdate IPC messages for sanitized preferences, r=florian,KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D170115
2023-03-06 15:21:36 +00:00
Sean Feng
5ad9ff01bc Bug 1814478 - Add JSON parsing to JS Validator r=farre,smaug,tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D166946
2023-03-02 17:55:31 +00:00
Olli Pettay
ce523d51f9 Bug 1815069, add dom.memory.foreground_content_processes_have_larger_page_cache pref to control page cache behavior in content processes, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D168963
2023-03-02 09:15:58 +00:00
Olli Pettay
00fff96cac Bug 1815069 - Increase page caches on foreground content processes, r=pbone
Differential Revision: https://phabricator.services.mozilla.com/D168901
2023-03-02 09:15:58 +00:00
Henrik Skupin
ef28dd4b25 Bug 1787718 - [dom] Add process id to shutdown diagnostic log output. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D156114
2023-03-01 12:39:29 +00:00
Sean Feng
81c8e77c0d Bug 1809518 - Use stencil parsing to do the Javascript check for ORB in Utility Process r=farre,smaug,tcampbell
This patch allows JS Validator to parse the incoming data into
stencil to verify if its a Javascript file.

Differential Revision: https://phabricator.services.mozilla.com/D166484
2023-02-28 19:46:09 +00:00
Sean Feng
4d890942b8 Bug 1809518 - Recreate JSOracleParent instance when Utility Process crashes r=farre
Top-level actor can only be bound to one process, we can't reuse the
existing one to bind to a different process.

So if the utility process crashes and we've created a new one as a
replacement, we need to have a new JSOracleParent for the connection,
using the old one won't work.

This patch creates a new one upon the destruction of the existing one
if the reason for the destruction is AbnormalShutdown.

Differential Revision: https://phabricator.services.mozilla.com/D168482
2023-02-28 19:46:08 +00:00
Marian-Vasile Laza
c39ea4a713 Backed out 15 changesets (bug 1809518) for wpt failures on navigation-headers.https.html.
Backed out changeset d245efcf2257 (bug 1809518)
Backed out changeset 3f29ad282371 (bug 1809518)
Backed out changeset 8f77fb0ddfef (bug 1809518)
Backed out changeset b1f9dcd5f147 (bug 1809518)
Backed out changeset eda8f3ef3fdb (bug 1809518)
Backed out changeset 85f4c2ca24e0 (bug 1809518)
Backed out changeset 92b774c122c9 (bug 1809518)
Backed out changeset b6e6065c79ff (bug 1809518)
Backed out changeset 724a5c7bba6a (bug 1809518)
Backed out changeset 224ccbc28c49 (bug 1809518)
Backed out changeset cc88d68be920 (bug 1809518)
Backed out changeset c02d3f25c880 (bug 1809518)
Backed out changeset 597cb423049d (bug 1809518)
Backed out changeset ae56071e154f (bug 1809518)
Backed out changeset 563403090c7f (bug 1809518)
2023-02-28 20:42:23 +02:00
Sean Feng
917bdb5fa0 Bug 1809518 - Use stencil parsing to do the Javascript check for ORB in Utility Process r=farre,smaug,tcampbell
This patch allows JS Validator to parse the incoming data into
stencil to verify if its a Javascript file.

Differential Revision: https://phabricator.services.mozilla.com/D166484
2023-02-28 15:28:02 +00:00
Sean Feng
5bcfdba252 Bug 1809518 - Recreate JSOracleParent instance when Utility Process crashes r=farre
Top-level actor can only be bound to one process, we can't reuse the
existing one to bind to a different process.

So if the utility process crashes and we've created a new one as a
replacement, we need to have a new JSOracleParent for the connection,
using the old one won't work.

This patch creates a new one upon the destruction of the existing one
if the reason for the destruction is AbnormalShutdown.

Differential Revision: https://phabricator.services.mozilla.com/D168482
2023-02-28 15:28:01 +00:00
Jed Davis
3219af97cc 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
43c5854833 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
1015aea40b 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
Fred Chasen
42c8df00ac Bug 1793220 - Use at-page size rule as paper size when printing to PDF r=dholbert,AlaskanEmily
Adds a usePageRuleSizeAsPaperSize setting to allow overriding the default paper size when printing to a PDF file.

Print preview now checks for at-page size rules and when enabled will use that size for the previewed sheet of paper.

The preview will also return the page width and height (in inches) during its callback for the frontend to use to override the default paper settings.

Differential Revision: https://phabricator.services.mozilla.com/D160303
2023-02-27 20:22:18 +00:00
Jan Varga
aefca7371a Bug 1818871 - Fix non-unified-build bustage in dom/ipc/ContentProcess.cpp; r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D170993
2023-02-27 08:52:52 +00:00
Bob Owen
05ceae5c85 Bug 1772089 p1: Remove SetUpSandboxEnvironment from mozilla::dom::ContentProcess. r=handyman
This removes includes that were no longer needed on macOS as well.

Differential Revision: https://phabricator.services.mozilla.com/D168591
2023-02-24 08:44:40 +00:00
Emilio Cobos Álvarez
ddfb394572 Bug 1818500 - Fix serialization of nsIFilePicker::Mode. r=ipc-reviewers,mccr8 a=RyanVM
modeOpenMultiple is the last variant, this reproduces clicking on:

  data:text/html,<input type=file multiple>

Differential Revision: https://phabricator.services.mozilla.com/D170756
2023-02-23 14:33:57 +00:00
Csoregi Natalia
47428da2d3 Backed out 8 changesets (bug 1809518) for causing fetch related failures. CLOSED TREE
Backed out changeset b448bddfa364 (bug 1809518)
Backed out changeset ce3a811a4522 (bug 1809518)
Backed out changeset f5add471e7f9 (bug 1809518)
Backed out changeset d2e6d1734eec (bug 1809518)
Backed out changeset 2299a5bdc7a9 (bug 1809518)
Backed out changeset 3eb92dc5aac9 (bug 1809518)
Backed out changeset 3061e4fbf237 (bug 1809518)
Backed out changeset 678468cb98cd (bug 1809518)
2023-02-23 04:33:37 +02:00
Ray Kraesig
771bdc853e Bug 1816740 [6/6] - remove ManualDealloc from ColorPicker and FilePicker r=ipc-reviewers,nika
The existing manual-deallocation code isn't actually doing anything
interesting. Strip it out.

(No functional changes.)

Differential Revision: https://phabricator.services.mozilla.com/D169855
2023-02-22 21:05:25 +00:00
Ray Kraesig
7b51dc72b7 Bug 1816740 [5/6] - convert nsIFilePicker::capture* to a proper enum r=ipc-reviewers,karlt,mstange,handyman,nika
Convert the various capture* constants in nsIFilePicker into a proper
enum, and perform validation when passing it across IPC.

Additionally, unlike the previous two enums, reduce the size of
CaptureTarget to 8 bits. This is a workaround for its use with
nsAttrValue, which at present very specifically requires that parseable
enums' values fit within an `int16_t` -- and a `uint16_t` does not.

Differential Revision: https://phabricator.services.mozilla.com/D169854
2023-02-22 21:05:24 +00:00
Ray Kraesig
fa4832237d Bug 1816740 [4/6] - convert nsIFilePicker::mode* into a proper enum r=ipc-reviewers,karlt,mstange,handyman,nika
Convert the various mode* constants in nsIFilePicker into a proper
enum, and perform validation when passing it across IPC.

Differential Revision: https://phabricator.services.mozilla.com/D169853
2023-02-22 21:05:24 +00:00
Ray Kraesig
8ff42fa236 Bug 1816740 [3/6] - convert nsIFilePicker::result* into a proper enum r=ipc-reviewers,karlt,mstange,handyman,nika
Convert the various result* constants in nsIFilePicker into a proper
enum, and perform validation when passing it across IPC.

Differential Revision: https://phabricator.services.mozilla.com/D169852
2023-02-22 21:05:23 +00:00
Sean Feng
83a8ef5280 Bug 1809518 - Use stencil parsing to do the Javascript check for ORB in Utility Process r=farre,smaug,tcampbell
This patch allows JS Validator to parse the incoming data into
stencil to verify if its a Javascript file.

Differential Revision: https://phabricator.services.mozilla.com/D166484
2023-02-22 20:17:00 +00:00
Sean Feng
df188aa2f6 Bug 1809518 - Recreate JSOracleParent instance when Utility Process crashes r=farre
Top-level actor can only be bound to one process, we can't reuse the
existing one to bind to a different process.

So if the utility process crashes and we've created a new one as a
replacement, we need to have a new JSOracleParent for the connection,
using the old one won't work.

This patch creates a new one upon the destruction of the existing one
if the reason for the destruction is AbnormalShutdown.

Differential Revision: https://phabricator.services.mozilla.com/D168482
2023-02-22 20:17:00 +00:00
Cristian Tuns
ef9fa152c1 Backed out 8 changesets (bug 1809518) for causing build bustages on JSOracleChild.h CLOSED TREE
Backed out changeset 1057c5d5a0a5 (bug 1809518)
Backed out changeset 1ddffd079624 (bug 1809518)
Backed out changeset 3f43f1cd3e8b (bug 1809518)
Backed out changeset 16bd31105745 (bug 1809518)
Backed out changeset d86c04497104 (bug 1809518)
Backed out changeset 25a5bf657f5c (bug 1809518)
Backed out changeset bf67b8c14aa0 (bug 1809518)
Backed out changeset 5cc0653b2072 (bug 1809518)
2023-02-22 12:20:40 -05:00
Sean Feng
561a15fdc2 Bug 1809518 - Use stencil parsing to do the Javascript check for ORB in Utility Process r=farre,smaug,tcampbell
This patch allows JS Validator to parse the incoming data into
stencil to verify if its a Javascript file.

Differential Revision: https://phabricator.services.mozilla.com/D166484
2023-02-22 14:07:46 +00:00
Sean Feng
709890985d Bug 1809518 - Recreate JSOracleParent instance when Utility Process crashes r=farre
Top-level actor can only be bound to one process, we can't reuse the
existing one to bind to a different process.

So if the utility process crashes and we've created a new one as a
replacement, we need to have a new JSOracleParent for the connection,
using the old one won't work.

This patch creates a new one upon the destruction of the existing one
if the reason for the destruction is AbnormalShutdown.

Differential Revision: https://phabricator.services.mozilla.com/D168482
2023-02-22 14:07:45 +00:00
Christian Holler (:decoder)
93336d3327 Bug 1817393 - Fix missing null check in RecvGetSystemIcon. r=nika
Depends on D170184

Differential Revision: https://phabricator.services.mozilla.com/D170185
2023-02-20 13:56:53 +00:00
Christian Holler (:decoder)
843be769fb Bug 1817394 - Fix missing null check in RecvSetAllowStorageAccessRequestFlag. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D170184
2023-02-20 13:56:52 +00:00
edgul
63fa842543 Bug 1783536 - Prevent document.cookie de-sync from cookie jar when setting secure cookies. r=dveditz,necko-reviewers
Secure cookie names are now sent to insecure-origin content processes so they are
able to prevent cookie setting when there is a pre-existing secure cookie
on another process. This will prevent each content process document.cookie from
getting de-synchronized from the cookie jar.

Differential Revision: https://phabricator.services.mozilla.com/D157537
2023-02-17 22:15:17 +00:00
Edgar Chen
3d5bc9089c Bug 1817166 - Remove unused argument from nsContentUtils::TransferableToIPCTransferable; r=nika
After Bug 1781129, aChild is no longer needed to allocate Shmem, but aParent is
still needed to grant access for file in https://searchfox.org/mozilla-central/rev/b579290e6b830d1b3f0a941203b0c0e1e56c42a3/dom/base/nsContentUtils.cpp#8171-8182.

Differential Revision: https://phabricator.services.mozilla.com/D170063
2023-02-16 16:56:53 +00:00
Andreas Farre
e235fbcc4f Bug 1812051 - Add telemetry to count if ORB is ever used. r=smaug,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D169417
2023-02-16 10:07:01 +00:00
serge-sans-paille
ff0b61935e Bug 1815664 - Fix DocShellLoadStateInit padding r=necko-reviewers,valentin
This saves 40 padding bytes.

Differential Revision: https://phabricator.services.mozilla.com/D169187
2023-02-15 17:50:26 +00:00
Christian Holler
07ea03f4bb Bug 1816687 - Add missing null check to ContentParent::RecvRaiseWindow. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D169811
2023-02-15 16:11:49 +00:00
Iulian Moraru
9ac50220c9 Backed out 6 changesets (bug 1815667, bug 1815755, bug 1815664, bug 1815757, bug 1815758, bug 1815666) for causing build bustages on StaticComponents.cpp. CLOSED TREE
Backed out changeset 77e6a4a85bf9 (bug 1815758)
Backed out changeset 177e47b3c2b6 (bug 1815757)
Backed out changeset 0965e3256adf (bug 1815755)
Backed out changeset dff2ba4fce6f (bug 1815667)
Backed out changeset 7db93be29952 (bug 1815666)
Backed out changeset 469d307fbc21 (bug 1815664)
2023-02-15 16:39:41 +02:00
serge-sans-paille
dce18b6ca6 Bug 1815664 - Fix DocShellLoadStateInit padding r=necko-reviewers,valentin
This saves 40 padding bytes.

Differential Revision: https://phabricator.services.mozilla.com/D169187
2023-02-15 14:08:35 +00:00
Olli Pettay
17ac0e7f9d Bug 1815985 - Consider to increase the priority of the return value of IsOpaqueResponseAllowed(), r=sefeng
Differential Revision: https://phabricator.services.mozilla.com/D169381
2023-02-14 01:29:03 +00:00
Edgar Chen
60b2a99aab Bug 1809122 - Track top-level window context in DragSession; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D169121
2023-02-13 18:44:04 +00:00
Jens Stutte
ca9b3467ae Bug 1814603 - Check host process for IsShuttingDown before re-use. r=smaug
Depends on D168995

Differential Revision: https://phabricator.services.mozilla.com/D169068
2023-02-07 18:07:19 +00:00
Jens Stutte
003efc7f75 Bug 1814603 - ContentParent::IsShuttingDown must ignore launching processes. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D168988
2023-02-07 18:07:18 +00:00
Artur Iunusov
e62ca4e480 Bug 1711740 - Consider interrupting JS to unload layers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D167026
2023-02-04 19:07:55 +00:00
Simon Friedberger
64526ee2d8 Bug 1810790 - Remove Origin Telemetry. r=chutten,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D167779
2023-02-04 18:42:16 +00:00
Nika Layzell
1cbf30fe37 Bug 1812156 - Part 1: Fix some IPDL statements to use fully qualified names, r=necko-reviewers,valentin
These types were used in IPDL but were not fully qualified.

Differential Revision: https://phabricator.services.mozilla.com/D168877
2023-02-04 10:44:24 +00:00
Emilio Cobos Álvarez
105ff8643f Bug 1813593 - Dump use counters with dom.use_counters.dump.{document,worker,page}. r=smaug,zcorpan
The idea is that dumping the counter with the url all the time prevents
(or at least mitigates) races between different process.

This should allow to get the counters from local builds in a
semi-structured / easy to filter-and-parse way.

Differential Revision: https://phabricator.services.mozilla.com/D168469
2023-02-02 12:51:23 +00:00