Commit Graph

765953 Commits

Author SHA1 Message Date
Iulian Moraru
7aabed9987 Backed out changeset 9e46bdf03189 (bug 1723956) for causing build bustages. CLOSED TREE 2021-08-10 00:21:40 +03:00
Mike Hommey
84b57c8377 Bug 1724278 - Fix --with-system-nspr build after bug 1722652 r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D121940
2021-08-09 21:12:04 +00:00
Mike Hommey
555812aff8 Bug 1723956 - Make --without-sysroot work again. r=firefox-build-system-reviewers,mhentges
Also make it not bootstrap a host sysroot.

Differential Revision: https://phabricator.services.mozilla.com/D121815
2021-08-09 21:08:43 +00:00
Ting-Yu Lin
cd5b6baa4e Bug 1686961 - Don't cache ascent in CachedBAxisMeasurement. r=dholbert
CachedBAxisMeasurement::mAscent caches the ascent of a flex item after
the measuring reflow, but the ascent may change after the final reflow
if the item is stretched and does some vertical alignment internally.
However, we don't cache the new ascent. Therefore, when we reflow the
item incrementally, if the CachedBAxisMeasurement::Key is valid, we just
skip the measuring reflow, and retrieve the wrong ascent from the cache.

Instead of fixing this bug by updating the cached ascent or rejecting
the ascent cache for a stretching flex item in block axis, this patch
removes the cache and sets ReflowOutput's BlockStartAscent() to the flex
item after the item's measuring reflow. (We've done the same after the
item's final reflow.) If the ascent is ReflowOutput::ASK_FOR_BASELINE,
we resolve in FlexItem::ResolvedAscent() anyway.

Differential Revision: https://phabricator.services.mozilla.com/D121404
2021-08-09 20:55:11 +00:00
Andrew Osmond
2b86f97bbe Bug 1724727 - Make SVG image blob recordings use visibility rects. r=jrmuizel
Supplying a visibility rect to the display list builder when recording
an SVG image blob will allow the display list builder to trim out
unnecessary items and make the recordings smaller. This is particularly
important when we have an SVG image used as an atlas.

This patch also simplifies the call path for the recordings. This allows
us to avoid unnecessary clips and transforms and shrink the recording
further, as well as make the code more auditable.

Differential Revision: https://phabricator.services.mozilla.com/D122125
2021-08-09 20:39:31 +00:00
Magnus Melin
8bb66bef55 Bug 1724635 - fix Thunderbird build bustage from bug 1719070 - mozilla/browser/NimbusFeatures.h can't be found. r=cpeterson,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D122055
2021-08-09 20:21:13 +00:00
Kershaw Chang
8422e6d448 Bug 1720614 - Remove HTTPS_RR_WAITING_TIME, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D122123
2021-08-09 20:20:33 +00:00
Ava Katushka ava8katushka
7afe5a7908 Bug 1718782 - Add telemetry for clicking an in-progress download. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D121857
2021-08-09 20:12:27 +00:00
Gabriele Svelto
65f2ae5b03 Bug 1723934 - Remove old and useless crash annotations r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D121709
2021-08-09 20:08:17 +00:00
Gabriele Svelto
559377e821 Bug 1723934 - Remove useless nsExceptionHandler.h inclusions and crash reporter service definitions r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D121708
2021-08-09 20:08:17 +00:00
Boris Chiou
f5ebaf749a Bug 1689099 - Schedule resize observers for the whole browsing context tree. r=emilio
It's possible to observe an element in the iframe while the
ResizeObserver object lives in the outer document, so we have to make
sure we also schedule the observer for all documents in the same
BrowsingContext tree.

Differential Revision: https://phabricator.services.mozilla.com/D119843
2021-08-09 19:48:13 +00:00
James Graham
44fd485d24 Bug 1699044 - Dont' try to set the wdspec window size when it's not supported. r=webdriver-reviewers,whimboo
Some platforms, especially mobile, don't allow setting the window
rect. The capabilities are supposed to say when that's possible or
not, so we shouldn't try to set it when we're told it's not.

Differential Revision: https://phabricator.services.mozilla.com/D121751
2021-08-09 19:43:51 +00:00
James Graham
6bf900bb66 Bug 1699044 - Add wdspec support to firefox_android, r=webdriver-reviewers,whimboo
We can reuse most of the implementation from Firefox, we just need to
ensure that the corect android options end up in the capabilities.

Differential Revision: https://phabricator.services.mozilla.com/D121750
2021-08-09 19:43:50 +00:00
alwu
01fee60b95 Bug 1723799 - part2 : add test. r=padenot,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D121681
2021-08-09 19:30:12 +00:00
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