This method only is async in order to allow callers to wait for a process switch
triggered by the call to `loadURI` to be finished before resolving. With
DocumentChannel, we should never trigger a process switch eagerly like this
again, so we don't need any of the async behaviour here anymore.
This part is largely mechanical changes to tests, removing the `await` calls on
`loadURI`, and a follow-up part will remove the actual async logic from
`BrowserTestUtils.loadURI`.
Differential Revision: https://phabricator.services.mozilla.com/D94641
This allows to use the feature from the context menu and is very
straight-forward.
This has the benefit of working with fission (as print from the focused
frame) and so on.
Making a checkbox on the UI on top of this is doable, but it is a lot
more complex (requires a bunch of both front-end and platform work)
because undoing this implies restoring the DOM which "print selection"
removes.
I think the context menu entry is very useful regardless of whether we
add a checkbox to undo it, and other browsers (with smaller context
menus) seem to agree.
Differential Revision: https://phabricator.services.mozilla.com/D92205
This also moves gInitialised into SearchService, as it no longer needs to be separate, and it makes changing it for tests easier.
Depends on D88462
Differential Revision: https://phabricator.services.mozilla.com/D88622
This changes both the spellchecker parent code that interfaces with the
InlineSpellCheckerParent actor, and the child code interfacing with the
ContextMenuChild actor, to ensure they get notified when either actor
goes away.
It maintains the "uninit" messages to clear out spellcheck data when the
context menu goes away (while the window / actors remain intact).
It also adds some belts-and-suspenders type checks that allow us to
recover if we ever get in a bad state again, instead of stubbornly
throwing exceptions and breaking the UI for users.
Differential Revision: https://phabricator.services.mozilla.com/D75228
This changes both the spellchecker parent code that interfaces with the
InlineSpellCheckerParent actor, and the child code interfacing with the
ContextMenuChild actor, to ensure they get notified when either actor
goes away.
It maintains the "uninit" messages to clear out spellcheck data when the
context menu goes away (while the window / actors remain intact).
It also adds some belts-and-suspenders type checks that allow us to
recover if we ever get in a bad state again, instead of stubbornly
throwing exceptions and breaking the UI for users.
Differential Revision: https://phabricator.services.mozilla.com/D75228
Two cases have been tested:
1. Loading a blob URL, which points to a blob of type text
2. Loading a blob URL, which points to a blob of type html, which fetches another blob URL
Depends on D71889
Differential Revision: https://phabricator.services.mozilla.com/D72026
BrowserTestUtils.browserLoaded() sometimes resolves too early (already at `about:blank`) when used without explicit URL as 'wantLoad'.
The tests were added as a part of Bug 1626573.
Differential Revision: https://phabricator.services.mozilla.com/D71887
Two cases have been tested:
1. Right-click opening a blob URL
2. Right-click opening a blob URL, which points to a blob of type html, which fetches another blob URL
Depends on D69717
# Conflicts:
# browser/base/content/test/contextMenu/browser.ini
Differential Revision: https://phabricator.services.mozilla.com/D70197
This fixes the user-facing issue. This skips the "open in window" and "open in
tab" tests because they're broken due to bug 1626573.
Differential Revision: https://phabricator.services.mozilla.com/D70937
--HG--
rename : browser/base/content/test/contextMenu/browser_canvas_view_image.js => browser/base/content/test/contextMenu/browser_view_image.js
extra : moz-landing-system : lando
Two cases have been tested:
1. Right-click opening a blob URL
2. Right-click opening a blob URL, which points to a blob of type html, which fetches another blob URL
Depends on D69717
Differential Revision: https://phabricator.services.mozilla.com/D70197
--HG--
extra : moz-landing-system : lando
Two cases have been tested:
1. Right-click opening a blob URL
2. Right-click opening a blob URL, which points to a blob of type html, which fetches another blob URL
Differential Revision: https://phabricator.services.mozilla.com/D70197
--HG--
extra : moz-landing-system : lando
Given that the "View Background Image" option never makes sense in the PDF Viewer, it's simply always removed from the context menu.
Differential Revision: https://phabricator.services.mozilla.com/D52599
--HG--
extra : moz-landing-system : lando