Commit Graph

854661 Commits

Author SHA1 Message Date
Erik Nordin
85c4c8e2fe Bug 1850303 - Refactor navigate r=gregtatum
Refactors the actions and assertions around page navigation
to be more declarative within the Translations test suite.

Depends on D187080

Differential Revision: https://phabricator.services.mozilla.com/D186908
2023-09-06 16:30:59 +00:00
Erik Nordin
9490dfcc80 Bug 1850303 - Refactor click change-source-language button r=gregtatum
Refactors clicking the change-source-language button to
be more declarative within the Translations test suite.

Depends on D186907

Differential Revision: https://phabricator.services.mozilla.com/D187080
2023-09-06 16:30:59 +00:00
Erik Nordin
7ddfca45ad Bug 1850303 - Refactor click translate button r=gregtatum
Refactors clicking the translate button to be more
declarative within the Translations test suite.

Depends on D186906

Differential Revision: https://phabricator.services.mozilla.com/D186907
2023-09-06 16:30:59 +00:00
Erik Nordin
e2f11dfc6a Bug 1850303 - Refactor click dismiss-error button r=gregtatum
Refactors clicking the dmismiss-error button to be more
delcarative within the Translations test suite.

Depends on D186905

Differential Revision: https://phabricator.services.mozilla.com/D186906
2023-09-06 16:30:59 +00:00
Erik Nordin
b0618aa070 Bug 1850303 - Refactor click restore-page button r=gregtatum
Refactors clicking the restore-page button to be more
declarative within the Translations test suite.

Depends on D186904

Differential Revision: https://phabricator.services.mozilla.com/D186905
2023-09-06 16:30:59 +00:00
Erik Nordin
ac3ca8cac3 Bug 1850303 - Refactor click cancel button r=gregtatum
Refactors clicking the cancel button to be more
declarative within the Translations test suite.

Depends on D186903

Differential Revision: https://phabricator.services.mozilla.com/D186904
2023-09-06 16:30:58 +00:00
Erik Nordin
9fd3987255 Bug 1850303 - Refactor OpenPanel r=gregtatum
Refactors opening the translations panel to be more
declarative within the Translations test suite.

Depends on D186902

Differential Revision: https://phabricator.services.mozilla.com/D186903
2023-09-06 16:30:58 +00:00
Erik Nordin
5469bc83c2 Bug 1850303 - Refactor page is translated r=gregtatum
Refactors assertions related to testing that the page
is translated in the Translations test suite.

Depends on D186901

Differential Revision: https://phabricator.services.mozilla.com/D186902
2023-09-06 16:30:58 +00:00
Erik Nordin
bb12b0ff5a Bug 1850303 - Refactor page is untranslated r=gregtatum
Refactors assertions related to testing that the page
is untranslated in the Translations test suite.

Differential Revision: https://phabricator.services.mozilla.com/D186901
2023-09-06 16:30:58 +00:00
Erik Nordin
697527671e Bug 1851216 - Sync RemotSettings once per TranslationsParent process r=gregtatum
Once per TranslationsParent Process, we will schedule
a requestIdleCallback to sync our RemoteSettings records.

This will ensure that users get updates promptly when we push
new changes to Remote Settings, or change which Remote Settings
channel we are pulling from.

Differential Revision: https://phabricator.services.mozilla.com/D187300
2023-09-06 16:28:00 +00:00
Anna Yeddi
e9ce06a67e Bug 1849581 - Add role=image to the moz-five-star wrapper. r=reusable-components-reviewers,shopping-reviewers,Gijs,hjones
Priving an accessible role to the `moz-five-star-rating` wrapper to ensure its `title`/`aria-label` is not ignored by the Accessibility API and that its value will be announced on hover when a screen reader like NVDA is running too.

Differential Revision: https://phabricator.services.mozilla.com/D187525
2023-09-06 16:18:40 +00:00
Chun-Min Chang
c18b9da1c5 Bug 1848193 - Skip conversion for 4-byte AVCC data r=media-playback-reviewers,aosmond
`ConvertNALUTo4BytesAVCC` converts all kinds of given AVCC data into
4-byte-header AVCC after varifying their data. However, if the header of
the given data is already 4-byte, there is no need to do the conversion.
The 4-byte-header AVCC data only need to check if the data is corrupt.

This patch addes a shortcut for 4-byte AVCC data to skip convesion
(replacing its internal data) and do the corrupt-check only.

Differential Revision: https://phabricator.services.mozilla.com/D186062
2023-09-06 16:15:31 +00:00
Chun-Min Chang
e9bc4f6baf Bug 1848193 - Change expectations in VideoDecoder's WPTs r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D186041
2023-09-06 16:15:31 +00:00
Chun-Min Chang
047f05221d Bug 1848193 - Enable WebCodecs on Windows r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D186040
2023-09-06 16:15:31 +00:00
Chun-Min Chang
2444911f7e Bug 1848193 - Check H264 data when converting from AVCC to AnnexB r=media-playback-reviewers,alwu
Instead of ignoring the conversion error, `ConvertAVCCTo4BytesAVCC`
should only return `Ok` when the given AVCC data can be converted.

When converting H264 data in AVCC format into AnnexB format, the first
step is to convert the AVCC data into 4-byte-header AVCC data. In this
step, `ConvertAVCCTo4BytesAVCC` ignores the error if it fails to read
the NAL body in the length that header claims to be. In order to check
if the given data is corrupt, it needs to return an error in this case.
Without returning an error, it can surprisingly return a `Ok` when no
conversion is done, if the first NAL header gives an incorrect NAL body
length.

In addition, to check if 4-byte AVCC data is corrupt, we should not
early return a `Ok` when the extra data claims the length is 4-byte. We
still need to read the NAL body to ensure the body length matches the
length claimed in the NAL header.

Depends on D185971

Differential Revision: https://phabricator.services.mozilla.com/D185972
2023-09-06 16:15:31 +00:00
Chun-Min Chang
db3a0dbaee Bug 1848193 - Add debug logs for close r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D185971
2023-09-06 16:15:30 +00:00
Anna Yeddi
5a5b5db9f6 Bug 1849703 - Adding a border to the Shopping sidebar to separate it from the page content on HCM. r=desktop-theme-reviewers,shopping-reviewers,Gijs,Itiel
Using `--in-content-box-border-color` since it resoves to the `CanvasText` and is using the same variable pair applied to the `#shopping-container` by default.

Differential Revision: https://phabricator.services.mozilla.com/D187526
2023-09-06 16:14:45 +00:00
Logan Rosen
f024d94b2b Bug 1786490 - reformat the tree using black 23.3.0 r=sylvestre,webdriver-reviewers,taskgraph-reviewers,whimboo,jmaher,ahal,perftest-reviewers,geckoview-reviewers,afinder,m_kato
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D186092
2023-09-06 16:14:30 +00:00
Logan Rosen
51f5fcdd75 Bug 1786490 - remove references to vendored pyparsing r=sylvestre,mach-reviewers,ahal,ahochheiden
Not necessary because pyparsing is no longer a dependency of packaging, so it is no longer vendored.

Differential Revision: https://phabricator.services.mozilla.com/D186411
2023-09-06 16:14:30 +00:00
Logan Rosen
983bcd711b Bug 1786490 - update chooser to Flask v2 r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D186410
2023-09-06 16:14:30 +00:00
Logan Rosen
736b980b9a Bug 1786490 - bump Jinja2 to 3.1.2 r=sylvestre,mach-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D186409
2023-09-06 16:14:29 +00:00
Logan Rosen
658caae5b1 Bug 1786490 - update to black 23.3.0 r=sylvestre,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D186086
2023-09-06 16:14:29 +00:00
Doug Thayer
3b66ad25bb Bug 1851416 - Properly guard that the proxy hasn't been revoked r=iain
Maybe a little bit alarming how simple this testcase is.

Differential Revision: https://phabricator.services.mozilla.com/D187511
2023-09-06 16:06:25 +00:00
Sandor Molnar
61aca7cda4 Backed out changeset b27dc23c302c (bug 1847307) for causing bc failures on browser/components/shopping/tests/browser/<random> CLOSED TREE 2023-09-06 19:33:42 +03:00
Sandor Molnar
d1c48089d6 Backed out changeset 9a1bfa2c79cd (bug 1837696) for causing failures on browser/components/shopping/tests/browser/<random> 2023-09-06 19:32:49 +03:00
Sandor Molnar
3898802351 Backed out changeset 64b9c8cb9525 (bug 1847979) for causing bc failures on browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_abandonment_tips.js 2023-09-06 19:07:46 +03:00
Mike Conley
8a18b44c43 Bug 1849124 - Make sure card-container calls MozLitElement's disconnectedCallback. r=fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D187507
2023-09-06 15:22:50 +00:00
Mike Conley
1582287747 Bug 1851684 - Make sure to call the MozLitElement disconnectedCallback in subclass overrides. r=fxview-reviewers,shopping-reviewers,kcochrane,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D187506
2023-09-06 15:22:50 +00:00
Mike Conley
74a88f17a9 Bug 1851684 - Make MozLitElement disconnect root from DocumentL10n in disconnectedCallback. r=mstriemer,reusable-components-reviewers,hjones,credential-management-reviewers,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D187505
2023-09-06 15:22:49 +00:00
Jared Hirsch
2a1c5e4d61 Bug 1837696 - Expose shopping strings to localization r=shopping-reviewers,fluent-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D186574
2023-09-06 15:00:55 +00:00
Sandor Molnar
2cc8f20769 Backed out changeset 91e76d818152 (bug 1849159) causing bc failures in browser/components/shopping/tests/browser/browser_shopping_urlbar.js CLOSED TREE 2023-09-06 17:47:09 +03:00
Sandor Molnar
b893d167c6 Backed out changeset f5f15b313e48 (bug 1851525) for causing bc failures in browser/base/content/test/performance/browser_startup_images.js 2023-09-06 17:46:35 +03:00
Julien Cristau
bea84536e2 Bug 1851580 - mozprofile: update for python 3.12 compatibility. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D187541
2023-09-06 14:25:39 +00:00
Andrew Creskey
cacc5b7471 Bug 1850880 - Remove metrics expiring in Firefox 120: networking.http_content_onstart/stop r=necko-reviewers,valentin
We are pivoting our OMT strategy and so these expiring probes will not provide additional value.

Differential Revision: https://phabricator.services.mozilla.com/D187503
2023-09-06 14:21:17 +00:00
Mike Kaply
d07874f373 Bug 1840118 - Enable engagement data by default. r=sclements,mossop
Differential Revision: https://phabricator.services.mozilla.com/D187388
2023-09-06 14:20:59 +00:00
Dão Gottwald
a5b58a7720 Bug 1847979 - Use CSS nesting for .urlbarView-body-inner, .urlbarView-results, .urlbarView-row, .urlbarView-row-inner, and .urlbarView-no-wrap rules. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D187441
2023-09-06 14:08:35 +00:00
Emilio Cobos Álvarez
cc72d328af Bug 1851641 - Fix hiding cursor while typing. r=masayuki
This didn't work properly for non-native key bindings because:

  https://hg.mozilla.org/mozilla-central/rev/8934e6e6ccb6

Moved the DetachedFromEditorOrDefaultPrevented() check before the "hide
cursor" check, rather than after. This was a quick fix, because if we're
detached from the editor, then GetPresContext would assert. But I didn't
realize at the time (since it was a long time since I wrote the patch)
that most events there actually are default-prevented.

To fix this, split the checks. Checks for DetachedFromEditor() first,
and only after potentially hiding the cursor check whether the event is
default-prevented.

Differential Revision: https://phabricator.services.mozilla.com/D187536
2023-09-06 14:01:53 +00:00
Jared Hirsch
ba309a7f96 Bug 1847307 - Insert final shopping copy r=shopping-reviewers,fluent-reviewers,desktop-theme-reviewers,Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D186540
2023-09-06 14:00:19 +00:00
Vinny Diehl
5b6362de1d Bug 1851325 - Center logo vertically on the about dialog r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D187355
2023-09-06 13:58:16 +00:00
Masayuki Nakano
e06b33eaa9 Bug 1850938 - Make ContentEventHandler::OnQueryTextRectArray and ContentEventHandler::OnQueryTextRect work with strong pointers again r=smaug
Only them may run script.  Therefore, they need to use `PostContentIterator`
and `SimpleRange` instead of `UnsafePreContentIterator` and `UnsafeSimpleRange`.

Additionally, they use `ContentEventHandler::ConvertFlatTextOffsetToDOMRange`
which returns `DOMRangeAndAdjustedOffsetInFlattenedText` but it stores a range
and a text node with raw pointers.  Therefore, it needs to be a template
class to store them with or without strong pointers.  Therefore, this patch
makes it and name `UnsafeDOMRangeAndAdjustedOffsetInFlattenedText` for the
raw pointers version.

Then, `ConvertFlatTextOffsetToDOMRange` needs to be a template method too
since it returns `DOMRangeAndAdjustedOffsetInFlattenedText` or
`UnsafeDOMRangeAndAdjustedOffsetInFlattenedText`.

Finally, `GetFirstFrameInRangeForTextRect` and `GetLastFrameInRangeForTextRect`
need to be template methods too because they need to take `SimpleRange` in
the methods, but `UnsafeSimpleRange` in the other methods.

Differential Revision: https://phabricator.services.mozilla.com/D187423
2023-09-06 13:55:58 +00:00
Andrew Halberstadt
97258e481a Bug 1851650 - Port Gecko testing docs from relengdocs to firefox-source-docs, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D187486
2023-09-06 13:46:12 +00:00
Niklas Baumgardner
21dcfc1675 Bug 1849159 - Toolbar button should hide when opted out. r=shopping-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D187052
2023-09-06 13:41:37 +00:00
Mike Kaply
dad34a6594 Bug 1851525 - Allow Firefox View icon to be set via Nimbus. r=sclements,desktop-theme-reviewers,fxview-reviewers,dao,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D187458
2023-09-06 13:41:27 +00:00
Sandor Molnar
9844277299 Backed out 3 changesets (bug 1850045) for causing decision task bustages CLOSED TREE
Backed out changeset b5870683550d (bug 1850045)
Backed out changeset 4ecd1e0ccff8 (bug 1850045)
Backed out changeset 74ec20ac8f53 (bug 1850045)
2023-09-06 16:43:22 +03:00
Ben Hearsum
8c643cc2fa Bug 1850045: replace command-context with task-context r=taskgraph-reviewers,releng-reviewers,gabriel
Most of this patch is ripping `command-context` out from Gecko. The other parts are the fairly straightforward conversions from `command-context` to `task-context`.

Differential Revision: https://phabricator.services.mozilla.com/D186822
2023-09-06 13:30:45 +00:00
Ben Hearsum
4e29477066 Bug 1850045: fix bustage introduced by taskgraph 6.2.1 update r=ahal,taskgraph-reviewers,releng-reviewers
This is only sortof a new issue - it's come up because we longer allow `group_by` functions to be overridden, and the taskgraph version of the `single` group doesn't handle the `only-for` blocks that we use all over the place.

This patch provides a quick fix -- renaming the Gecko `single` group-by to `single-with-filters`, and using that in most places. (There were a couple of places that switching to `with-attributes` was simple enough - but in many cases we cannot yet replicate this functionality with `from-deps` alone AFAIK.)

Differential Revision: https://phabricator.services.mozilla.com/D186821
2023-09-06 13:30:45 +00:00
Ben Hearsum
c1a3964427 Bug 1850045: Upgrade vendored taskgraph module to 6.2.1 r=taskgraph-reviewers,mach-reviewers,gabriel,ahal
Differential Revision: https://phabricator.services.mozilla.com/D186820
2023-09-06 13:30:44 +00:00
Ben Hearsum
7e9005e687 Bug 1849644: use new dev bouncer instance for staging releases r=jcristau,releng-reviewers
We've created a new, dev bouncer instance as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1819405 / https://mozilla-hub.atlassian.net/browse/SVCSE-1186. The main difference between it and the stage instance is that dev points at ftp.stage.mozaws.net. This happens to be the place that try releases are uploaded to - which means that we can get bouncer-check and final verify to finally pass on try releases by using it.

(bouncer stage points at archive.mozilla.org - so even though we can successfully submit releases to its admin endpoint, what we submit does not often line up with what is served when we query the public endpoint.)

Differential Revision: https://phabricator.services.mozilla.com/D186634
2023-09-06 13:04:00 +00:00
Jan Varga
020157fb8d Bug 1851783 - Move OriginParser to separate source files; r=hsingh
Differential Revision: https://phabricator.services.mozilla.com/D187540
2023-09-06 12:54:04 +00:00
Jan de Mooij
635571ffcb Bug 1850305 part 3 - Add an assertion. r=iain
This would catch similar issues in the future and is a nice invariant to maintain.

Differential Revision: https://phabricator.services.mozilla.com/D187266
2023-09-06 12:53:11 +00:00