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
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
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
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
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
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
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
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
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
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
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
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