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

759693 Коммитов

Автор SHA1 Сообщение Дата
André Bargull c263708a61 Bug 1686052 - Part 10: Use new language tag canonicalisation algorithm. r=tcampbell
UTS #35 (version 38) overhauled the language tag canonicalisation algorithm
and CLDR 38 also added new alias entries to replace some deprecated language
subtags with a new, preferred form.

Overview of canonicalisation changes:
- Script aliases must now be processed. (Script alias data was already present
  in CLDR, but the previous canonicalisation algorithm never processed it.)
- Sign language canonicalisation was added.
- Grandfathered tags are now handled like any other tag. It is no longer
  required to perform exact matches, but instead individual subtags are
  compared. For example both "art-lojban" and "art-ZZ-lojban" are now
  canonicalised to "jbo" resp. "jbo-ZZ".


Changes in make_intl_data.py:
- Split `writeMappingsBinarySearchBody` from `writeMappingsBinarySearch` so it
  can be used in the new `writeSignLanguageMappingsFunction` function.
- `writeMappingsBinarySearchBody` splits the `name` parameter in two distinct
  parameters `source_name` and `target_name`. This is also needed for the new
  `writeSignLanguageMappingsFunction` function.
- Change `writeVariantTagMappings` to allow no replacements.
  - For example the alias entry `<languageAlias type="und_bokmal" replacement="und">`
    removes the "bokmal" variant subtags, but doesn't add any replacement tags.
- Replace "grandfathered" with "legacy", because UTS and CLDR no longer use
  that term.
- `readSupplementalData` was changed to collect all alias rules into a single
   dict. This matches how the new UTS #35 canonicalisation algorithm is
   specified. Later they are split into individual dictionaries for each subtag.

Now that we no longer need to support old Python versions, we can use newer
features like format strings. I've used them exclusively in new code and also
replaced other `str.format()` calls in functions which were modified in this
patch.

Differential Revision: https://phabricator.services.mozilla.com/D101398
2021-06-04 17:42:26 +00:00
André Bargull e51fb57651 Bug 1686052 - Part 9: Remove no longer needed locale maximization when removing likely subtags. r=jwalden
The two ICU bugs (ICU-10220 and ICU-12345) have been resolved and it's now no
longer necessary to call `uloc_addLikelySubtags` before calling
`uloc_minimizeSubtags`.

Drive-by change:
- Replaced `strlen` with `std::char_traits<char>::length`.

Differential Revision: https://phabricator.services.mozilla.com/D101396
2021-06-04 17:42:26 +00:00
André Bargull 5e96ec90b6 Bug 1686052 - Part 8: Remove guards around previous ICU draft APIs. r=jwalden
builtin/TestingFunctions.cpp:
`ucal_getHostTimeZone()` has been promoted to "stable" in ICU 68, so we can
remove the `ifndef U_HIDE_DRAFT_API` guard.

intl/ListFormat:
`UListFormatter{Type,Width}` were also promoted to "stable" in ICU 68. This
allows to enable "type" and "style" options for `Intl.ListFormat` by default.

Differential Revision: https://phabricator.services.mozilla.com/D101395
2021-06-04 17:42:25 +00:00
André Bargull c439283c1a Bug 1686052 - Part 7: Bump minimum required ICU version to 68.2. r=jwalden
Change the system requirement to ICU 68 in order to remove some conditional
code in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D101394
2021-06-04 17:42:25 +00:00
André Bargull bcc71e6d16 Bug 1686052 - Part 6: Update expected tests results. r=jwalden
Updating to CLDR 38 means a couple of format strings have changed, update the
expected results accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D101393
2021-06-04 17:42:25 +00:00
André Bargull 1dab94286d Bug 1686052 - Part 5: Update numbering and measuring unit systems. r=jwalden
Updates the numbering and measuring unit systems data to CLDR 38 by running
`make_intl_data.py numbering` and `make_intl_data.py units`.

Differential Revision: https://phabricator.services.mozilla.com/D101392
2021-06-04 17:42:24 +00:00
André Bargull b104468eb1 Bug 1686052 - Part 4: Update tzdata in ICU data files to 2021a. r=jwalden
ICU 68.2 ships with tzdata 2020d, so update again to 2021a.

Differential Revision: https://phabricator.services.mozilla.com/D101391
2021-06-04 17:42:19 +00:00
André Bargull 50a541b708 Bug 1686052 - Part 3: Update in-tree ICU to release 68.2. r=jwalden
Update to ICU 68.2 by running "update-icu.sh" with "maint/maint-68" as the target.

Differential Revision: https://phabricator.services.mozilla.com/D101389
2021-06-04 17:42:10 +00:00
André Bargull d4cc682ab8 Bug 1686052 - Part 2: Update ICU build script to use new "sources.txt" file. r=jwalden
<https://unicode-org.atlassian.net/browse/ICU-10879> added a separate
"sources.txt" file which lists all source files per directory.

Differential Revision: https://phabricator.services.mozilla.com/D101366
2021-06-04 17:42:09 +00:00
André Bargull 2a7fef007a Bug 1686052 - Part 1: Update or remove ICU patches. r=jwalden
Update the patch from bug 1614941, because CLDR 38 adds its own patterns for
"MMMMd" and "yMMMM", which both conflict with our customised patterns. The
customised patterns were updated per the discussion in
<https://bugzilla.mozilla.org/show_bug.cgi?id=1614941#c32>.

Remove the patches from bug 1433303 and bug 1534160. Both are no longer needed,
because they've been integrated into upstream.

Differential Revision: https://phabricator.services.mozilla.com/D101365
2021-06-04 17:42:09 +00:00
Sandor Molnar 2207fdd99a Backed out changeset 6591aff2047f (bug 1691762) for causing mochitest failures in browser_pocket_AboutPocketParent. CLOSED TREE 2021-06-04 21:02:59 +03:00
Henri Sivonen 9bac3b6ab2 Bug 1709125 - Make Document::HasFocus() use the BrowsingContext hierarchy. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D114348
2021-06-04 17:05:02 +00:00
Ashray 2a6cced51a Bug 1707074 - wrap debug logging for related realms feature in a pref check. r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D116153
2021-06-04 17:04:19 +00:00
Andrey Bienkowski b1584ed3b3 Bug 1714537 - Use async/await in devtools/server/tests/chrome/test_inspector_getImageData.html r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D116826
2021-06-04 16:49:20 +00:00
Byron Campen [:bwc] 37c2e1945e Bug 1706261: Avoid racy accesses to thread_ r=ng
Differential Revision: https://phabricator.services.mozilla.com/D116746
2021-06-04 16:45:08 +00:00
Andrew Halberstadt 8f7bfe4028 Bug 1696003 - [ci] Enable more mochitest-webgl1-core tasks with fission-webgl-ipc, r=jmaher
This adds the following tasks on central:
+test-linux1804-64-asan-qr/opt-mochitest-webgl1-core-fis-gli-e10s
+test-linux1804-64-qr/debug-mochitest-webgl1-core-fis-gli-e10s
+test-linux1804-64-shippable-qr/opt-mochitest-webgl1-core-fis-gli-e10s
+test-macosx1015-64-qr/debug-mochitest-webgl1-core-fis-gli-e10s
+test-macosx1015-64-shippable-qr/opt-mochitest-webgl1-core-fis-gli-e10s
+test-windows10-64-qr/debug-mochitest-webgl1-core-fis-gli-e10s
+test-windows10-64-shippable-qr/opt-mochitest-webgl1-core-fis-gli-e10s

And the following tasks on autoland:
+test-linux1804-64-asan-qr/opt-mochitest-webgl1-core-fis-gli-e10s
+test-linux1804-64-qr/debug-mochitest-webgl1-core-fis-gli-e10s
+test-linux1804-64-qr/opt-mochitest-webgl1-core-fis-gli-e10s
+test-macosx1015-64-qr/debug-mochitest-webgl1-core-fis-gli-e10s
+test-macosx1015-64-qr/opt-mochitest-webgl1-core-fis-gli-e10s
+test-windows10-64-qr/debug-mochitest-webgl1-core-fis-gli-e10s
+test-windows10-64-qr/opt-mochitest-webgl1-core-fis-gli-e10s

Differential Revision: https://phabricator.services.mozilla.com/D116832
2021-06-04 15:37:48 +00:00
Andrew Halberstadt 12457cf835 Bug 1713888 - Remove 'skip-if' annotation in browser/base/content/test/backforward/browser_history_menu.js, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D116749
2021-06-04 15:37:47 +00:00
Andrew Halberstadt 87c38a436a Bug 1713634 - [ci] Migrate MacOS ccov builds to 1015, r=marco,jmaher
This adds the set of macosx1015-qr tests to ccov in the full taskgraph (and
removes the 1014 set which is just TV). Since these task weren't running
anywhere it has no impact on target task graphs.

I didn't bother testing on try since they aren't running there anyway. So have
no idea if this change introduces new failures. But if we cared about that we
would be running them ;).

Differential Revision: https://phabricator.services.mozilla.com/D116395
2021-06-04 15:36:33 +00:00
Nicolas Chevobbe d4bfdc5fa3 Bug 1714518 - [devtools] Remove testActor#hasNode. r=jdescottes.
The methods is replaced by a helper.
Some tests were using testActor.hasNode as
a way to check if a frame switch was successful;
for those we check the markup instead.

Depends on D116692

Differential Revision: https://phabricator.services.mozilla.com/D116818
2021-06-04 15:33:10 +00:00
Scott 07e7f25565 Bug 1691762 - Save to Pocket button panels to fluent r=gvn,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113133
2021-06-04 15:15:20 +00:00
Olli Pettay f0114836f9 Bug 1714426 - Disable bfcache in parent for the currently failing tests, r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D116768
2021-06-04 15:07:56 +00:00
Robert Mader 5dc84ace8f Bug 1714069 - Block Mesa software drivers for HW-WR, r=aosmond
We currently allow software drivers such as `llvmpipe` to run HW-WR -
in nightly and  apparently even in release.
Explicitly make these drivers always use SW-WR instead.

While on it, improve our detection for software drivers in glxtest.
This may become handy for new software drivers such as zink+lavapipe.

Differential Revision: https://phabricator.services.mozilla.com/D116771
2021-06-04 15:05:01 +00:00
Marcos Cáceres 5c4b5feaa0 Bug 1704005 - Add SecureContext and Permissions Policy to Gamepad API r=johannh,emilio
Differential Revision: https://phabricator.services.mozilla.com/D111360
2021-06-04 15:04:33 +00:00
Nan Jiang f1bf8c386b Bug 1713596 - Block all sponsored tiles from a sponsor upon the dismissal r=dao
This patch implements the sponsor level blocking for the sponsored Top Sites.

When a sponsored top site gets dismissed, Firefox will extract the sponsor (hostname) out of the URL, and persist it to the pref `browser.topsites.blockedSponsors` as a JSON array. When Firefox fetches the sponsored tiles from Contile again, it will filter all the tiles whose sponsor has been blocked before.

Differential Revision: https://phabricator.services.mozilla.com/D116413
2021-06-04 14:58:57 +00:00
Matthew Gaudet 597ec6c1d5 Bug 1709956 - Support invoking private methods in Debugger.frame.eval r=arai
Allow creating a correct environment coordinate for a private brand, and create
the machinery (GetAliasedDebugVar) required to traverse the environment to get
to said brand.

Differential Revision: https://phabricator.services.mozilla.com/D114549
2021-06-04 14:58:23 +00:00
Matthew Gaudet 5b374a1ad6 Bug 1709956 - Add privateBrandSlot helper r=arai
Differential Revision: https://phabricator.services.mozilla.com/D116645
2021-06-04 14:58:23 +00:00
Matthew Gaudet 3a2cd51b34 Bug 1709956 - Close over all private methods, not just instance methods r=arai
This ensures that we have access to static methods in Debugger.frame.evalInFrame;
If we don't close over, then the debugger seems to return undefined when trying
to load the private binding off of the class, which then causes CheckPrivateField
to assert.

Differential Revision: https://phabricator.services.mozilla.com/D116178
2021-06-04 14:58:22 +00:00
Toshihito Kikuchi a2c93279d1 Bug 1713100 - Move AvailableMemoryTracker::Init() back to NS_InitXPCOM. r=gsvelto
Bug 1711610 moved `AvailableMemoryTracker::Init()` from `NS_InitXPCOM` to `XRE_mainRun`,
but it caused memory degradation because `AvailableMemoryTracker` was no longer initialized
in the child processes.

I made that part for `nsAvailableMemoryWatcher` to cache the pref value in the earlier design,
but it's not needed at all in the current design because `nsAvailableMemoryWatcher` loads
a mirror value every time.

This patch reverts `AvailableMemoryTracker::Init()` back to `NS_InitXPCOM`.

Differential Revision: https://phabricator.services.mozilla.com/D116742
2021-06-04 14:16:02 +00:00
Alexandre Lissy f82be201dc Bug 1714459 - Remove duplicated linux/arm64 syscalls definitions r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D116827
2021-06-04 14:11:32 +00:00
Stephen A Pohl 397020df7c Bug 1714177: Correct spelling error in TextInputHandler that could have prevented us from handling escape key or Command and Period key presses correctly if ChildView were to ever implement cancelOperation:. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D116729
2021-06-04 14:10:11 +00:00
Byron Campen [:bwc] 3c72164705 Bug 1713239: Disable the tests that use the ICE server on test-verify. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D116717
2021-06-04 13:12:34 +00:00
Butkovits Atila a72fbdf5a3 Backed out 2 changesets (bug 1713287) for causing build bustages. CLOSED TREE
Backed out changeset 99afd8d13d30 (bug 1713287)
Backed out changeset ea0e06d3b037 (bug 1713287)
2021-06-04 15:41:44 +03:00
Jeff Muizelaar cc7145951e Bug 1712195. Use SafeIntersect. r=aosmond
This uses the new SafeIntersect function
to avoid empty rects that overflow from leaking
through.

Differential Revision: https://phabricator.services.mozilla.com/D116621
2021-06-04 12:35:42 +00:00
Valentin Gosu d595491cc7 Bug 1714307 - Autofix static-analysis warnings in netwerk/ r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D116701
2021-06-04 12:35:16 +00:00
Emilio Cobos Álvarez 048781b3b9 Bug 1713787 - Make custom properties that are IACVT guaranteed-invalid. r=boris
This effectively backs out bug 1623396.

See:

  https://github.com/w3c/csswg-drafts/pull/6006
  https://drafts.csswg.org/css-variables/#guaranteed-invalid-value

And related discussion. Matches Chrome stable as per https://groups.google.com/a/chromium.org/g/blink-dev/c/0xrbzYe_vxU/m/7bsL76n9CgAJ

Depends on D116459

Differential Revision: https://phabricator.services.mozilla.com/D116460
2021-06-04 12:24:18 +00:00
Emilio Cobos Álvarez 36c0f0db2b Bug 1467309 - Fix test_css_supports_variables.html.
MANUAL PUSH: Orange fix CLOSED TREE
2021-06-04 13:33:43 +02:00
Timothy Nikkel 8e646afb74 Bug 1713584. Add test. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D116546
2021-06-04 11:07:03 +00:00
Timothy Nikkel 281336f2cf Bug 1713584. In calculating if a rect is zoomed in shift the rect and the composited area to a common origin. r=botond,emilio
I think I see why now the 90% check of bug 1707560 was there, to prevent situations like this. But that bug fixed a real problem so we want to make a forward fix of this issue.

The problem happens when we take a tall element and change our rect to have the same aspect ratio as the composited area. We center the new rect on the tap point, so unless the cursor is in he center of the screen the new rect will be out of the composited area. This is fine if we actually zoom, but if we are already zoomed it will just result in scrolling, which we do not want. We want to zoom out in this situation.

Since ZoomToRect performs any scrolling and zooming to zoom to the rect we can just do that scrolling ourselves and give the two rects a common origin and then decide if we are already zoomed in as far as we can for this tap point.

Differential Revision: https://phabricator.services.mozilla.com/D116367
2021-06-04 11:07:03 +00:00
Emilio Cobos Álvarez e2f6b43581 Bug 1467309 - Reserve -- as a custom property name. r=xidorn
I think this should be fairly low risk, let's try to get it done sooner
rather than later.

Differential Revision: https://phabricator.services.mozilla.com/D116456
2021-06-04 10:55:41 +00:00
Butkovits Atila 1ad39d7c21 Merge mozilla-central to autoland. CLOSED TREE 2021-06-04 14:06:57 +03:00
Butkovits Atila 692bda1ca1 Backed out changeset c4b44c4ef15b (bug 1714307) for causing build bustages on nsHTTPCompressConv.h. CLOSED TREE 2021-06-04 13:53:37 +03:00
Butkovits Atila a4c86edb34 Merge autoland to mozilla-central. a=merge 2021-06-04 13:15:49 +03:00
Valentin Gosu 98146ae90b Bug 1714307 - Autofix static-analysis warnings in netwerk/ r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D116701
2021-06-04 10:00:55 +00:00
Landry Breuil 6f1033e1e0 Bug 1714018 - Fix dconf interaction with sandboxing on OpenBSD r=gcp
Expand XDG_RUNTIME_DIR in ExpandUnveilPath, default to ~/.cache, and
create the dconf service-db temp dir under this dir before unveil().

Differential Revision: https://phabricator.services.mozilla.com/D116562
2021-06-04 08:57:58 +00:00
Alexandre Poirot 554100edb3 Bug 1712586 - [devtools] Use DOCUMENT_EVENT's will-navigate in HAR automation. r=bomsy
This helps track all navigations, including the cross process navigation
and navigation with JSWindowActor based targets.
With work from bug 1702511, this also helps clearing at the precise right time.

Differential Revision: https://phabricator.services.mozilla.com/D115818
2021-06-04 08:08:06 +00:00
Alexandre Poirot 8cd12e0c94 Bug 1705380 - [devtools] Use DOCUMENT_EVENT will-navigate in netmonitor. r=bomsy
This helps clearing the netmonitor it all navigation, including the cross process navigation
and navigation with JSWindowActor based targets.
With work from bug 1702511, this also helps clearing at the precise right time.

Note that nothing special is being done for the initial document request,
but if we need to we can use NETWORK_EVENT's isNavigationRequest boolean
to help make it work.

Differential Revision: https://phabricator.services.mozilla.com/D116032
2021-06-04 08:08:05 +00:00
Michael Hoffmann ed74faa358 Bug 1713475 - Don't crash on invalid privacy.restrict3rdpartystorage.skip_list r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D116518
2021-06-04 07:55:39 +00:00
Lukas Bernhard 1c352b636c Bug 1712321 - Remove unnecessary constant setup for 64-bit imul. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D116714
2021-06-04 07:46:01 +00:00
Butkovits Atila f33a041df5 Backed out changeset 5452bb0b5363 (bug 1713544) as requested by Glenn. CLOSED TREE 2021-06-04 10:33:14 +03:00
Jon Coppeard e974406ec1 Bug 1713287 - Relax the assumtion that there will be at least as many helper threads as cores r=lth
This won't necessarily be true when using an external thread pool.

The maximum number of Wasm tasks is now limited by the number of cores though.

Differential Revision: https://phabricator.services.mozilla.com/D116620
2021-06-04 07:28:08 +00:00