Граф коммитов

765827 Коммитов

Автор SHA1 Сообщение Дата
Makoto Kato 49cc605308 Bug 1719110 - Don't use sync IPC to show suggestion by spellchecker. r=Gijs
CheckCurrentWord on content process causes sync IPC, so I would like to remove
this call on content process. New nsIEditorSpellChecker.suggest method can
avoid it.

Differential Revision: https://phabricator.services.mozilla.com/D119937
2021-08-10 03:55:25 +00:00
Makoto Kato a6944a1428 Bug 1719110 - Add nsIEditorSpellCheck.suggest to get rid of PRemoteSpellcheckEngine.CheckAndSuggest. r=masayuki
When getting suggestions from spellchecker's result, we use sync IPC
(`PRemoteSpellcheckEngine.CheckAndSuggest`). This is used by showing context
menu only on Gecko. So I think that we can remove this IPC if we add async API
to get spellchecker suggestions.

And in comm-central's code, `CheckCurrentWord` and `GetSuggestedWord` seems to
use on spellchecker dialog (content/dialogs/EdSpellCheck.js in mail and suite)
that runs on parent process. So c-c won't use this IPC method.

So I would like to add the promise version of getting spellchecker's
suggestion.

Differential Revision: https://phabricator.services.mozilla.com/D119936
2021-08-10 03:55:25 +00:00
Masayuki Nakano ace90e9307 Bug 1717760 - Disable `KeyEvent.initKeyEvent` by default r=smaug
Now, Gecko is the only browser to support undocumented `KeyEvent.initKeyEvent`.
We should drop it by default because `typeof KeyboardEvent.initKeyEvent` is
used at least in a major web-site and which causes not working the web-site.

Differential Revision: https://phabricator.services.mozilla.com/D121029
2021-08-10 03:51:38 +00:00
Masayuki Nakano 53bef623bf Bug 1717760 - Stop using `KeyEvent.initKeyEvent` in our tests r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D121028
2021-08-10 03:51:37 +00:00
Matt Woodrow bd3bd43954 Bug 1724839 - Mark tests as passing. r=jrmuizel
Depends on D122176

Differential Revision: https://phabricator.services.mozilla.com/D122177
2021-08-10 03:38:42 +00:00
Matt Woodrow 9e61c44d5d Bug 1724839 - Snap transforms for video/canvas painting in the same way that Layer rendering did. r=jrmuizel
This takes the logic used for Image/CanvasLayer::ComputeEffectiveTransforms and uses it to get matching rendering for the Paint path.

Depends on D122175

Differential Revision: https://phabricator.services.mozilla.com/D122176
2021-08-10 03:38:42 +00:00
Matt Woodrow 47d3ec0f72 Bug 1724839 - Add 2d matrix equivalents for transform snapping functions. r=jrmuizel
Depends on D122174

Differential Revision: https://phabricator.services.mozilla.com/D122175
2021-08-10 03:38:42 +00:00
Matt Woodrow 16361eebae Bug 1724839 - Move transform snapping code into gfxUtils. r=jrmuizel
Depends on D122173

Differential Revision: https://phabricator.services.mozilla.com/D122174
2021-08-10 03:38:41 +00:00
Matt Woodrow d93a690a00 Bug 1724839 - Don't use BasicLayerManager to paint video elements. r=jrmuizel
Depends on D122172

Differential Revision: https://phabricator.services.mozilla.com/D122173
2021-08-10 03:38:41 +00:00
Matt Woodrow 1d5382e878 Bug 1724839 - Don't use BasicLayerManager for painting CanvasRenderer backed canvas elements. r=jrmuizel
Depends on D122171

Differential Revision: https://phabricator.services.mozilla.com/D122172
2021-08-10 03:38:40 +00:00
Matt Woodrow 8a447ade17 Bug 1724839 - Don't use BasicLayerManager for painting ImageBitmap <canvas> elements. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D122171
2021-08-10 03:38:40 +00:00
Daniel Holbert a1d0abeb81 Bug 1720485: Adjust test_after_paint_pref.html to use a double-rAF instead of a timeout, to give its pref-adjustment a better chance to take effect. r=mattwoodrow
nsPresContext has a flag that caches the value of this pref, and the flag gets
updated in the next refresh driver tick after a pref-change occurs.  Right now
we don't have a strong guarantee that the flag will have been updated by the
time the test assumes that it has, which is why we're seeing intermittent
failures.

This patch adjusts the test so that it waits for a double-rAF before proceeding
from its pref adjustment.  I believe this is the recommended way of forcing &
waiting-out at least one refresh driver tick; and this should let the test
reliably assume the pref-adjustment has taken effect.

Differential Revision: https://phabricator.services.mozilla.com/D122169
2021-08-10 03:21:41 +00:00
Glenn Watson 75728e5f1e Bug 1723665 - Move coordinate mapping and snapping from scene building to display list building r=aosmond,gfx-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D121591
2021-08-10 01:18:52 +00:00
Kagami Sascha Rosylight 6558b120fa Bug 1724721 - Emit concatenated namespace from CGNamespace.build r=edgar
This makes the generated code from `mach webidl-example` more clang-tidy friendly.

Differential Revision: https://phabricator.services.mozilla.com/D122122
2021-08-09 22:36:00 +00:00
Iulian Moraru 4c78d68cdc Backed out changeset a1a730897df8 (bug 1723956) for causing build bustages. CLOSED TREE 2021-08-10 01:38:42 +03:00
Matt Woodrow ec9b5dd838 Bug 1720152 - Recurse into replay for dependencies, rather than using a temp surface. r=jrmuizel,bobowen,emilio
Differential Revision: https://phabricator.services.mozilla.com/D120050
2021-08-09 22:07:36 +00:00
Mike Hommey 4a06fcb21e 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:50:04 +00:00
Mats Palmgren 14c9063444 Bug 1706080 - [css-fonts] Implement 'font-synthesis: small-caps'. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D114313
2021-08-09 21:41:34 +00:00
Emilio Cobos Álvarez 4498297532 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 21:29:26 +00:00
Emilio Cobos Álvarez 831f0bb860 Bug 1722662 - Load SpecialPowers in reftests. r=jgraham,jmaher
Depends on D122014

Differential Revision: https://phabricator.services.mozilla.com/D122015
2021-08-09 21:29:26 +00:00
Emilio Cobos Álvarez 10a2cfebc1 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).

Differential Revision: https://phabricator.services.mozilla.com/D122014
2021-08-09 21:29:25 +00:00
Emilio Cobos Álvarez 696577716d 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 21:29:25 +00:00
Ryan Hunt 1475b3b0cb Bug 1721997 - wasm: Check CompileArgs::build() and correctly report OOM's. r=yury
Differential Revision: https://phabricator.services.mozilla.com/D121386
2021-08-09 21:22:25 +00:00
Glenn Watson af10111513 Bug 1724344 - Split DL cache data into separate payload vec r=gfx-reviewers,kvark
Move the extra_data to be a specific cache_data separate vec in
the display list payload.

This shouldn't change any functionality, but serves as a proof
of concept for future changes which will introduce several other
separated payload vectors.

Differential Revision: https://phabricator.services.mozilla.com/D121937
2021-08-09 21:15:20 +00:00
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