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

804489 Коммитов

Автор SHA1 Сообщение Дата
Tom Schuster 1173a0bda6 Bug 1779184 - Re-Implement attribute sanitization. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D153362
2022-08-12 10:33:26 +00:00
Tom Schuster d37dd913aa Bug 1779184 - Logging. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D153361
2022-08-12 10:33:25 +00:00
smayya 5041c366b0 Bug 1623038 - Replace URIParams with nsIURI in PHttpChannel.ipdl. r=necko-reviewers,valentin
This issue ports the changes from review D68003 and fixes various build errors occurred in the original review.

Differential Revision: https://phabricator.services.mozilla.com/D154249
2022-08-12 10:09:08 +00:00
Cosmin Sabou 0426478035 Backed out 11 changesets (bug 1784090, bug 1784091, bug 1784092) for causing SM assertion failures on js/Value.h. CLOSED TREE
Backed out changeset a8f802732daf (bug 1784092)
Backed out changeset b92f9185c00e (bug 1784092)
Backed out changeset 293b349acef8 (bug 1784092)
Backed out changeset 43f09ff76a7c (bug 1784092)
Backed out changeset 8525901a008a (bug 1784092)
Backed out changeset 94fcc8600381 (bug 1784091)
Backed out changeset 35d068070f81 (bug 1784090)
Backed out changeset 3966a0f0f413 (bug 1784090)
Backed out changeset 3492785e6bb1 (bug 1784090)
Backed out changeset ac8bb0be9f26 (bug 1784090)
Backed out changeset 9c38d51940e8 (bug 1784090)
2022-08-12 12:38:04 +03:00
Sandor Molnar ac97871e5b Merge mozilla-central to autoland. a=merge CLOSED TREE 2022-08-12 12:38:47 +03:00
Henrik Skupin bac8559017 Bug 1763456 - [wdspec] Re-enable print to PDF tests for Android debug since bug 1763466 is fixed now r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D154412
2022-08-12 08:46:40 +00:00
André Bargull e1af99c7b1 Bug 1784092 - Part 5: Update test262 exclusions. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154271
2022-08-12 08:44:18 +00:00
André Bargull 690bcb5e95 Bug 1784092 - Part 4: Update test262. r=mgaudet
Update test262 after enabling the features from part 2.

Depends on D154269

Differential Revision: https://phabricator.services.mozilla.com/D154270
2022-08-12 08:44:18 +00:00
André Bargull 9dc71a7f29 Bug 1784092 - Part 3: Update test262 importer feature checks. r=mgaudet
Enable "array-grouping" and "change-array-by-copy" tests.

Depends on D154268

Differential Revision: https://phabricator.services.mozilla.com/D154269
2022-08-12 08:44:17 +00:00
André Bargull cde63795b3 Bug 1784092 - Part 2: Enable change-array-by-copy build option by default on Nightly. r=mgaudet
This only enables the build option, which allows to actually run any tests in CI.

Depends on D154267

Differential Revision: https://phabricator.services.mozilla.com/D154268
2022-08-12 08:44:17 +00:00
André Bargull 87b4b0cd62 Bug 1784092 - Part 1: Remove tests for removed TypedArray.prototype.toSpliced function. r=mgaudet
Depends on D154266

Differential Revision: https://phabricator.services.mozilla.com/D154267
2022-08-12 08:44:16 +00:00
André Bargull 60d653c940 Bug 1784091: Update unscopable names for Array grouping. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154266
2022-08-12 08:44:16 +00:00
André Bargull 75f9bce01e Bug 1784090 - Part 5: Avoid copying the array for ArrayToSorted. r=mgaudet
Change `MergeSort` to directly modify its input instead of creating a copy.
`ArraySort` now needs to copy the input and re-arrange any holes, whereas
`ArrayToSorted` can directly return the result from `MergeSort`.

Depends on D154264

Differential Revision: https://phabricator.services.mozilla.com/D154265
2022-08-12 08:44:16 +00:00
André Bargull c8acc7429b Bug 1784090 - Part 4: Inline ArraySort into ArrayToSorted. r=mgaudet
Inline `ArraySort` into `ArrayToSorted` in preparation for the next part.

Depends on D154263

Differential Revision: https://phabricator.services.mozilla.com/D154264
2022-08-12 08:44:15 +00:00
André Bargull 2f0b2f1bbe Bug 1784090 - Part 3: Change comments to single-line comments. r=mgaudet
We generally prefer single-line comments in new code.

Depends on D154262

Differential Revision: https://phabricator.services.mozilla.com/D154263
2022-08-12 08:44:15 +00:00
André Bargull 1d0f1c0e4b Bug 1784090 - Part 2: Remove SortArray with direct call to ArraySort. r=mgaudet
Depends on D154261

Differential Revision: https://phabricator.services.mozilla.com/D154262
2022-08-12 08:44:14 +00:00
André Bargull e670072641 Bug 1784090 - Part 1: Create fewer copies in TypedArrayToSorted. r=mgaudet
Change `MergeSortTypedArray` to return the sorted array. `TypedArraySort` now
needs to copy the sorted elements back into the original array and
`TypedArrayToSorted` can directly return the sorted array. When `TypedArrayToSorted`
is called without a comparator function, we still have to create a copy in
`TypedArrayToSorted` which is then passed to `TypedArrayNativeSort`. When the
input has fewer than two elements, we only have to copy the input without performing
any sort operations.

Differential Revision: https://phabricator.services.mozilla.com/D154261
2022-08-12 08:44:14 +00:00
Julian Descottes 6d4437d90f Bug 1783814 - Add documentation for remaining SandboxOptions r=kmag
Depends on D154260

Add documentation for
- allowWaivers
- discardSource
- forceSecureContext
- freshCompartment
- invisibleToDebugger
- isWebExtensionContentScript
- metadata
- originAttributes
- userContextId

Differential Revision: https://phabricator.services.mozilla.com/D154307
2022-08-12 08:34:53 +00:00
Julian Descottes 590a767d3a Bug 1783814 - Add documentation for SandboxOptions previously documented on MDN r=kmag
This only ports documentation for options which used to be documented on MDN.
Since then new sandbox options have been added, I will try to add documentation for them in a second changeset

Differential Revision: https://phabricator.services.mozilla.com/D154260
2022-08-12 08:34:53 +00:00
Sandor Molnar 201b2c1851 Backed out changeset b3f4763a4887 (bug 1752111) for causing l10n-bump failures. 2022-08-12 11:27:09 +03:00
Sandor Molnar 58559a3e5b Merge autoland to mozilla-central. a=merge 2022-08-12 12:25:59 +03:00
Sandor Molnar d0447e7530 Backed out changeset b3f4763a4887 (bug 1752111) for causing l10n-bump failures. 2022-08-12 11:27:09 +03:00
Tim Huang 53800e2e07 Bug 1775627 - Caching the Email WebApp domain pref. r=dimi
This patch make the pref value of the Email WebApp domain pref to be
cached in the memory. So, we won't get the pref everytime we access the
pref value. The cached pref value will be updated when the pref changes.

Differential Revision: https://phabricator.services.mozilla.com/D154085
2022-08-12 07:31:14 +00:00
Nicolas Silva 35814d5a15 Bug 1690244 - Move WebRender initialization code out of renderer.rs. r=kvark
There is a lot going on in renderer.rs, the initialization code takes a non-negligible chunk of it and touches all aspects of WebRender including setting up all of the threads. This patch moves it into its own init module.
In addition, RendererOptions is renamed into WebRenderOptions to better reflect that it configures every aspect of the engine, and init::create_webrender_instance replaces Renderer::new.

This a rebased version of an pld patch approved by kvark a while back.

Differential Revision: https://phabricator.services.mozilla.com/D103767
2022-08-12 07:30:14 +00:00
Sylvestre Ledru 6b782ad093 no bug - mots doc: update to use https by default r=zeid DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D154295
2022-08-12 07:28:24 +00:00
Henri Sivonen 4401316c65 Bug 1784227 - Certify xmldecl with cargo-vet. r=supply-chain-reviewers,bholley
Differential Revision: https://phabricator.services.mozilla.com/D154356
2022-08-12 07:08:56 +00:00
Nicolas Chevobbe 39880dc213 Bug 1784073 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/src/utils/. r=bomsy.
Depends on D154244

Differential Revision: https://phabricator.services.mozilla.com/D154245
2022-08-12 07:00:36 +00:00
Nicolas Chevobbe a77c3be794 Bug 1784071 - [devtools] Remove debugger specific eslint override for consistent-return rule. r=bomsy.
Instead, we put all the failing file into devtools eslintrc.js.

Differential Revision: https://phabricator.services.mozilla.com/D154244
2022-08-12 07:00:36 +00:00
Mozilla Releng Treescript f96ee03708 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
be -> afc894cc8a2bfa5952b7eaea75db922784c472bf
es-CL -> f8bcb10180e0156d9a5151466bc8dd1d51fa2cc9
gd -> 95f8f41fb34a130587832c1938bd5f21280d5dee
ko -> 3c1b9e49e104efc8a1de7e939295cf9c5472c579
nb-NO -> 81ef8f4f998ea1b62d216662cc8ec9f4c7003ec5
pt-BR -> c8a82c754c0a21709c4c84e1d62aa730310d9925
pt-PT -> a5d6a5d3aa769d9482bcc92a6b5db9781f224698
zh-TW -> 394ea8e6784beab76da85936d986533bb31614d2
2022-08-12 06:57:48 +00:00
Andreea Pavel 2eeee3114d Bug 1775858 - adjust disabling condition for linux r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D154332
2022-08-12 06:22:38 +00:00
André Bargull 60863b7187 Bug 1783404: Support --fix option when eslint-plugin-spidermonkey-js is used. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D153843
2022-08-12 06:10:55 +00:00
Timothy Nikkel 335ed01ea3 Bug 1784251. Allow widget/tests/browser/browser_test_swipe_gesture.js to test swipe to nav on linux. r=hiro
We implement SendNativeTouchpadPan/SynthesizeNativeTouchpadPan (like Windows does for this test).

I tried to use the existing functions SendNativeMouseScrollEvent/SynthesizeNativeMouseScrollEvent which are implemented on Linux and which are what we use for mac on this test, but it's already used for other stuff and it would be very clunky to overload it to make it work for this too.

I didn't see any way to "tag" the gdk events with more info, so making the observer notifier work was clunky. Similarly for getting the phase start/update/end work.

Differential Revision: https://phabricator.services.mozilla.com/D154386
2022-08-12 05:14:22 +00:00
Jason Prickett 4782331e6c Bug 1784260 - Swapping MR mobile cross promo QR images for existing and new users r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D154430
2022-08-12 05:05:48 +00:00
Ting-Yu Lin 5cdc372fbb Bug 1784208 Part 3 - Remove checking mIsBalancing in FindBestBalanceBSize(). r=emilio
According to our code coverage, the `if` statement is not reachable via any
tests on our CI.
https://coverage.moz.tools/#view=file&revision=7169b8faa7e112c9c4323753434324b93270fc3d&path=layout%2Fgeneric%2FnsColumnSetFrame.cpp&line=1129

After part 1 & 2, `ReflowColumns` can no longer change
`ReflowConfig::mIsBalancing` from true to false since the `ReflowConfig`
argument is now a `const`. Thus, `mIsBalancing` can never be false in
FindBestBalanceBSize().

Differential Revision: https://phabricator.services.mozilla.com/D154429
2022-08-12 05:04:03 +00:00
Ting-Yu Lin 474a3b0b9e Bug 1784208 Part 2 - Remove nsColumnSetFrame::ReflowChildren. r=emilio
With part 1, ReflowChildren and ReflowColumns are identical except for the
constness of the ReflowConfig. I choose to remove ReflowChildren because
ReflowColumns is more meaningful and keeping it requires less change to the
existing code.

Differential Revision: https://phabricator.services.mozilla.com/D154428
2022-08-12 05:04:02 +00:00
Ting-Yu Lin 1886ac30c5 Bug 1784208 Part 1 - Remove ColumnBalanceData::mHasExcessBSize flag. r=emilio
Remove the flag because it doesn't serve its purpose for current multicolumn
frame hierarchy (i.e. after we introduce ColumnSetWrapperFrame). Nowadays, we
limit the column's block-size with the column container's block-size and
max-block-size in [1]. If the column container has content which exceeds its
max-block-size, we are going to give up column balancing and reach [2] after the
first iteration in the column balancing `while` loop in FindBestBalanceBSize().

However, the flag can still be set in cases with absurd `nscoord` values, so
this patch still changes the behavior. For example, in crashtests with bogus
sizes such as 673770.html,

```
contentBEnd > aReflowInput.mCBReflowInput->ComputedMaxBSize() && aConfig.mIsBalancing
```

can still be true when `contentBEnd` is greater than `nscoord_MAX`. In such
cases, we might spend extra iterations in column balancing. Other than that, our
rendering shouldn't have perceived behavior change.

[1] https://searchfox.org/mozilla-central/rev/6a37a2ab9328bec6a29f688d1b2fba6974d34905/layout/generic/nsBlockFrame.cpp#3834-3844
[2] https://searchfox.org/mozilla-central/rev/6a37a2ab9328bec6a29f688d1b2fba6974d34905/layout/generic/nsColumnSetFrame.cpp#1145-1162,1169-1173

Differential Revision: https://phabricator.services.mozilla.com/D154427
2022-08-12 05:04:02 +00:00
Csoregi Natalia 3f2ae76b30 Backed out 6 changesets (bug 1486949) for causing hazard bustage on TextDecoderStream.cpp. CLOSED TREE
Backed out changeset e3dc48b94eef (bug 1486949)
Backed out changeset 57edeeebac29 (bug 1486949)
Backed out changeset f86c3b21e21c (bug 1486949)
Backed out changeset 862135f6c27f (bug 1486949)
Backed out changeset 8dd9f5b9e042 (bug 1486949)
Backed out changeset 7cb29e4feb27 (bug 1486949)
2022-08-12 06:36:41 +03:00
Geoff Lankow 03daa81222 Bug 1744243 follow-up - Fix test_URIFixup_external_protocol_fallback.js when run in Thunderbird. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D154475
2022-08-12 02:20:38 +00:00
Mark Hammond 7397afc24e Bug 1783991 - ensure newly opened tabs are synced. r=Gijs
This patch takes a bit of a nuclear option: it removes all
dependencies on SessionStore, and instead just inspects the
tab itself. This means that we no longer store the full
"url history", but no sync clients actually leverage that.

A nice side-effect of this is that we now can store more tabs
in the payload, so heavy tab users are likely to see even more
of their tabs synced.

Differential Revision: https://phabricator.services.mozilla.com/D154192
2022-08-12 01:54:48 +00:00
Glenn Watson 9a091117e7 Bug 1757054 - Ensure line decoration cache tasks are at least 1x1 r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D152829
2022-08-12 01:52:03 +00:00
Sam Foster cd88b9a70d Bug 1783278 - Allow primary buttons to wrap in card layout at narrow widths. r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D154312
2022-08-12 00:46:55 +00:00
Markus Stange 8ac9db0d08 Bug 1783899 - Update dump_syms to 516b66603c390b3a361c508adc0140a6840ce22b. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D154113
2022-08-11 23:58:20 +00:00
Emilio Cobos Álvarez ff538cab0e Bug 1784349 - Don't use -moz-bool-pref for flexbox -moz-box emulation. r=dholbert,perftest-reviewers,sparky
Use a bool pref media query which allows dynamic changes to get
reflected instantly.

Differential Revision: https://phabricator.services.mozilla.com/D154449
2022-08-11 23:22:52 +00:00
Gregory Mierzwinski c3430429cd Bug 1784332 - Check if a test is skipped after building configs. r=perftest-reviewers,aglavic
This patch moves where the skip_test function is used from so that it can benefit from additional changes that happen after the configs are built, and before the tests run.

Differential Revision: https://phabricator.services.mozilla.com/D154443
2022-08-11 23:21:06 +00:00
Emilio Cobos Álvarez ef562aae0a Bug 774398 - Hack to make print and viewport media query listeners fire when printing. r=geckoview-reviewers,owlish,dholbert
This still doesn't fire on print settings changes, so it uses the
default page size. Which is probably better than nothing, but...

To make viewport-size media-query listeners work more generally for
printed documents, we would need to re-clone the top document
unconditionally for all print settings changes, which needs front-end
work at least, and is dubious if the page changes dynamically.

Differential Revision: https://phabricator.services.mozilla.com/D150499
2022-08-11 23:11:37 +00:00
Iulian Moraru 19bdd8586c Backed out 3 changesets (bug 1782770) for causing wasm related spidermonkey build bustages. CLOSED TREE
Backed out changeset dfb8854e3ac0 (bug 1782770)
Backed out changeset c4eca5ce1a52 (bug 1782770)
Backed out changeset a881b6ab4795 (bug 1782770)
2022-08-12 01:29:18 +03:00
Stephanie Cunnane 670b9de81f Bug 1770818 - Focus the address bar when opening a new window with a custom new window URL configured. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D151946
2022-08-11 22:05:35 +00:00
Ryan Hunt fad61321d1 Bug 1782770 - wasm: Don't make extra copy of FuncType for debugging. r=yury
Now that we transfer all type definitions to Metadata, we can
remove the special debugging case where we would transfer all
function types. Instead, we can just transfer the funcTypeIndex
and find the function type in Metadata.

Differential Revision: https://phabricator.services.mozilla.com/D153500
2022-08-11 21:28:35 +00:00
Ryan Hunt b9d8fee556 Bug 1782770 - wasm: Make ValType a uint32_t now that rtt's are gone. r=yury
ValType needed to be pointer size to support (rtt) types. Now that
they have been removed, we can revert to 32-bit on all platforms.

Differential Revision: https://phabricator.services.mozilla.com/D153499
2022-08-11 21:28:35 +00:00
Ryan Hunt 72735abb79 Bug 1782770 - wasm: Transfer all type definitions to Metadata. r=yury
Metadata stores a vector of TypeDef that comes from the type section of the module.
We currently only transfer a type if it's a struct type, array type, or else a
function type that cannot fit in an immediate for call_indirect signature checks.

Because we filter out some types, this means we need to renumber the type index
space to match. This is a bit hacky, and is difficult to do consistently.

The original reason for only bringing function types that cannot fit in an
immediate was to reduce the size of metadata as most function types can fit in an
immediate. However, I discovered that we make a copies of function types for
FuncExport and FuncImport metadata. This can create multiple copies of the original
function type, e.g. when multiple exported functions reference the same type
definition.

If we instead transfer all types and store the index of the function type in
FuncExport/FuncImport we can reduce total metadata size, reduce allocations,
and remove type renumbering.

This commit does this by:
  1. Transferring all type definitions to Metadata (WasmGenerator.cpp)
  2. Removing the typeRenumbering vector
  3. Replacing FuncType with typeIndex on FuncImport/FuncExport
  4. Updating all users of FuncImport/FuncExport to get the FuncType using
     the typeIndex and Metadata. This the bulk of the changes.

Differential Revision: https://phabricator.services.mozilla.com/D153498
2022-08-11 21:28:34 +00:00