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

799401 Коммитов

Автор SHA1 Сообщение Дата
Antoine Quint 552ef8a39d Bug 1774545 [wpt PR 34463] - Fix Safari harness timeout in css/css-transitions/before-load-001.html, a=testonly
Automatic update from web-platform-tests
Split testing CSS transitions before load vs. load event behavior when changing <img>.src

The test css/css-transitions/before-load-001.html relies on loading an image where the load is set to 100 seconds such that the window `load` event dispatch is delayed until a CSS Transition is ran. At that point, the image's source is set to the empty string to stop the image load and have the window `load` event dispatched.

Safari has an issue where an <img> pointing to a long-loading resource will continue delaying dispatch of the `load` event on the window even when the image source has been reset. This issue is tracked by https://bugs.webkit.org/show_bug.cgi?id=241676.

As a result, css/css-transitions/before-load-001.html causes a harness timeout in Safari even though the ability to run a CSS Transition before the window `load` event has been dispatched works correctly and the test assertions pass.

We work around that issue by lowering the load duration for the image to 1 second instead of 100. This doesn't changed the functionality that this test is explicitly testing. And to explicitly test that resetting a long-loading image source no longer delays the dispatch of the window `load` event, a new dedicated test is added, which will itself cause a timeout in Safari, but that is what is expected.

Addresses https://github.com/web-platform-tests/wpt/issues/34444.
--

wpt-commits: 644aba8746b83668d5d9033cda16ae3f8bba0b3d
wpt-pr: 34463
2022-06-22 09:22:18 +00:00
moz-wptsync-bot 5f2b215d7e Bug 1774120 [wpt PR 34418] - Update wpt metadata, a=testonly
wpt-pr: 34418
wpt-type: metadata
2022-06-22 09:22:18 +00:00
Yutaka Hirano e04eea5b5a Bug 1774120 [wpt PR 34418] - Fix streaming upload tests, a=testonly
Automatic update from web-platform-tests
Fix streaming upload tests

 - Streaming upload is disabled on HTTP/1.1. Move some tests to the
   h2 file.
 - Explicitly test that streaming upload is blocked on HTTP/1.1.

421 handling hasn't been implemented yet.

Also fix the implementation which blocked CORS requests unintentionally.

Change-Id: I8da8ea411ae6d55e2d7dfddc34f3da529651aa7f
Bug: 1234368
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3699531
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Yoichi Osato <yoichio@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1014859}

--

wpt-commits: d387101095115f28446dbf2da77fb64dea697815
wpt-pr: 34418
2022-06-22 09:22:18 +00:00
moz-wptsync-bot 7c2c7557cd Bug 1774535 [wpt PR 34461] - Update wpt metadata, a=testonly
wpt-pr: 34461
wpt-type: metadata
2022-06-22 09:22:18 +00:00
Arthur Hemery 8e0c305d2f Bug 1774535 [wpt PR 34461] - Split long COOP WPTs., a=testonly
Automatic update from web-platform-tests
Split long COOP WPTs.

Following
https://chromium-review.googlesource.com/c/chromium/src/+/3691847

Some COOP WPTs are getting close to timeout on Firefox runners. Split
them further.

Bug: 1318373
Change-Id: If97208b68054f1cf8fb98eff785b5d9300b32c68
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3702340
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Arthur Hemery <ahemery@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1013864}

--

wpt-commits: 54614bf4a5b93eb692ea83ebb8743263d038a7d5
wpt-pr: 34461
2022-06-22 09:22:18 +00:00
moz-wptsync-bot 1cb202303a Bug 1773957 [wpt PR 34390] - Update wpt metadata, a=testonly
wpt-pr: 34390
wpt-type: metadata
2022-06-22 09:22:18 +00:00
Blink WPT Bot 804f431da2 Bug 1773957 [wpt PR 34390] - Remove unused function in COOP WPT's common.js, a=testonly
Automatic update from web-platform-tests
Remove unused function in COOP WPT's common.js (#34390)

A number of tests now use iframe-test.js and we can remove the dedicated
function from common.js, as well as the iframe page.

Bug: 1318373
Change-Id: I051fef673a9d0144ad9e8c90b57f651e27f5edc9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3700015
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Arthur Hemery <ahemery@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1013853}

Co-authored-by: Arthur Hemery <ahemery@chromium.org>
--

wpt-commits: aa7c965f8833acc44ce01cc53bc2131b73a72202
wpt-pr: 34390
2022-06-22 09:22:18 +00:00
moz-wptsync-bot 2d06686b7f Bug 1773942 [wpt PR 34386] - Update wpt metadata, a=testonly
wpt-pr: 34386
wpt-type: metadata
2022-06-22 09:22:18 +00:00
Blink WPT Bot 1d323588ab Bug 1773942 [wpt PR 34386] - Refactoring iframe coop tests., a=testonly
Automatic update from web-platform-tests
Refactoring iframe coop tests. (#34386)

Iframe COOP tests run using convoluted postMessage and broadcastChannel
messaging. Converting them to use dispatcher.js makes things more
straightforward and contained.

A few notes:
- This is roughly equivalent to https://chromium-review.googlesource.com/c/chromium/src/+/3593078, but for tests using
iframes.
- Combining COOP: same-origin and a cross-origin iframe leads to
a noopener behavior. Behaviors are now tested more precisely, and distinguish between noopener and regular COOP opening.
- We're also verifying multiple ways of creating popups and making sure they all match. Previously we tested window.open, anchors, and GET and POST forms. We've removed POST forms that are not compatible with WPT pipes, and exerce the same path as GET forms.

This enables the followup:
https://chromium-review.googlesource.com/c/chromium/src/+/3700015

Bug: 1318373
Change-Id: I1ba7459c9ba3a08f548e132a51cff3369bd98da3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3691847
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Arthur Hemery <ahemery@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1013604}

Co-authored-by: Arthur Hemery <ahemery@chromium.org>
--

wpt-commits: 84ea5cbb864973fd3672d01d07fd6f740b94e915
wpt-pr: 34386
2022-06-22 09:22:18 +00:00
Michael Ratcliffe a6d986f1bb Bug 1775113 - Make Loader.jsm honour ac_add_options --enable-debug-js-modules r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D149778
2022-06-22 08:34:21 +00:00
Neil Deakin b17459dd7a Bug 1774683, use ValidateFilenameForSaving to validate dropped links on Windows, r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D149746
2022-06-22 08:27:07 +00:00
Masayuki Nakano fd5663f3e8 Bug 1770877 - part 33: Make `HTMLEditor::RelativeFontChangeOnTextNode` stop touching `Selection` directly r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D149104
2022-06-22 08:18:40 +00:00
Masayuki Nakano 616e905371 Bug 1770877 - part 32: Make `HTMLEditor::InsertContainerWithTransaction` stop touching `Selection` directly r=m_kato
This changes the behavior a little bit, unfortunately.

`InsertContainerWithTransaction` starts return code.  And the behavior changed
WPTs are hit here:
https://searchfox.org/mozilla-central/rev/a8bdd0feeb7ae596a202333ee324a68153f9f4c4/editor/libeditor/EditorBase.cpp#2179-2180

Then, the editor specific error will be converted to `NS_OK` at the
corresponding public method.  Therefore, the return code may be changed from
`NS_ERROR_FAILURE` to `NS_OK`, and that causes the return value change of
`Document.execCommand`.

Differential Revision: https://phabricator.services.mozilla.com/D149103
2022-06-22 08:04:26 +00:00
Jan de Mooij 5d6240653e Bug 1774546 part 3 - Store caller frame pointer in CommonFrameLayout. r=iain,rhunt
Now that all frames store the caller's frame pointer, we can add it to `CommonFrameLayout`
and get rid of `FramePointerOffset`.

This also removes `JitFrameLayout::unused_`. This has to happen at the same time so that
`sizeof(JitFrameLayout)` doesn't change (a lot of code depends on that for alignment).

`JitFrameLayout` is now aligned on the frame pointer instead of the return address.
This lets us simplify some of the Wasm stubs code (especially for ARM64) where we had
to workaround the old aligned-after-return-address invariant.

Differential Revision: https://phabricator.services.mozilla.com/D149760
2022-06-22 08:01:15 +00:00
Jan de Mooij 44a743c598 Bug 1774546 part 2 - Store number of arguments in the frame descriptor. r=iain
This renames the `numActualArgs_` field to `unused_` and stores a constant there
for now. The next patch will remove this field and simultaneously add the frame
pointer to `CommonFrameLayout`, preserving the current `JitFrameLayout` size.

Differential Revision: https://phabricator.services.mozilla.com/D149759
2022-06-22 08:01:14 +00:00
Jan de Mooij e4d839cd3e Bug 1774546 part 1 - Add MacroAssembler::loadNumActualArgs. r=iain
Also simplify `BaselineFrame::numActualArgs` by forwarding to `JitFrameLayout::numActualArgs`.

Differential Revision: https://phabricator.services.mozilla.com/D149758
2022-06-22 08:01:14 +00:00
Jan Horak b0dc7110a9 Bug 1771500 Show all available printers; r=stransky
Allow to continue enumeration of the printers for all protocols
(ie. ipp and ipps).

Following advice given by cups guys to use cupsGetDests2 to avoid duplicates of printers in the list: https://bugzilla.redhat.com/show_bug.cgi?id=1983403#c18

Differential Revision: https://phabricator.services.mozilla.com/D147508
2022-06-22 07:52:59 +00:00
Emilio Cobos Álvarez 078a02d787 Bug 1770636 - Fix StartupWMClass of flatpak package to match actually-used WMClass. r=jhorak
Pending further changes iff we want to do them (like comment 5), this is the
right thing to do.

I'm not a fan of comment 5 since in the past I've been bitten by Wayland
compositors not comparing stuff case-insensitively, so making everything
lowercase is probably simpler.

Differential Revision: https://phabricator.services.mozilla.com/D149911
2022-06-22 07:45:24 +00:00
Tooru Fujisawa b75b7a5d26 Bug 1772969 - Part 4: Use plain lazy getter to add alias for DownloadIntegration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D149710
2022-06-22 07:36:50 +00:00
Tooru Fujisawa d4dc02b637 Bug 1772969 - Part 3: Remove _TaskScheduler prefix from implementations. r=nalexander
Depends on D149708

Differential Revision: https://phabricator.services.mozilla.com/D149709
2022-06-22 07:36:50 +00:00
Tooru Fujisawa 5763b77095 Bug 1772969 - Part 2: Rename ExtensionStorageSync with ExtensionStorageSyncKinto for Kinto implementation. r=markh
Depends on D149707

Differential Revision: https://phabricator.services.mozilla.com/D149708
2022-06-22 07:36:49 +00:00
Tooru Fujisawa baf350744e Bug 1772969 - Part 1: Define lazy getter for ModuleRegistry.jsm on different objects for each protocol. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149707
2022-06-22 07:36:49 +00:00
Julian Descottes 2c8736a218 Bug 1767787 - [devtools] Wait until default editor has focus in browser_styleeditor_bug_851132_middle_click.js r=nchevobbe
I could reproduce the intermittent locally and when it occurs, the initial editor actually didn't have focus.
I think that what happens is that we hit a race condition where the focus is stolen by the initial editor after we clicked on a new stylesheet
and switched to a new editor.

Differential Revision: https://phabricator.services.mozilla.com/D149952
2022-06-22 07:20:06 +00:00
Alexandre Poirot 5de1d5d3d8 Bug 1774601 - [devtools] Remove plain url computation. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D149533
2022-06-22 07:08:12 +00:00
Alexandre Poirot 46e415c5f2 Bug 1774601 - [devtools] Stop hiding query parameters in Tab components. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D149532
2022-06-22 07:08:12 +00:00
Alexandre Poirot 278649831b Bug 1774601 - [devtools] Stop hiding query parameters in the SourceTree. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D149531
2022-06-22 07:08:11 +00:00
manekenpix d5efa9c119 Bug 1771095 - Remove size property from SearchBar component r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D149348
2022-06-22 07:04:09 +00:00
Mozilla Releng Treescript a234f0d8d4 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
be -> 40903e59f57663eadf4ed9cf490324dd69622d55
el -> b185ae1f46deb67ad3f6d34580c79de76a8b871a
en-GB -> 9a448c4f443621b517a7c4d33a8fba602fc41b8e
fi -> c78403643c186593efd570a3aba5d06a9c8073a9
ia -> 233a08d3c873528c0a34888bb92423bfb44a9cfd
is -> 408ba9e6683105dc0093880596bc70f37deaef7c
pt-BR -> 92a05d273ac48c0c50ad1f69a9df23875e56dd48
pt-PT -> 7802fd0491ba759cf1465d3d7851746b3e960112
uk -> 3052e29904199fc82ec1ca85cba8502eb400668e
2022-06-22 06:57:15 +00:00
Mark Banner 7951e16444 Bug 1775087 - Update notification email addresses for existing search related telemetry. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D149861
2022-06-22 06:38:18 +00:00
Makoto Kato 22bcab84b6 Bug 1769907 - Don't register desktop's SelectChild and SelectParent in GeckoView. r=geckoview-reviewers,agi
Actually, GeckoView registers both desktop and mobile actor for `<select>`
element. It is unnecessary to use desktop's `<select>` actor.

But, if GeckoView doesn't register desktop's `<select>` actor,
`layout/forms/test/test_select_reframe.html` will be failure since GV doesn't
handle `mozhidedropdown` that is a event when the control is unbinded from
layout tree.

So we need to handle this for this situation that is one of dismissed cases.

Differential Revision: https://phabricator.services.mozilla.com/D149526
2022-06-22 05:27:28 +00:00
Chris Peterson c1c9a048ec Bug 1775162 - Fix C++20 build error in BSPPolygon template class definition. r=gfx-reviewers,jrmuizel
gcc -std=c++20 (but not clang -std=c++20) complains about template class definitions that specify the template parameter on the class constructor.

In file included from /builds/worker/workspace/obj-build/dist/include/nsDisplayList.h:43,
from /builds/worker/workspace/obj-build/dist/include/mozilla/layout/RemoteLayerTreeOwner.h:17,
from /builds/worker/workspace/obj-build/dist/include/mozilla/dom/BrowserParent.h:23,
from /builds/worker/checkouts/gecko/accessible/ipc/other/RemoteAccessible.cpp:13:
/builds/worker/workspace/obj-build/dist/include/mozilla/layers/BSPTree.h:30:18: error: expected ')' before '*' token
|   BSPPolygon<T>(T* aData, gfx::Polygon&& aGeometry)
|                ~ ^

Differential Revision: https://phabricator.services.mozilla.com/D149813
2022-06-22 04:06:47 +00:00
Nick Alexander 4c6dedd925 Bug 1768494 - Preserve devtools profile outside of ephemeral background profile. r=devtools-reviewers,nchevobbe
For `--backgroundtask ... --jsdebugger` invocations, the devtools
profile is kept inside the ephemeral background profile.  This means
that breakpoints, etc are not preserved across repeated debugging
invocations.  This change eases the debugging process.

Differential Revision: https://phabricator.services.mozilla.com/D145893
2022-06-22 04:05:26 +00:00
criss 8936ae36d5 Merge mozilla-central to autoland on a CLOSED TREE 2022-06-22 06:34:51 +03:00
criss e94cc6be6b Merge autoland to mozilla-central. a=merge 2022-06-22 06:31:23 +03:00
Thomas Wisniewski db8b4655a3 Bug 1775126 - fix a structured-cloning failure in the webcompat report-site-issue feature, and update and re-enable some of its tests; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D149847
2022-06-22 03:27:54 +00:00
Masayuki Nakano 9c2145a90d Bug 1770877 - part 31-3: Replace `insertLineBreak` variable in `HTMLEditor::InsertParagraphSeparatorAsSubAction` with a lambda r=m_kato
This can encapsule the long if-elseif-else blocks into the lambda.

Differential Revision: https://phabricator.services.mozilla.com/D149102
2022-06-22 02:54:34 +00:00
Masayuki Nakano 5af4b5cb8d Bug 1770877 - part 31-2: Make `HTMLEditor::InsertParagraphSeparatorAsSubAction` call `HandleInsertParagraphInParagraph` without `Selection` r=m_kato
The preceding call of `InsertBRElement` may collapse selection at the inserted
padding `<br>` element.  Only when calling `HandleInsertParagraphInParagraph`,
`InsertParagraphSeparatorAsSubAction` uses `Selection`.  So, only in this case,
we need to recompute the point to split for keeping current (odd) behavior.

Note that in normal cases, using `atStartOfSelection` gets same result.
However, if there are some invisible nodes such as comment nodes, doing it
may change the behavior.  For now, we should keep the current behavior.  It
should be sorted out when we make it stop inserting `<br>` elements for the
preparation of split without checking whether it's actually necessary.

Differential Revision: https://phabricator.services.mozilla.com/D149101
2022-06-22 01:52:32 +00:00
Masayuki Nakano 39b814f2f8 Bug 1770877 - part 31-1: Add WPT to check `insertParagraph` behavior r=m_kato
The expectations are exactly same as Chrome's behavior.  And checked by my
hands briefly, Safari also behaves as same as Chrome.

Differential Revision: https://phabricator.services.mozilla.com/D149100
2022-06-22 01:52:31 +00:00
Masayuki Nakano 47a4dbc560 Bug 1770877 - part 30: Make `HTMLEditor::HandleInsertParagraphInListItemElement` stop touching `Selection` directly r=m_kato
It touches `Selection` redundantly (i.e., immediately after that, it or its
caller collapse `Selection`).  So we can just stop it because we can ignore
the cases when the handling fails after the redundant `Selection` update and
it can be caused by tricky things with the mutation event listeners.

Note that without changing `SplitNodeResult` a lot, we cannot make it return
`SplitNodeResult`, and currently there is no motivation to do it because the
only caller does not need the detail of the split.  Therefore, I give up doing
it.

Differential Revision: https://phabricator.services.mozilla.com/D149099
2022-06-22 01:34:03 +00:00
Hiroyuki Ikezoe 41c2d38055 Bug 1772640 - Use NSCoordSaturatingMultiply to avoid overflowing nscoord. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D149838
2022-06-22 01:30:29 +00:00
Andreea Pavel 4198598761 Bug 1756585 - update disabling condition to include opt builds on mac too r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D149944
2022-06-22 01:28:38 +00:00
Masayuki Nakano c76d7f7b67 Bug 1770877 - part 29: Make `HTMLEditor::HandleInsertParagraphInHeadingElement` stop touching `Selection` directly r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D149098
2022-06-22 01:25:04 +00:00
Masayuki Nakano 9b86130934 Bug 1770877 - part 28-6: Make `HTMLEditor::HandleInsertParagraphInParagraph` stop touching `Selection` directly r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D149097
2022-06-22 01:18:35 +00:00
Daisuke Akatsuka b2c66bbd04 Bug 1775008: Fix timeout failure on Linux TV test. r=adw
In Linux TV test, as thare is case that the input filed lost the focus until
showing popup, timeout failure happens since the expected poup never be shown.
To avoid this, if losing the focus, retry setup to open popup.

Differential Revision: https://phabricator.services.mozilla.com/D149713
2022-06-22 01:06:42 +00:00
Masayuki Nakano a8fbc40014 Bug 1770877 - part 28-5: Get rid of unnecessary duplication of `EditorDOMPoint` in `HTMLEditor::HandleInsertParagraphInParagraph` r=m_kato
I tried to make the latter half preparation to call
`HTMLEditor::SplitParagraphWithTransaction`, but I cannot make it cleaner
because it needs to return `HTMLBRElement*` and `EditorDOMPoint` with maybe
modifying the DOM tree.  So, I keep it as-is, but I make replace the unnecessary
duplicated `EditorDOMPoint` with the original one which is adjusted to avoid
to create new empty link in the right paragraph.

Differential Revision: https://phabricator.services.mozilla.com/D149096
2022-06-22 01:05:47 +00:00
Masayuki Nakano fc4610f7d0 Bug 1770877 - part 28-4: Make `HTMLEditor::HandlerInsertParagraphInParagraph` take a split point and editing host r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D149095
2022-06-22 01:00:42 +00:00
Masayuki Nakano a1ce604b80 Bug 1770877 - part 28-3: Make `HTMLEditor::HandleInsertParagraphInParagraph` insert `<br>` element immediately after considering so r=m_kato
Using the wide scope `EditorDOMPoint pointToInsertBR` makes it harder to read.
Although this duplicates a call of `HTMLEditor::InsertBRElement` and a couple of
post processing, but I think that it's easier to read/understand.

Differential Revision: https://phabricator.services.mozilla.com/D149094
2022-06-22 00:40:20 +00:00
Daisuke Akatsuka a1cfc10fd2 Bug 1774885: Make empty input not target. r=adw
moz_inputhistory can accept empty string as its input column.
WHERE Clause of SQL getting Adaptive History has
`:searchString BETWEEN i.input AND i.input || X'FFFF'`
condition, but it will be true even if the input is empty string.
This is the cause of this bug.
So, we add one more condition checking whether the input is empty string to
resolve this problem.

Differential Revision: https://phabricator.services.mozilla.com/D149933
2022-06-22 00:10:11 +00:00
Masayuki Nakano c0a2068334 Bug 1770877 - part 28-2: Make `HTMLEditor::HandleInsertParagraphInParagraph` return earlier if should be default to insert `<br>` instead r=m_kato
If it needs to insert a `<br>` but the editor does not want to create new
paragraph, its caller should be default to insert a `<br>` element.  Rather
than checking this at inserting `<br>` element, it should do it at considering
the place to insert the new `<br>`.

Differential Revision: https://phabricator.services.mozilla.com/D149093
2022-06-21 23:50:42 +00:00
Masayuki Nakano b97aca0073 Bug 1770877 - part 28-1: Isolate the part of adjusting split point for avoiding to create new empty link in `HTMLEditor::HandleInsertParagraphInParagraph` r=m_kato
The method does several different things.  For making each part isolated,
this patch wraps the first part with a lambda.

Differential Revision: https://phabricator.services.mozilla.com/D149092
2022-06-21 23:38:06 +00:00