Commit Graph

804566 Commits

Author SHA1 Message Date
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
Alexandre Poirot
137fce8f67 Bug 1772155 - [devtools] Move all session data entry processing into a dedicated module. r=nchevobbe
This will help keep target-actor-mixin generic and move each data entry processing
to a dedicated module.

Differential Revision: https://phabricator.services.mozilla.com/D147881
2022-08-11 21:27:00 +00:00
Kagami Sascha Rosylight
d6152d67ec Bug 1486949 - Part 6: Fix ReadableStreamDefaultReader::Read to use the constructor realm r=smaug
Other methods probably should do the same, but for now this fulfills the test requirement. The rest is (or should be) tracked by https://bugzilla.mozilla.org/show_bug.cgi?id=1756661.

Differential Revision: https://phabricator.services.mozilla.com/D153977
2022-08-11 21:16:18 +00:00
Kagami Sascha Rosylight
e228d52761 Bug 1486949 - Part 5: Implement Text{Decoder,Encoder}Stream r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D153782
2022-08-11 21:16:18 +00:00
Kagami Sascha Rosylight
1efd07698e Bug 1486949 - Part 4: Implement TransformStream construction for GenericTransformStream r=smaug
Per the Streams spec, other specs that want to implement custom TransformStream should use [GenericTransformStream](https://streams.spec.whatwg.org/#other-specs-ts-wrapping) mixin and store a [new TransformStream](https://streams.spec.whatwg.org/#transformstream-set-up) in a slot. This implements the latter part.

Differential Revision: https://phabricator.services.mozilla.com/D153975
2022-08-11 21:16:17 +00:00
Kagami Sascha Rosylight
9f255d1c04 Bug 1486949 - Part 3: Refactor TransformerAlgorithms to allow subclassing r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D153974
2022-08-11 21:16:17 +00:00
Kagami Sascha Rosylight
f8a781d3fd Bug 1486949 - Part 2: Convert TransformStreamSetBackpressure to a method r=smaug
This way SetBackpressureChangePromise can be removed which is only exposed for that function.

Differential Revision: https://phabricator.services.mozilla.com/D153973
2022-08-11 21:16:17 +00:00
Kagami Sascha Rosylight
7403b48b51 Bug 1486949 - Part 1: Remove redundant GetReadable/Writable r=smaug
It was a part of the initial skeleton code where the getters threw NOT_IMPLEMENTED. The methods are wrong anyway since `.forget()` will unset the fields.

Differential Revision: https://phabricator.services.mozilla.com/D153972
2022-08-11 21:16:16 +00:00
Csoregi Natalia
6bd6b81fd3 Backed out changeset acc954823b17 (bug 1783899) for causing toolchains bustage. CLOSED TREE 2022-08-12 00:30:38 +03:00
Henrik Skupin
c9098b46a8 Bug 1784355 - [marionette] Start multiprocess browser toolbox when running Marionette tests with --jsdebugger. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D154452
2022-08-11 20:40:52 +00:00
Matthew Gaudet
90d0f4f428 Bug 1784181 - Add Reflect.parse tests to the JS Feature Checklist r=dminor DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D154438
2022-08-11 20:15:19 +00:00
Mike Hommey
5fa498fd8f Bug 1783782 - Drive-by: Remove unused repack_cargo function. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D154178
2022-08-11 19:47:57 +00:00
Mike Hommey
d7b5eb99c2 Bug 1783782 - Update builders to rustc 1.63.0. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D154177
2022-08-11 19:47:57 +00:00
ramya
b85623206f Bug 1697226 - Added option to print current page. r=sfoster,fluent-reviewers,flod,mstriemer
Added the option to print the current page to print UI.
Added tests to check if current page is selected correctly.

Differential Revision: https://phabricator.services.mozilla.com/D152810
2022-08-11 19:47:20 +00:00
Sam Foster
417bc4b4f3 Bug 1783197 - Correct the fxview ghost button styles in high-contrast mode. r=sclements
* Leverage shared styles for the utility buttons (close, twisty) and update the background/color variables they use instead of overriding
* Ensure button color contrasts with its background in HCM
* Special-case the success confirmation close button which doesn't use the theme colors

Differential Revision: https://phabricator.services.mozilla.com/D154181
2022-08-11 19:40:42 +00:00
Iulian Moraru
6794af9029 Backed out 7 changesets (bug 1784058, bug 650372) for causing wpt failures on format-specifiers-variations.html. CLOSED TREE
Backed out changeset 2aa97ebc8593 (bug 650372)
Backed out changeset 41d1c62f11ac (bug 650372)
Backed out changeset 8340c08ff8b6 (bug 650372)
Backed out changeset cbe59d9bbcbb (bug 1784058)
Backed out changeset 40b00a214019 (bug 1784058)
Backed out changeset 714d84a2680a (bug 1784058)
Backed out changeset e5b24489d365 (bug 1784058)
2022-08-11 23:24:20 +03:00
Iulian Moraru
8bd35b4844 Backed out changeset cc9ac78aac71 (bug 1784287) for causing mochitest-chrome failures on test_largemenu.html. 2022-08-11 23:23:37 +03:00
Markus Stange
bbd281e591 Bug 1389225 - Extend the PDB srcsrv info to cover S3 and rust github paths. r=gsvelto
This will make the source code show up in Visual Studio when
debugging using the Mozilla symbol server.

In the past, only source files from hg.mozilla.org were displayed,
but no generated sources and no Rust standard library sources.

This change adds the required annotations for those two missing cases.

The generated sources will be pulled from S3.
The Rust standard library sources will be pulled from github.

Differential Revision: https://phabricator.services.mozilla.com/D154300
2022-08-11 19:14:43 +00:00
Markus Stange
b029b7a9da Bug 1783899 - Update dump_syms to ca37dd69b43095f11bb7873cd8569582a93c7925. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D154113
2022-08-11 19:12:40 +00:00
ffxbld
fe0b61866f No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D154378
2022-08-11 19:10:20 +00:00
Mozilla Releng Treescript
72ef934d3f no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
be -> 6daa5b6b8fd1fa77bccf62322096327dccd066e0
el -> bcd4d4b244dfa8172b68b41accd737fd36ed7dbd
fi -> f037943462ab2b512cb269433de93c9344a5345e
fr -> 1b2091cc79db85a931b133b75d22e257f1f940fc
gn -> 6cfc80f9de35eac5dfed526526b794a4a4c32028
it -> 009103209ccf4d86f65499afebe7ef92068aaf61
nb-NO -> 74148db8148b6771b80691f557bfe84c352c2355
nn-NO -> 5da86b9cec5a3f94dccc7410559a3fca0f223cdf
pt-PT -> 9b5667ea3729055fe486763b7834c2982efddaed
sl -> c321d54e13ec17376bc27de22e149ca56a97115c
zh-CN -> 89082f3a883b48bf9c0497416ee3013dd0797bf0
2022-08-11 19:04:36 +00:00
Gabriel Bustamante
9bf5266f9a Bug 1752111 - Make l10n bumper run on autoland instead of mozilla-central r=aki
Differential Revision: https://phabricator.services.mozilla.com/D154305
2022-08-11 18:49:45 +00:00
Jonathan Kew
04966a38fd Bug 650372 - Fix legacy tests to account for keywords now being accepted. r=emilio
Depends on D154238

Differential Revision: https://phabricator.services.mozilla.com/D154278
2022-08-11 18:03:58 +00:00
Jonathan Kew
13890ac701 Bug 650372 - Use the style-system format hint directly in gfx, instead of mapping to a separate internal enum. r=gfx-reviewers,aosmond,lsalzman
Now that the style system has keywords for this, we don't need to define them in gfx
but can just use the enum directly. (No functional change, just code simplification.)

Depends on D154237

Differential Revision: https://phabricator.services.mozilla.com/D154238
2022-08-11 18:03:58 +00:00