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

826379 Коммитов

Автор SHA1 Сообщение Дата
Nika Layzell c5d6884e3e Bug 1808630 - Part 2: Rename CallerInnerWindow to IncumbentInnerWindow and add EntryInnerWindow, r=smaug
This makes the correlation between the method names and what they do
more clear, and adds an Entry variant for the entry global.

Depends on D166119

Differential Revision: https://phabricator.services.mozilla.com/D166207
2023-01-09 22:22:05 +00:00
Nika Layzell 05dc1d3602 Bug 1808630 - Part 1: Clean up after test_edit_contextmenu.html, r=smaug
This fixes the main issue, and makes the test pass by avoiding issues with the
window sticking around after test completion, messing up future runs.

Differential Revision: https://phabricator.services.mozilla.com/D166119
2023-01-09 22:22:05 +00:00
Mark Striemer a610fd5886 Bug 1808741 - Patch lit's styleMap to not set the style attribute on first render r=mtigley
lit calls `element.setAttribute("style", "<our styles>")` on first render of an
element so that it will have the style property set in the markup if it is being
server-side rendered. We don't need that, and it causes CSP errors in
about:logins so this patches out the functionality.

https://github.com/lit/rfcs/issues/13

Differential Revision: https://phabricator.services.mozilla.com/D165240
2023-01-09 22:20:21 +00:00
Peter Van der Beken 68c4f242d6 Bug 1806994 - Define @@toStringTag on Xrays for namespace objects. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D165459
2023-01-09 22:19:53 +00:00
Peter Van der Beken c4a3af2780 Bug 1806994 - Define @@toStringTag on the WebAssembly namespace object. r=rhunt
Namespace objects have a class string (https://webidl.spec.whatwg.org/#ref-for-dfn-class-string⑨)
so they need to have a @@toStringTag property (https://webidl.spec.whatwg.org/#ref-for-dfn-class-string).

Differential Revision: https://phabricator.services.mozilla.com/D165458
2023-01-09 22:19:53 +00:00
Peter Van der Beken b1f8e6a7ef Bug 1806994 - Define @@toStringTag on namespace objects. r=smaug
Namespace objects have a class string (https://webidl.spec.whatwg.org/#ref-for-dfn-class-string⑨)
so they need to have a @@toStringTag property (https://webidl.spec.whatwg.org/#ref-for-dfn-class-string).

Differential Revision: https://phabricator.services.mozilla.com/D165457
2023-01-09 22:19:53 +00:00
Niklas Baumgardner 492fde44b3 Bug 1779453 - Prime video wrapper fix. r=cmkm,pip-reviewers,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D164509
2023-01-09 22:04:55 +00:00
Marian-Vasile Laza 31c9b3f6c3 Backed out changeset bc0b215802bb (bug 1785123) for causing mochitest failures on test_privateWin.html. CLOSED TREE 2023-01-10 00:44:31 +02:00
Emilio Cobos Álvarez dc985947cf Bug 1807963 - More unexpected passes in layout/reftests/bugs.
Try to simplify a bit the annotations as well.

MANUAL PUSH: Orange fix CLOSED TREE
2023-01-09 23:40:29 +01:00
Dana Keeler 99fd87410b Bug 1808816 - find potential client certificates on the socket thread rather than the main thread r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D166371
2023-01-09 21:46:59 +00:00
Karl Tomlinson 53efa7c27d Bug 1808871 connect mStreamName Mirror r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D166245
2023-01-09 21:45:41 +00:00
Fred Chasen f63a70052e Bug 1790757 - Add fallback when getting print settings r=mstriemer
If the printer info returns without a name, or otherwise errors when checking the settings, it will prevent the print dialog from opening and switching to a different printer.

This wraps the intial refreshSettings call and tries to fallback to another printer if the last used one fails.

Differential Revision: https://phabricator.services.mozilla.com/D162437
2023-01-09 21:38:37 +00:00
Fred Chasen 6818f2a62a Bug 1798965 - Use classes for simplified print mode generated content r=mstriemer
Updates to using the classes defined in CSS instead of Ids when generating the HTML content for the simplified print mode.

Sets padding to 0 for the body to allow customizing the margins in the print dialog.

Differential Revision: https://phabricator.services.mozilla.com/D162914
2023-01-09 21:38:02 +00:00
Erich Gubler 88b452f2a7 Bug 1809216: add missing refcount increment for `GLBlitHelperD3D::mD3D11` in `GLBlitHelperD3D::getD3D11` r=jgilbert,jrmuizel,gfx-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D166385
2023-01-09 21:31:02 +00:00
Nathan LaPre f77d2ea214 Bug 1805316: Use generic ARIA accessibles for mtable, mtr with non-table display style, r=Jamie
These MathML table elements may not have a table display style, in which case
they shouldn't be HTML table accessibles. This revision changes the logic of
MathMLMarkupMap such that mtable, mtr elements create generic ARIA accessibles
if the display style for the element is something other than 'table'. This
revision also adds a test to verify that the roles are still reported correctly,
even with this change.

Differential Revision: https://phabricator.services.mozilla.com/D165980
2023-01-09 21:03:46 +00:00
Alex Jakobi ae78729ca3 Bug 1804597 - Remove HasReceivedAllContentNotifications and overrides. r=dlrobertson
Differential Revision: https://phabricator.services.mozilla.com/D166333
2023-01-09 21:02:10 +00:00
Narcis Beleuzu 83d927b5f0 Backed out changeset 30d7636620f8 (bug 1804684) as req by smaug 2023-01-09 22:51:57 +02:00
Drew Willcoxon 8ca1546092 Bug 1808697 - Allow Merino and remote settings suggestions to be passed separately to ensureQuickSuggestInit(). r=daleharvey
`QuickSuggestTestUtils.ensureQuickSuggestInit()` was written before Merino, so
it assumes the suggestion objects passed in are remote settings suggestions.
This revision modifies it so Merino and remote settings suggestions can both be
passed in. That makes it a little nicer for tests that need to test Merino
suggestions in particular, like navigational suggestions, dynamic Wikipedia,
etc.

Another motivation for this change is that it makes it clear which type of
suggestion is being passed to `ensureQuickSuggestInit()`. Unfortunately Merino
suggestion objects are slightly different from remote settings result objects
(`block_id` vs. `id` for example), which are both different from UrlbarResult
objects, and it can be confusing when reading tests. Since "result" is the name
of remote settings objects used internally in the remote settings client, I've
used that term here, and I've updated all callers to use it instead of
"suggestion".

This also makes `MerinoTestUtils` and `QuickSuggestTestUtils` singletons.
Otherwise the new `MerinoTestUtils` instance used inside `QuickSuggestTestUtils`
isn't the same as the one used in the test that calls into
`QuickSuggestTestUtils`, which is very confusing. This made me realize it's a
good idea for these test utils objects to be singletons.

Finally I removed `is_top_pick` handling from the remote settings client and
remote settings suggestions, since the related test is now using Merino. I also
removed `_test_is_best_match` since only one test was using it and it's not
necessary.

Depends on D166019

Differential Revision: https://phabricator.services.mozilla.com/D166050
2023-01-09 20:46:00 +00:00
Drew Willcoxon ac048d21a5 Bug 1806950 - Don't send custom engagement pings for navigational suggestions. r=daleharvey
This stops trying to send custom engagement pings for navigational
suggestions. That fixes the JS error that's due to the fact that these
suggestions don't have an advertiser. The purpose of these pings is to report
aggregate engagements to partners, and that's not applicable to navigational
suggestions, so not sending pings for these is OK.

I added browser_telemetry_navigationalSuggestions.js to ensure we're not sending
pings. This test will probably need to be substantially modified when we
implement all the required telemetry for navigational suggestions. That's
tracked in [this Jira ticket](https://mozilla-hub.atlassian.net/browse/SNT-337) and documented in the spec.

Until we implement that new telemetry, navigational suggestions are treated as
non-sponsored suggestions w/r/t telemetry, so I copied this file from
browser_telemetry_nonsponsored.js.

Depends on D164615

Differential Revision: https://phabricator.services.mozilla.com/D166019
2023-01-09 20:45:59 +00:00
Randell Jesup d42eaceade Bug 1785123: Enable Origin Private File System (OPFS) by default on Nightly r=dom-storage-reviewers,asuth,jari,jstutte,janv,dom-worker-reviewers
Intent to prototype sent to dev-platform on Aug 19, 2022:
https://groups.google.com/a/mozilla.org/g/dev-platform/c/gc4BxcgkN7E

Intent to ship sent to dev-platform on Nov 10, 2022:
https://groups.google.com/a/mozilla.org/g/dev-platform/c/dsRxP4liTek

Differential Revision: https://phabricator.services.mozilla.com/D154818
2023-01-09 20:43:44 +00:00
Daniel Holbert 9509f4c4f9 Bug 1808997: Use an even font-size in WPT position-sticky-writing-modes.html, so that it's not laying out text with a fractional central baseline. r=jfkthame
Before this patch, this test was using Ahem text with a 25px font-size and a
vertical writing mode. The vertical writing-mode causes the text to be
baseline-aligned using a *central* baseline, which ends up being at a
half-pixel position, since our font-size is odd. Specifically: the central
baseline is 25px/2 = 12.5px inwards from the edge of the glyph.

The UA may choose to round this fractional central baseline to a whole pixel
value when sizing/placing content, which in turn casues this test to fail with
content being 1px away from where the test expects it to be.

This patch addresses this issue by making the test use an even number as the
font-size (30px), which produces a nice whole-number pixel value for the
central basleine. This avoids creating a depending on the UA's choice of
rounding behavior.

This makes the test pass in Firefox, and I believe it continues to pass in
other browsers where it was already passing.

Differential Revision: https://phabricator.services.mozilla.com/D166232
2023-01-09 20:22:31 +00:00
Eitan Isaacson 9bda15c625 Bug 1769824 - Move text range bounds implementation to TextLeafRange. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D166370
2023-01-09 19:56:20 +00:00
Jeff Muizelaar d8212052f2 Bug 1809154. Silently fail to read convert unsupported transfer functions instead of crashing. r=gfx-reviewers,jnicol
This isn't great but I'm pretty sure it's better than crashing.

Differential Revision: https://phabricator.services.mozilla.com/D166338
2023-01-09 19:08:12 +00:00
Marian-Vasile Laza 5fdda342eb Backed out 4 changesets (bug 1805842, bug 1806472, bug 1806473, bug 1803537) for causing buils bustage on Gecko Decition Task. CLOSED TREE
Backed out changeset ffeede03c779 (bug 1806473)
Backed out changeset cab601f1b07d (bug 1806472)
Backed out changeset fa2cdac6989a (bug 1805842)
Backed out changeset 6eab46abfd71 (bug 1803537)
2023-01-09 21:14:59 +02:00
Mozilla Releng Treescript fa9ee2bc4d no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
fr -> 0bfd83f4d14ae65615b555494a7607e74cd59512
fur -> 42b6efe8e595d21ede64303e5c265f615989eb70
gn -> 064414bd8faa6ce689ab51f5236d94a700b11953
lo -> cabf33235fc62553e2309f5da5802b3998cf21a8
oc -> 5aaf878e171ba98210145948eca63bce70883745
pt-BR -> 338783ed80c1d1dba6da930eaf83e55c95cbf455
sl -> 8889387fb77489b858f138dc592763ad362ec38a
sr -> 5e6b0c123659e627a50077b44705625f561295fb
2023-01-09 19:05:58 +00:00
serge-sans-paille 925670b604 Bug 1806473 - Cleanup: gecko_taskgraph/transforms/test/raptor.py r=taskgraph-reviewers,ahal,jlorenzo
* Use enumerate(...) instead of manual indexing
* It's safe to modify a list we're iterating on as long as we break out
  of the iteration right after the modification.

Differential Revision: https://phabricator.services.mozilla.com/D165053
2023-01-09 18:48:58 +00:00
serge-sans-paille 3a1e84b660 Bug 1806472 - Move redundant call to fromNow r=taskgraph-reviewers,ahal,jlorenzo
Basic loop invariant code motion. The impact on execution time is not
totally negligible due to the number of tests involved.

Differential Revision: https://phabricator.services.mozilla.com/D165052
2023-01-09 18:48:58 +00:00
serge-sans-paille 03b09145c7 Bug 1805842 - Introduce gecko_taskgraph.util.copy_task r=taskgraph-reviewers,jlorenzo
This module defines a single, efficient function to deepcopy a task. It
is faster than deepcopy because it doesn't need to track cycles and
duplicate references that don't make sense for tree (and not graph)
structures.

I measure a speedup > 10% on mach taskgraph tasks --fast >/dev/null.

Differential Revision: https://phabricator.services.mozilla.com/D164789
2023-01-09 18:48:58 +00:00
serge-sans-paille f22326b4d4 Bug 1803537 - Prune some deepcopy from gecko_taskgraph/util/scriptworker.py r=ahal,taskgraph-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164646
2023-01-09 18:48:57 +00:00
Oriol Brufau 5f16781e49 Bug 1808965 - Stop calling _mouseleave and _mouseenter from _setPositionalAttributes. r=dao
Calling _mouseleave and _mouseenter from _setPositionalAttributes used
to be needed to update the beforehovered and afterhovered attributes,
as the tabs these attributes were set on might have changed.

However, bug 1808661 removed these attributes, so mouseenter/mouseleave
events should be sufficient for updating _hoveredTab itself.

_setPositionalAttributes is a hot code-path, so avoiding the expensive
querySelector("tab:hover") will improve performance when having lots of
tabs.

Depends on D166094

Differential Revision: https://phabricator.services.mozilla.com/D166225
2023-01-09 18:29:38 +00:00
Edgar Chen 323802a44b Bug 1762392 - Part 3: Make Clipboard support pasting file; r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D142634
2023-01-09 18:27:38 +00:00
Edgar Chen 52a0cff547 Bug 1762392 - Part 2: Put utility functions for NSPasteboardItem to nsCocoaUtils; r=spohl
So that we could reuse them in Clipboard code.

Differential Revision: https://phabricator.services.mozilla.com/D142572
2023-01-09 18:27:37 +00:00
Edgar Chen b01c11e8d8 Bug 1762392 - Part 1: Move pasteboard type declarations to nsCocoaUtils; r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D162569
2023-01-09 18:27:37 +00:00
Edgar Chen 8dd00bf186 Bug 1809152 - Remove unused argument from nsContentUtils::IPCTransferableItemToVariant; r=nika
which is unused after bug 1781129.

Differential Revision: https://phabricator.services.mozilla.com/D166314
2023-01-09 18:26:49 +00:00
Michael Froman 30230ce5ae Bug 1809193 - add error message output if generating build files fails in loop-ff.sh r=dbaker DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D166364
2023-01-09 18:24:34 +00:00
Dan Robertson ab82eb7020 Bug 1804583 - image orientation should be used for data url requests. r=emilio
- Images with a data url source should be treated as same-origin requests,
   meaning that the image-orientation should be respected.
 - Add web platform test for a image with a data url source and
   image-orientation: none.
 - Fix the blob url test for image-orientation: none.

Differential Revision: https://phabricator.services.mozilla.com/D164237
2023-01-09 18:21:19 +00:00
Emilio Cobos Álvarez 56be5080d2 Bug 1807687 - Simplify Windows keyboard indicator setting handling. r=NeilDeakin
The only thing that can explain this is the WM_UPDATEUISTATE state
getting out of sync in a way that we think we need to unconditionally
show focus indicators for a window.

I tried to first make this less error prone (see patch above) but
digging more into these messages, I'm pretty sure we just don't need all
this code. See:

 * https://devblogs.microsoft.com/oldnewthing/20130516-00/?p=4343
 * https://devblogs.microsoft.com/oldnewthing/20130517-00/?p=4323

In particular, this is intended to be a windows feature to not show
keyboard indicators on dialogs until you use the keyboard. But that's
how Gecko dialogs behave already due to how :focus-visible behaves as
per:

  https://searchfox.org/mozilla-central/rev/43ee5e789b079e94837a21336e9ce2420658fd19/toolkit/components/prompts/src/CommonDialog.jsm#319

I haven't been able to repro this state, but sounds believable that it
could happen after opening a native dialog or so on?

The purpose of this code is to implement the 'Underline access keys' in
the Keyboard Accessibility control panel of windows.

There's an easier way of tracking this, via the SPI_GETKEYBOARDCUES SPI,
documented in:

  https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-systemparametersinfoa

Hook that into LookAndFeel rather than using custom IPC and so on.

Differential Revision: https://phabricator.services.mozilla.com/D165578
2023-01-09 18:19:03 +00:00
Greg Mierzwinski 5fa5bdba69 Bug 1806035 - Run Speedometer 3 in CI. r=perftest-reviewers,afinder
This patch adds the speedometer 3 benchmark test to raptor enables it for CI. In CI, it'll start by running on Linux, and MacOSX on Firefox, Chrome, and Chromium. The patch also adds a new method for parsing benchmark tests that is more generic and works in conjunction with the `custom_data` option.

Differential Revision: https://phabricator.services.mozilla.com/D165988
2023-01-09 18:13:40 +00:00
alwu 99766a2428 Bug 1808063 - remove threading assertion. r=media-playback-reviewers,padenot
Based on the callstack, this function can be called on the manager
thread as well.

Differential Revision: https://phabricator.services.mozilla.com/D166121
2023-01-09 18:09:49 +00:00
Emilio Cobos Álvarez 3ad7017163 Bug 1807963 - Remove non-standard values of caption-side for good. r=TYLin,layout-reviewers
They have been disabled since bug 1688695. There's a variety of
table-caption bugs that would be easier to fix if we didn't have to
account for side-captions.

Differential Revision: https://phabricator.services.mozilla.com/D165690
2023-01-09 18:02:23 +00:00
Ben Hearsum 2922349567 Bug 1807926: disable autoconfig tests for tests against MSIX builds r=mkaply
We don't support autoconfig for these builds.

Differential Revision: https://phabricator.services.mozilla.com/D166369
2023-01-09 18:01:10 +00:00
Kelly Cochrane e634e61399 Bug 1808220 - Hide vertical divider line in tabs toolbar when Fx View is disabled r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D166215
2023-01-09 17:54:15 +00:00
Ben Hearsum 7c8cfb397d Bug 1807923: disable xpcshell update tests against msix packages r=application-update-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D165753
2023-01-09 17:26:57 +00:00
Bobby Holley 65d690a335 Bug 1807763 - Set the randomized midi denial delay to 0 in automation. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D165581
2023-01-09 17:08:48 +00:00
Bobby Holley 5ebdbedf21 Bug 1806495 - Hoist the MIDI service onto a dedicated background task queue. r=nika,gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D165441
2023-01-09 17:07:35 +00:00
Bobby Holley f061978369 Bug 1806495 - Stand up a background task queue for the MIDI service. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D165440
2023-01-09 17:07:34 +00:00
Bobby Holley 86d41b87a0 Bug 1806495 - Make PMIDIPort a top-level protocol. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D165439
2023-01-09 17:07:34 +00:00
Bobby Holley aaaf9a1c47 Bug 1806495 - Make PMIDIManager a top-level protocol. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D165438
2023-01-09 17:07:33 +00:00
Bobby Holley d506fc3130 Bug 1806495 - Make PMIDIPort refcounted. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D165437
2023-01-09 17:07:33 +00:00
Bobby Holley 30a62f613b Bug 1806495 - Use a helper class to null out the weak reference in MIDIPortChild. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D165436
2023-01-09 17:07:33 +00:00