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

795572 Коммитов

Автор SHA1 Сообщение Дата
moz-wptsync-bot 2a245bc080 Bug 1768299 [wpt PR 33978] - Update wpt metadata, a=testonly
wpt-pr: 33978
wpt-type: metadata
2022-05-17 16:14:23 +00:00
Mason Freed 2faf943a52 Bug 1768299 [wpt PR 33978] - Speculative fix for backdrop-animate-002.html, a=testonly
Automatic update from web-platform-tests
Speculative fix for backdrop-animate-002.html

The differences only manifest on WPT.fyi, but they are minor single-
pixel-value differences on the green ::backdrop. This change just
adds a few rAF() loops to let things settle.

Bug: 1323293
Change-Id: I3e422e87f3a1a216a06df84e682a5c51207de440
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3632451
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Auto-Submit: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1000737}

--

wpt-commits: 5eca98b81539a29b318d8b11c43da144311715c1
wpt-pr: 33978
2022-05-17 16:14:22 +00:00
Koji Ishii 5fd4bb9558 Bug 1768334 [wpt PR 33981] - [block-in-inline] Fix hit-testing when a block-in-inline is not hit-testable, a=testonly
Automatic update from web-platform-tests
[block-in-inline] Fix hit-testing when a block-in-inline is not hit-testable

This patch fixes hit-testing of block-in-inline when it is
not hit-testable but the requested point is in the inline box;
e.g.,
* The requested point is at the margin area of the block-in-
  inline.
* The block-in-inline has lower z-index than other boxes.

In such cases, the anonymous block of the block-in-inline
hits. This patch redirects it to the containing inline box.

The logic to handle this case for pre-LayoutNGBlockInInline
(i.e., continuation) was added in 2003[1] with a good comment,
but without tests. This patch adds tests for both original
case and the case for crbug.com/1322747.

[1] dd67c9bf0f%5E%21/third_party/WebKit/WebCore/khtml/rendering/render_object.cpp

Bug: 1322747
Change-Id: I0f98b4d0253afbd6c22ebb426a3a5c04af649c53
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3632259
Auto-Submit: Koji Ishii <kojii@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1000733}

--

wpt-commits: 2ab70aa54b166f6dfd97abd783ca1ebc0419c625
wpt-pr: 33981
2022-05-17 16:14:22 +00:00
Emilio Cobos Álvarez 4843d67a94 Bug 1769775 - Add a MozPromise version of CanonicalBrowsingContext::Print. r=jwatt
And use it to implement the JS version of the method. This should avoid
the various complications that bug 1659819 hit.

Differential Revision: https://phabricator.services.mozilla.com/D146590
2022-05-17 16:02:35 +00:00
Jan de Mooij 63a6d7f639 Bug 1769755 - Clean up TokenStream code for numbers starting with '0'. r=arai
If the tokenizer sees a number like `0.`, it currently starts at the '.' and discards
the '0'. This relies on `GetDecimalNonInteger` => `js_strtod_harder` returning 0
for invalid strings (such as "." in this case). This patch fixes this so that we
handle `0.x` similar to `1.x` for example.

In GetDecimalNonInteger we can now assert the whole string was parsed.

This also fixes the `decimalNumber` comment:

* Case 3 no longer exists with this change, '0' is now handled similar to case 1.
* Case 2 didn't match the code after bug 1609547. Fix the comment.
* Case 4 (now case 3) didn't match the code after bug 1421400. Fix the comment.

Differential Revision: https://phabricator.services.mozilla.com/D146570
2022-05-17 16:00:13 +00:00
Nicolas B. Pierron 2de91796ad Bug 1764280 - Filter out Asm.js by not visiting script which are already generated. r=arai
Asm.js content is produced while generating the content of the enclosing script.
By filtering function which are already emitted, we filter out Asm.js functions
from the delazification tasks.

Differential Revision: https://phabricator.services.mozilla.com/D143465
2022-05-17 15:58:45 +00:00
Rob Wu 9b07c5e1ba Bug 1766087 - Clean up test_blocklistchange.js r=Gijs
blocklistchange/addon_update*.json contained incorrect values in
"version". There is a pattern in the way that these tests are
constructed, so test_blocklistchange.json was updated to generate the
update manifests, along with extra comments that explain the relation
between the various test files.

With this change, blocklistchange/ has become fully obsolete and has
been removed from the test.

As noted in the bug, "softblock5" is not used anywhere, so its
references have been removed too.

Differential Revision: https://phabricator.services.mozilla.com/D144497
2022-05-17 15:42:25 +00:00
Rob Wu 01f0a28b0e Bug 1766087 - Fix test_blocklistchange.js to use correct versions r=Gijs
The "succesful" update part of the test referenced a XPI where the
version differed from the update manifest. This is not supported,
the update manifest's version should match the version from the XPI.

As noted in the bug, addon_update1.json and addon_update2.json also
specify incorrect versions, but as the XPIs are not actually fetched
that doesn't matter in the test.
(I will address that in the next patch.)

Differential Revision: https://phabricator.services.mozilla.com/D144496
2022-05-17 15:42:24 +00:00
Rob Wu 53aa9f4ce4 Bug 1750565 - Test that addon types cannot be changed in updates r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D136238
2022-05-17 15:41:17 +00:00
Alexandra Borovova d26b40e85a Bug 1763127 - Add wdspec tests for browsingContext.navigate to url with hash. r=webdriver-reviewers,whimboo
Depends on D146290

Differential Revision: https://phabricator.services.mozilla.com/D146460
2022-05-17 15:40:26 +00:00
Alexandra Borovova 816e45fe87 Bug 1763127 - Add a helper function to simplify wdspec tests for browsingContext.navigate. r=webdriver-reviewers,whimboo
Depends on D146108

Differential Revision: https://phabricator.services.mozilla.com/D146290
2022-05-17 15:40:25 +00:00
Drew Willcoxon 89e0a5bd8e Bug 1769583 - Add the urlbar autofill prefs to telemetry environment data. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D146504
2022-05-17 15:36:28 +00:00
Magnus Melin 3cf5379ddd Bug 1769045 - disable test_blockParsing.js for Thunderbird since the test doesn't work for multi-process. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D146278
2022-05-17 15:31:52 +00:00
Nicolas Chevobbe 547c9df37d Bug 1767788 - [devtools] Fix browser_styleeditor_sv_keynav.js intermittent failure. r=jdescottes.
Wait for the proper editor-selected event.

Differential Revision: https://phabricator.services.mozilla.com/D146577
2022-05-17 15:21:50 +00:00
Emilio Cobos Álvarez f84c9f07b0 Bug 1769769 - Don't generate nsIPrintDialogService.h in the source dir. r=jwatt
It seems the order of XPIDL_SOURCES vs. XPIDL_MODULE is important.

Differential Revision: https://phabricator.services.mozilla.com/D146579
2022-05-17 15:11:35 +00:00
Sebastian Hengst 121c42a675 Bug 1769552 - set 3 service-worker tests as failing on beta and release. r=jstutte DONTBUILD
Tests got added e.g. in bug 1766674 and test first party isolation (partioning)
which is only enabled in Nightly. Bug 1549587 is the general bug tracking
first party isolation.

Differential Revision: https://phabricator.services.mozilla.com/D146484
2022-05-17 15:04:43 +00:00
Jonathan Watt 1790ea2686 Bug 1769756 - Remove nsIWebBrowserPrint.currentPrintSettings. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D146569
2022-05-17 15:04:24 +00:00
Jonathan Watt 0d78c92de8 Bug 1769746 - Stop using mPrtPreview in nsPrintJob::Print. r=emilio
We create a new nsPrintJob every time Print() or PrintPreview() is invoked
now ( https://phabricator.services.mozilla.com/D87417 ), so the mPrtPreview
member is never set this early on.

This also renames aSourceDoc to just aDoc since the document that is passed is
nowadays the actual document we're going to print from (the static clone,
which nowadays is created before these methods are invoked rather than being
created by them).

Differential Revision: https://phabricator.services.mozilla.com/D146563
2022-05-17 15:04:00 +00:00
Emilio Cobos Álvarez 223f99d650 Bug 1768278 - Draw menupopup shadows ourselves on Windows. r=dao,Gijs
This prevents long-standing artifacts on HiDPI screens on context menus and so
on.

This is much simpler than tooltips because menupopups and panels already have
the whole set-up ready.

The searchbar.css changes are kind of annoying, but they improve the rendering
a lot (see attached screenshots).

Let me know if you want me to draw shadows on all panels on Windows like we do
on Linux, it's probably doable and cleaner over-all.

Differential Revision: https://phabricator.services.mozilla.com/D145818
2022-05-17 14:37:24 +00:00
Emilio Cobos Álvarez b1f8ba4237 Bug 1768278 - Prevent negative margins from causing us to flip / resize / slide popups. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D145879
2022-05-17 14:37:23 +00:00
Botond Ballo b0915ba3ed Bug 1769759 - Update extension ID for rust-analyzer vscode extension recommendation. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D146576
2022-05-17 14:36:27 +00:00
Henrik Skupin ec898f20be Bug 1769544 - Fix layout/tools/reftest/selftest/test_reftest_output.py for the new exit code of a forced shutdown as caused by MOZ_CRASHREPORTER_SHUTDOWN. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D146531
2022-05-17 14:27:04 +00:00
Henrik Skupin 76ece97315 Bug 1769584 - Fix test_mochitest_integration.py::test_output_asan for the new exit code of a forced shutdown as caused by MOZ_CRASHREPORTER_SHUTDOWN r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D146487
2022-05-17 14:27:03 +00:00
Sergio Villar Senin a253868f5e Bug 1769283 - Unable to set MSAA samples in GeckoView. r=agi
GeckoView is still using the deleted gl.msaa-level setting. As the rest of the engine does not use it,
modifying it basically became a noop. Replacing it by webgl.msaa-samples does the trick and allows
GeckoView clients to modify the antialiasing settings in WebGL.

Differential Revision: https://phabricator.services.mozilla.com/D146322
2022-05-17 14:24:39 +00:00
Andrew McCreight 70ee2f4d33 Bug 1743636 - Call SynchronizeLayoutHistoryState before ReplacedBy. r=peterv
Bug 1766131 added a call to this method before the other call
to ReplacedBy, but apparently the other call site comes into play
in some tests, at least when parent controlled navigation is
enabled. This fixes browser_scrollPositions.js with parent controlled
navigation, and is a step towards fixing browser_test_shentry_wireframe.js.

It sounds like the issue happens when you navigate to one page, then
to another in the same site, via BrowserTestUtils. Because these are
initiated from the parent process, then end up getting redirected to
the content process in another docshell. We have to save the layout
history state before doing this, or we lose the scroll information.

Differential Revision: https://phabricator.services.mozilla.com/D146140
2022-05-17 14:21:09 +00:00
mleclair fa813df4ac Bug 1767908 Renew Early hints and HTTP/3 probes until fx 109. r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D146024
2022-05-17 14:16:06 +00:00
Andrew Osmond 4b37a00d47 Bug 1689834. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D146102
2022-05-17 14:14:12 +00:00
Emilio Cobos Álvarez 9fffb1830a Bug 1769758 - Remove window.mozPaintCount. r=webidl,peterv
We unshipped it successfully a while ago (bug 1591968).

Differential Revision: https://phabricator.services.mozilla.com/D146575
2022-05-17 14:14:10 +00:00
Andrew Osmond c2aed688a2 Bug 1768337. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D146222
2022-05-17 14:01:34 +00:00
Narcis Beleuzu f6a676a782 Bug 1768309 - Update expectancy for websockets on Android. CLOSED TREE 2022-05-17 17:00:32 +03:00
Travis Long 07ed5a1efc Bug 1754527 - Nimbus should call the Glean Experiment API r=chutten,barret
Differential Revision: https://phabricator.services.mozilla.com/D145911
2022-05-17 13:51:55 +00:00
Nicolas Silva 98817e34d7 Bug 1726388 - Adjust reftest expectations. r=gfx-reviewers,jrmuizel
This patch series gave picture primitives the full anti-aliasing instead of just the inward half, some reftest references have to be changed accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D146199
2022-05-17 13:46:33 +00:00
Nicolas Silva 69c61a4aad Bug 1726388 - Disable AA between parts of a decomposed linear gradient. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D145937
2022-05-17 13:46:32 +00:00
Nicolas Silva 0c97ec67ec Bug 1726388 - Allow primitive to mask out the antialiasing of their edges. r=gfx-reviewers,lsalzman
This patch adds a edge aa mask field in the common primitive data so that primitives can turn off anti-aliasing at their edges. There was some padding in the structure so it didn't change the size.
This will be use by a followup patch to turn off anti-aliasing between pieces of linear gradients when they are decomposed into simpler primitives.

Differential Revision: https://phabricator.services.mozilla.com/D145936
2022-05-17 13:46:32 +00:00
Nicolas Silva 59679f692b Bug 1726388 - Make it possible to not anti-alias at the bounds of the primitive. r=gfx-reviewers,lsalzman
The Antialiasing code sets up the bounds of a rect to anti-alias in the vertex shader for the fragment shader to compute the AA via a distance approximation.
The modified mix call selects between the edges of the current instance (could be a primitive segment) and the edges of the primitive based on the anti-aliasing edge flags. If an edge does not have the AA flag, then the aa will be computed based on the distance to the primitive's edge. This usually works because we tend to want AA around the primitive but not along the internal edges of potential segments of a primitive. However it also means that if we take the anti-aliasing code path (for example under a non-axis-aligned transform) then the edges of the primitive are always anti-aliased. In some cases we want to disable the anti-aliasing along the primtive, though, for example when something is split into multiple primitive like the linear gradient optimization.

This patch changes this mix call so that it selects between the segment bounds and some very large rect. If the primitive is not segmented, then the segment bounds are the bounds of the primitive. The effect is that AA is only applied to edges that have the flag set rather than segment edges with the flag set as well as any edge at the border of the primitive.

Differential Revision: https://phabricator.services.mozilla.com/D145935
2022-05-17 13:46:31 +00:00
Nicolas Chevobbe 1fd72cd0c4 Bug 1768209 - [devtools] Fix Disable Popup Auto-Hide + Browser Toolbox highlighters. r=emilio.
Using insertAnonymousContent on a document where a XUL popup is displayed seems
to hide/destroy it.
This patch extends the current behaviour for XUL windows to Chrome windows:
we add an iframe in the document which will contain the anonymous content.

Differential Revision: https://phabricator.services.mozilla.com/D146036
2022-05-17 13:12:08 +00:00
Julian Descottes 2c889a3c67 Bug 1769701 - [devtools] Use a blocking promise instead of an arbitrary delay in browser_inspector_inspect_loading_document.js r=nchevobbe
Depends on D146464

Differential Revision: https://phabricator.services.mozilla.com/D146544
2022-05-17 11:46:36 +00:00
Jonathan Watt dfbf5426b6 Bug 1769717 - Remove nsPrintJob::GetPrintPreviewPresShell(). r=emilio
Long ago we used to play switcheroo with PresShells in order to print a
document, but for over a decade we've been cloning the document that is
to be printed (bug 487667). Since then we've had no need for this method.

Differential Revision: https://phabricator.services.mozilla.com/D146545
2022-05-17 11:36:20 +00:00
Hubert Boma Manilla 9743602245 Bug 1765817 - [devtools] Add getLocationSource selector to fetch source for a location r=nchevobbe
This cleanup helps support the subsequent work for breakpoints per url.

Depends on D146426

Differential Revision: https://phabricator.services.mozilla.com/D146427
2022-05-17 11:10:21 +00:00
Makoto Kato cad300b928 Bug 1758800 - Watch the modification of child nodes in <select> element. r=agi,ohall
This is a kind of bug 1263887 for GeckoView.

We should update the prompt when child nodes in `<select>` element is modified.

I add `PromptInstanceDelegate.onPromptUpdate` to update the prompt's content.
Browser application should implement it if <select> element is updated during
showing the prompt.

Differential Revision: https://phabricator.services.mozilla.com/D144538
2022-05-17 10:55:45 +00:00
Nicolas B. Pierron 5c2c48273b Bug 1756003 part 3 - Add JS shell command line option to set default delazification. r=arai
This instrumentation is used to build test cases and help with fuzzing, by
selecting a custom delazification type as the default mode for the top-level.

Differential Revision: https://phabricator.services.mozilla.com/D145993
2022-05-17 10:53:04 +00:00
Nicolas B. Pierron 4d3d87d56e Bug 1756003 part 2 - Compare concurrent and on-demand delazification. r=arai
Adds a delazification mode, which spawn a concurrent depth-first delazification
of all function to fill the stencil cache, to later compare cached results with
stencils produced by on-demand delazification.

The delazification mode also works when being used from a main-thread top-level
compilation, in which case the delazification tasks are created and potentially
blocking the main thread, while the delazification is happening.

This way of doing help comparing on-demand delazification, based on instantiated
stencils with concurrent delazification, based on stencils. Which is a good
mode for fuzzing purposes.

Differential Revision: https://phabricator.services.mozilla.com/D145992
2022-05-17 10:53:04 +00:00
Nicolas B. Pierron 2d9181d1da Bug 1756003 part 1 - ScriptSource carry the delazification mode. r=arai
Previously, we only had a single mode of delazification, then we added the
concurrent delazification, which could be mixed with on-demand delazification,
by always checking for cached entries.

Now, with the addition of a third mode which attempt to compare the outputs of
on-demand delazification with concurrent delazification, we need to distinguish
and carry this difference to the function responsible for running the
delazification. However, this information is only available when we first run
the delazification.

This patch adds the JS::DelazificationOption (uint8_t) to the ScriptSource
class, such that we can communicate the selected mode to the functions in charge
of the delazification.

Differential Revision: https://phabricator.services.mozilla.com/D145991
2022-05-17 10:53:03 +00:00
Paul Zuehlcke e1a09f57de Bug 1763660 - Tests for query parameter stripping in Private Browsing Mode. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D143761
2022-05-17 10:42:16 +00:00
Paul Zuehlcke ff73626bba Bug 1763660 - Enable query parameter stripping in Private Browsing Mode. r=anti-tracking-reviewers,necko-reviewers,timhuang,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D143760
2022-05-17 10:42:16 +00:00
Paul Zuehlcke ced22621e7 Bug 1763660 - Add query parameter stripping pref to ETP strict. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D143513
2022-05-17 10:42:16 +00:00
Sebastian Hengst 193f47029e Bug 1769724 - correct indentation in backfill cron task definition.
backfill-all-browsertime cron task had been added in bug 1766433.

Differential Revision: https://phabricator.services.mozilla.com/D146557
2022-05-17 10:41:54 +00:00
Bogdan Szekely 1e42da6d61 Merge mozilla-central to autoland. CLOSED TREE 2022-05-17 12:29:28 +03:00
Bogdan Szekely 4ef183d00f Merge autoland to mozilla-central. a=merge 2022-05-17 12:26:46 +03:00
Jan de Mooij 49ccaf05d8 Bug 1769410 - Use computed offset to read float register contents in MachineState::read. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D146424
2022-05-17 09:18:16 +00:00