Commit Graph

765789 Commits

Author SHA1 Message Date
alwu
eb11267218 Bug 1723799 - part1 : collect height for visible video playtime. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D121680
2021-08-09 19:30:11 +00:00
Alex Lopez
cf03d5329e Bug 1696251: Replace usages of self with command_context in compare-locales mach commands. r=mhentges
The patch that made the replacement across all commands
missed this particular file.

Differential Revision: https://phabricator.services.mozilla.com/D121917
2021-08-09 19:29:08 +00:00
Gijs Kruitbosch
3ea01443f0 Bug 1718435 - follow-up: clean up callsite of clear recent history window that passes nsISupports-y arguments, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D122120
2021-08-09 19:26:18 +00:00
Lee Salzman
b164800498 Bug 1711553 - Avoid use of GetRecommendedRenderingMode in Skia. r=jrmuizel
This attempts to emulate the behavior of GetRecommendedRenderingMode without
actually calling it. In addition, it allows some Gecko-specific behavior
like overriding the render mode explicitly that allows some simplification
of the decision-making.

Inside GetRecommendedRenderingMode, natural is only allowed if <= 20 size.
This allows us to thus decide mostly based on whether the size is > 20 or
if an explicit mode was specified. In the remaining case where we need
to check a GASP table if available, we defer to the symmetric flag. If
there is no GASP, we assume natural.

Differential Revision: https://phabricator.services.mozilla.com/D122025
2021-08-09 19:16:16 +00:00
Daniel Holbert
08a4c64683 Bug 1707964: Use GetCrossDocParentFrameInProcess() in ViewportFrame. r=mattwoodrow
This patch doesn't change behavior. The "InProcess" version of this API (which
we're migrating to in this patch) is used to annotate GetCrossDocParentFrame()
callsites that have been vetted as being OK with the fact that this API returns
null at the boundary of a cross-origin iframe, if fission is enabled.

The call that's being migrated here is about propagating the NS_FRAME_IN_POPUP
state-bit into subframes that are nested inside of a popup. This bit is used to
detect cases where the display root frame is different from the document frame.
We don't need to propagate the bit across process boundaries, because the child
process will have its own display root frame, distinct from that of the parent
process. So we're OK to use the "InProcess" version of the API here.

Differential Revision: https://phabricator.services.mozilla.com/D113546
2021-08-09 19:12:13 +00:00
Harry Twyford
5c77665322 Bug 1721585 - Show tooltip for both reader-mode-button and reader-mode-button-icon. r=jaws
The bug was that the tooltip was only being shown for reader-mode-button-icon. The tooltip would show if you hovered right over the icon, and it would be undefined otherwise. This patch shows the tooltip regardless of the hover target. The other items on nodeToTooltipMap and nodeToShortcutMap are toolbarbuttons, so their icons are added in CSS and event handling always sees the parent node as the hover target. The reader mode button icon, however, is an <image> child of its parent. Either it or its parent could be hover targets. I considered added some handling in GetDynamicShortcutTooltipText along the lines of checking node.closest(reader-mode-button). I settled on just adding more entries to nodeToTooltipMap and nodeToShortcutMap since it's safer and easier to uplift.

Differential Revision: https://phabricator.services.mozilla.com/D122126
2021-08-09 19:08:33 +00:00
Luca Greco
0e80e53717 Bug 1724061 - Make ServiceWorkerManager::PropagateUnregister to return earlier with an error if mActor is not set. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D121771
2021-08-09 19:05:59 +00:00
Tim Huang
0fec57c05d Bug 1720295 - Part 2: Add tests for console message of disallowing relaxing default policy. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D121700
2021-08-09 19:02:24 +00:00
Tim Huang
c72ae9d8a1 Bug 1720295 - Part 1: Report console message for disallow relaxing default referrer policy. r=ckerschb
This patch adds console message for disallowing relaxing default
referrer policy. The console message will only be reported if less
restricted policy has been set for cross-site requests. And it will use
different messages according to whether the restriction is enabled or
not.

Differential Revision: https://phabricator.services.mozilla.com/D121699
2021-08-09 19:02:23 +00:00
Christoph Walcher
ac5901af5c Bug 1133698 - Implement PKCS8 import/export of ECDSA keys for WebCrypto API. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D97857
2021-08-09 18:59:02 +00:00
Cosmin Sabou
92d70de456 Backed out 4 changesets (bug 1722662) for mochitest plain failures on test_formautofill_preview_highlight.html. CLOSED TREE
Backed out changeset abd8ccf71212 (bug 1722662)
Backed out changeset 1bcfaa7b4b3f (bug 1722662)
Backed out changeset db41a8a3a901 (bug 1722662)
Backed out changeset 72b71bfe6d2c (bug 1722662)
2021-08-09 21:57:09 +03:00
Nan Jiang
db1888a718 Bug 1724076 - Add nimbus exposure event for Firefox Suggest experiments r=adw,andreio
Differential Revision: https://phabricator.services.mozilla.com/D122118
2021-08-09 18:38:10 +00:00
Thomas Wisniewski
832503fa0b Bug 1723950 - Shim more of the stubbed-out Optimizely API in its SmartBlock shim to fix more site breakage; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D122139
2021-08-09 17:58:12 +00:00
Harry Twyford
56b979ba71 Bug 1724320 - Collect Open Graph page data. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D121927
2021-08-09 17:16:29 +00:00
Drew Willcoxon
f4c00a8872 Bug 1724492 - Stop using nsIAutocompleteResult in UrlbarProviderPlaces. r=harry
This will help me fix bug 1723160 by letting me add frecency values to Places
result payloads.

I tried to keep this simple and only do what was necessary to fix the bug. Of
course there's a lot more cleanup we could do, like skip the whole conversion
between match objects and UrlbarResults altogether by only creating
UrlbarResults in the first place, but I didn't want to scope creep into fixing
bug 1717511.

Differential Revision: https://phabricator.services.mozilla.com/D122022
2021-08-09 17:08:47 +00:00
Drew Willcoxon
b65a37077b Bug 1723158 - Allow heuristic result to be experimentally hidden or not present. r=mak
This adds `browser.urlbar.experimental.hideHeuristic`. When true, the heuristic
is hidden in the view except for the search tip heuristic.

This is implemented as part of the larger prototype described in the JIRA ticket
(see the bug for a link) and some Slack conversation. There isn't much of a spec
in that ticket, and I think that's OK because we'd like to iterate on a
prototype and we're not sure yet how exactly the UX should work.

For example, should the heuristic always be hidden or only in certain cases?
This revision always hides it (except search tips), but it's easy to imagine
we'll want to introduce some more sophisticated logic. Or more simply we may
want to always show specific types of heuristics, like omnibox, as this revision
does for search tips.

The implementation works by excluding the heuristic in the view. Each heuristic
provider still creates their heuristics. When the view receives the heuristic,
instead of adding and selecting it, it calls `input.setResultForCurrentValue()`
so that the heuristic is set as the current result. When the user presses enter,
the input checks `experimental.hideHeuristic` and whether the current result is
a heuristic.

Differential Revision: https://phabricator.services.mozilla.com/D121785
2021-08-09 17:07:40 +00:00
Iulian Moraru
01f91c94a7 Backed out 2 changesets (bug 1723536, bug 1723198) for causing xpcshell failures on test_SocketScalars.js. CLOSED TREE
Backed out changeset 16c398716c60 (bug 1723198)
Backed out changeset 47c08d2c33f4 (bug 1723536)
2021-08-09 20:16:59 +03:00
Sebastian Hengst
c136a57852 Merge mozilla-central to autoland. CLOSED TREE 2021-08-09 19:13:59 +02:00
Sebastian Hengst
0ef2383266 Bug 1724583 - restrict fuzzy annotation for 513153-2a.html on Apple Silicon to WebRender. DONTBUILD CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D122130
2021-08-09 16:53:23 +00:00
Sebastian Hengst
4a7ee77930 Bug 1724582 - restrict fuzzy annotation for dynamic-max-width.html on Apple Silicon to WebRender. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D122129
2021-08-09 16:55:58 +00:00
Paul Zuehlcke
2cffa3f5c4 Bug 1724386 - Cache InternalStorageAllowedCheck on inner window. r=timhuang,nika
Differential Revision: https://phabricator.services.mozilla.com/D120833
2021-08-09 16:50:42 +00:00
Mozilla Releng Treescript
a536ab927f Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-08-09 16:20:45 +00:00
Mozilla Releng Treescript
f693a6fd39 No bug - tagging 82f33bb4e9dbcb837a484109a607d28eac7837dd with FIREFOX_NIGHTLY_92_END a=release DONTBUILD CLOSED TREE 2021-08-09 16:20:38 +00:00
Barret Rennie
247bd59b37 Bug 1703356 - Support color-mix() in non-sRGB color spaces r=emilio
Out of gamut colours are currently clipped into sRGB.

Differential Revision: https://phabricator.services.mozilla.com/D120561
2021-08-09 16:16:40 +00:00
Emilio Cobos Álvarez
26e7801dfc Bug 1724719- Ensure IntersectionObserver.observe is O(1), not O(targetCount). r=smaug
And that IntersectionObserver.unobserve is O(targetCount) worst case,
not O(2*targetCount).

Differential Revision: https://phabricator.services.mozilla.com/D122119
2021-08-09 16:10:07 +00:00
Tom Schuster
4e3fc1e1a3 Bug 1722448 - Implement self.reportError(). r=emilio,smaug
This is mostly just copying and adjusting code from `AutoJSAPI::ReportException`.

Differential Revision: https://phabricator.services.mozilla.com/D121070
2021-08-09 16:08:59 +00:00
Mozilla Releng Treescript
4a3c0c8d48 No bug - tagging 03637911a02a3d366a3f66869bbb76c7626a55ee with FIREFOX_BETA_92_BASE a=release DONTBUILD CLOSED TREE 2021-08-09 15:28:48 +00:00
Emilio Cobos Álvarez
b0153153a3 Bug 1722662 - Add tests for autofill rendering. r=hiro
They're not the prettiest, but that's all that needs to happen right now for
autofill to work.

Depends on D122015

Differential Revision: https://phabricator.services.mozilla.com/D122016
2021-08-09 15:28:45 +00:00
Emilio Cobos Álvarez
f60020df95 Bug 1722662 - Load SpecialPowers in reftests. r=jgraham,jmaher
Depends on D122014

Differential Revision: https://phabricator.services.mozilla.com/D122015
2021-08-09 15:28:45 +00:00
Emilio Cobos Álvarez
2bfdca005c Bug 1722662 - Make :-moz-autofill-preview imply :autofill. r=hiro
This is useful so that author rules for :autofill also work for the
autofill preview.

It also makes the UA sheet in forms.css simpler (otherwise we'd need to
tweak the selectors to put :-moz-autofill-preview everywhere we put
:autofill).

Depends on D122013

Differential Revision: https://phabricator.services.mozilla.com/D122014
2021-08-09 15:28:45 +00:00
Emilio Cobos Álvarez
de39b4bb49 Bug 1722662 - Make Element::{Add,Remove}States handle change notifications correctly. r=smaug
The style system uses the changed bits to compute the old state, so if
it's inaccurate it might cause styles to be incorrectly invalidated.

This causes issues because with the next patch the autofill jsm
calls removeManuallyManagedStates(AUTOFILL), then
addManuallyManagedStates(AUTOFILL | AUTOFILL_PREVIEW), and if the input
didn't have AUTOFILL before we'd incorrectly detect it as not changing
with the next patch.

Also make them not virtual anymore since nobody overrides them. An
alternative to this would be to assert that we don't yet have the state
we're adding (or that we have the state we're removing), and handle it
in the callers. But this is a bit more convenient.

Differential Revision: https://phabricator.services.mozilla.com/D122013
2021-08-09 15:28:44 +00:00
Jan de Mooij
29d4bbfc82 Bug 1723715 part 16 - Move WindowProxy to GlobalObjectData. r=jonco
This is done last because it requires reordering the initialization code, and we
can finally do this now.

Differential Revision: https://phabricator.services.mozilla.com/D121996
2021-08-09 15:25:10 +00:00
Jan de Mooij
6bd69b8edd Bug 1723715 part 15 - Move global lexical environment from Realm to GlobalObjectData. r=jonco
This adds a few dereferences to the Baseline Interpreter, but is simpler and should
be faster for C++ accesses. It also simplifies/unblocks the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D121995
2021-08-09 15:25:10 +00:00
Jan de Mooij
5aef55a6d5 Bug 1723715 part 14 - Clean up slot related code a bit. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D121994
2021-08-09 15:25:09 +00:00
Jan de Mooij
6ad790bd22 Bug 1723715 part 13 - Move builtin constructors to GlobalObjectData. r=jonco
This replaces the JS_OFF_THREAD_CONSTRUCTOR MagicValue for off-thread constructors
with the same placeholder object we use for the prototype. These constructors
aren't used by off-thread parsing and handling this another way requires a lot
of complexity. With Stencil work the off-thread global will hopefully be removed
eventually.

Differential Revision: https://phabricator.services.mozilla.com/D121993
2021-08-09 15:25:09 +00:00
Jan de Mooij
12961aecf7 Bug 1723715 part 12 - Move some builtin prototypes to GlobalObjectData. r=jonco
Depends on D121991

Differential Revision: https://phabricator.services.mozilla.com/D121992
2021-08-09 15:25:08 +00:00
Jan de Mooij
e5f32a1e36 Bug 1723715 part 11 - Move eval function to GlobalObjectData. r=jonco
Depends on D121990

Differential Revision: https://phabricator.services.mozilla.com/D121991
2021-08-09 15:25:08 +00:00
Jan de Mooij
fc690c3452 Bug 1723715 part 10 - Move ThrowTypeError to GlobalObjectData. r=jonco
Depends on D121989

Differential Revision: https://phabricator.services.mozilla.com/D121990
2021-08-09 15:25:08 +00:00
Jan de Mooij
2f10bf4c06 Bug 1723715 part 9 - Move array shape to GlobalObjectData. r=jonco
Depends on D121988

Differential Revision: https://phabricator.services.mozilla.com/D121989
2021-08-09 15:25:07 +00:00
Jan de Mooij
4189fea522 Bug 1723715 part 8 - Move realm key object to GlobalObjectData. r=jonco
Depends on D121987

Differential Revision: https://phabricator.services.mozilla.com/D121988
2021-08-09 15:25:07 +00:00
Jan de Mooij
08cbcc0188 Bug 1723715 part 7 - Move SourceURLsHolder to GlobalObjectData. r=jonco
Depends on D121986

Differential Revision: https://phabricator.services.mozilla.com/D121987
2021-08-09 15:25:07 +00:00
Jan de Mooij
422644ae1c Bug 1723715 part 6 - Move globalThisResolved to GlobalObjectData. r=jonco
Depends on D121985

Differential Revision: https://phabricator.services.mozilla.com/D121986
2021-08-09 15:25:06 +00:00
Jan de Mooij
c35da74f03 Bug 1723715 part 5 - Move ForOfPICChain to GlobalObjectData. r=jonco
Depends on D121984

Differential Revision: https://phabricator.services.mozilla.com/D121985
2021-08-09 15:25:06 +00:00
Jan de Mooij
502d329ac4 Bug 1723715 part 4 - Move intrinsics holder to GlobalObjectData. r=jonco
Depends on D121983

Differential Revision: https://phabricator.services.mozilla.com/D121984
2021-08-09 15:25:05 +00:00
Jan de Mooij
efaad850a3 Bug 1723715 part 3 - Move RegExpStaticsObject to GlobalObjectData. r=jonco
RegExpStaticsObject just stores the RegExpStatics. It might be possible to store
the RegExpStatics directly in the GlobalObjectData in a follow-up bug.

Depends on D121982

Differential Revision: https://phabricator.services.mozilla.com/D121983
2021-08-09 15:25:05 +00:00
Jan de Mooij
939aa16efa Bug 1723715 part 2 - Remove the RUNTIME_CODEGEN_ENABLED slot. r=jonco
Originally this slot was used to cache the return value of the callback. However
that was changed at some point, now the slot is only set to TrueValue when there
is no callback installed. It's now better and simpler to remove the slot.

Depends on D121981

Differential Revision: https://phabricator.services.mozilla.com/D121982
2021-08-09 15:25:05 +00:00
Jan de Mooij
1c8f0d1a67 Bug 1723715 part 1 - Add GlobalObjectData and use it for emptyGlobalScope. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D121981
2021-08-09 15:25:04 +00:00
Alexandru Michis
ad486327b2 Backed out 2 changesets (bug 1723204) for causing xpcshell failures in ValidateScriptFilename
CLOSED TREE

Backed out changeset 83e5baac01a9 (bug 1723204)
Backed out changeset 2ee6c94f35b3 (bug 1723204)
2021-08-09 18:33:15 +03:00
Bob Owen
3b32b0316b Bug 1724195: Turn on CET compatible modules only for the rdd process on Nightly. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D121866
2021-08-09 15:14:50 +00:00
Sebastian Hengst
89c26bb9f9 Bug 1724582 - set different fuzzy annotation for dynamic-max-width.html on Apple Silicon. r=jmaher DONTBUILD
Bug 1714200 enabled reftests on macOS 11 with Apple Silicon. The test fails
with different values than on macOS 10.15.

Differential Revision: https://phabricator.services.mozilla.com/D122070
2021-08-09 15:07:50 +00:00