The purpose of this is to allow using setHTML(text), without specifiying the sanitizer and thus always getting
the default sanitizer policy.
Differential Revision: https://phabricator.services.mozilla.com/D164677
All implementors currently simply resolve the promise right away, using
crutch code. Asynchronous usage will be added in the changeset that follows.
Differential Revision: https://phabricator.services.mozilla.com/D163508
Previously, we notified the listeners with a done event when `RemotePrintJobChild`
reported done, even if there is work left on the parent side.
Differential Revision: https://phabricator.services.mozilla.com/D163507
Compared to other platforms, on "printing" PDF files, Windows writes straight
to the destination path. This causes the mainthread to become less responsive
if the path is slow (e.g. Network drive over VPN).
This still causes a mainthread block at the time the file is moved, but:
- Brings Windows' behaviour in line with other platforms
- Avoids `PrintTargetPDF` becoming async, which is less meaningful on
other platforms
- Reduces the async site to one (i.e. moving to destination path)
Differential Revision: https://phabricator.services.mozilla.com/D163506
This pool runs the 'index' and 'eager-index' tasks. It is not actually a part
of any graph and doesn't show up on Treeherder.
Differential Revision: https://phabricator.services.mozilla.com/D164941
While debugging https://bugzilla.mozilla.org/show_bug.cgi?id=1805989 I noticed this seemingly unnecessary fallback branch in one of the scriptworker helpers. It appears to me that we can drop the second and third branches there, and let everything not in the first branch get handled by get_signing_cert_scope instead.
That function ultimately has its own fallback for things without explicit matches, which applies the same default as the current third branch.
I ran this through tgdiff on try, which found no changes to any tasks for any set of parameters
Differential Revision: https://phabricator.services.mozilla.com/D165022
This adds a debug indicator controlled by the pref gfx.canvas.accelerated.debug.
A green square is drawn in the upper right corner of the canvas to let us know if
acceleration is being used or not.
Differential Revision: https://phabricator.services.mozilla.com/D165018
Finally, this creates a vector of ModuleRequestObjects at the start of
StencilModuleMetadata::initModule so we can use the index from the stencil data
to get the right one.
Differential Revision: https://phabricator.services.mozilla.com/D164917
This moves the module specifier and assertion information out of
StencilModuleEntry into a new StencilModuleRequest structure. These are
referred to by (optional) index into a vector of all requests for that mode. We
only create one request per statement.
Differential Revision: https://phabricator.services.mozilla.com/D164916
For local exports there is no module specifier (and no assertions) present so
there's no need to create an object for them. The module request is never
accessed for local exports, except in test code.
Differential Revision: https://phabricator.services.mozilla.com/D164915
Not related to the rest of the bug. This is a simplification so that we set the
supported import assertions once rather than querying the host every time they
are needed.
Differential Revision: https://phabricator.services.mozilla.com/D164914
This patch adds a new function setDomainPrefAndPersistInPrivateBrowsing()
to nsICookieBannerService. This function allows persisting domain pref
in the private browsing mode.
Differential Revision: https://phabricator.services.mozilla.com/D164797
They fail on win7 only with my patch for bug 1805694 (tried win 10 with
and without native menus and nothing, sigh) and I need to debug them.
Let's do this while at it, this makes the test run on macOS and Linux
too, since browser_selectpopup is sadly disabled on those platforms.
Differential Revision: https://phabricator.services.mozilla.com/D164951
Add support for the contentvisibilityautostatechange and fire it when
the relevancy of `content-visibility: auto` elements change.
This commit also makes some changes to the
content-visibility-auto-state-changed.html test. Two more subtests are
added which verifies that an event is sent after `content-visibility:
auto` is applied to an element. Finally the `top` element is renamed to
`upper` as `top` can also refer to the top-level Window and it seems
that Gecko has a different precedence when accessing variables in
script.
Differential Revision: https://phabricator.services.mozilla.com/D161140
Make Places views constructors arguments more coherent, passing the root
and view elements up to the super class explicitly.
Remove the options argument, that was not strictly necessary, the same info can
be obtained directly.
Rename the "builder" attribute to "afterplacescontent" to clarify what it is
and make panel use it, instead of passing an insertionPoint option.
Additional cleanups:
Make chevron and BMB menus use coherent popupshowing observers.
Remove useless .viewElt accessor, .associatedElement can be used instead.
Avoid an access to the private _rootElt property from the controller.
Differential Revision: https://phabricator.services.mozilla.com/D164827
It looks like hostname is sometimes undefined, which triggers a Fluent error.
The HOST_NAME is determined from location.href,
and falls back to an empty string value about which Fluent is much happier.
Differential Revision: https://phabricator.services.mozilla.com/D164538
This utility script for l10n migrations was added six years ago in bug 1294186,
but is no longer necessary or used. For clarity, it should be removed.
Differential Revision: https://phabricator.services.mozilla.com/D164049
Note, changes to the delayed-result codepath are not required because
touched prevented by touch-action always get an eager HandledByContent
result.
Differential Revision: https://phabricator.services.mozilla.com/D164586
APZ now ensures that GetHandledResult() is Unhandled when appropriate,
so the widget code doesn't need to special-case eIgnore any more.
Differential Revision: https://phabricator.services.mozilla.com/D164585