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

725937 Коммитов

Автор SHA1 Сообщение Дата
Ting-Yu Lin 8763701634 Bug 1663822 Part 6 - Convert the anonymous enum controlling ReflowInput's behavior into an EnumSet. r=dholbert
This change shouldn't change behavior.

Differential Revision: https://phabricator.services.mozilla.com/D89545
2020-09-11 17:59:21 +00:00
Ting-Yu Lin d89dc7f8cc Bug 1663822 Part 5 - Move ReflowInputFlags from SizeComputationInput to ReflowInput. r=dholbert
In previous part, we changed SizeComputationInput::InitOffsets to take a
ComputeSizeFlags parameter instead of ReflowInputFlags. Now there's no
reason to put ReflowInputFlags under SizeComputationInput.

Also rename it to `Flags` because it now lives in `ReflowInput`.

This change shouldn't change behavior.

Differential Revision: https://phabricator.services.mozilla.com/D89544
2020-09-11 17:59:13 +00:00
Ting-Yu Lin edcb942efd Bug 1663822 Part 4 - Add a ComputeSizeFlags parameter to ReflowInput's constructor, and store it in ReflowInput. r=dholbert
Currently, to set ComputeSizeFlags, the caller uses an anonymous enum as
a parameter to ReflowInput constructor to set ReflowInputFlags fields,
and then ReflowInput creates a ComputeSizeFlags from the relevant
ReflowInputFlags fields in Init().

This patch simplifies this flags handover by adding ComputeSizeFlags
parameter to ReflowInput so that the caller can create the flags and
pass it to ReflowInput directly. The can also simplifies the process
needed to add a new ComputeSizeFlag.

We still need to store ComputeSizeFlags in ReflowInput since there's one
caller in `nsBlockFrame::ComputeFinalSize` wanting to checking
`ComputeSizeFlag::BClampMarginBoxMinSize`.

Note 1: ComputeSizeFlags is added only to the ReflowInput's constructor
that also takes parent ReflowInput. The other constructor's existing
callers don't need it.

Note 2: I don't bother adjust the value of DUMMY_PARENT_REFLOW_INPUT,
CALLER_WILL_INIT, and STATIC_POS_IS_CB_ORIGIN because they are going to
be converted into a enum class in a later patch.

This change shouldn't change behavior.

Differential Revision: https://phabricator.services.mozilla.com/D89543
2020-09-11 18:17:51 +00:00
Ting-Yu Lin a11075f9e1 Bug 1663822 Part 3 - Move ComputeSizeFlags to LayoutConstants.h, and put it under mozilla namespace. r=dholbert
In the next part, I'm going to use ComputeSizeFlags as the arguments in
some ReflowInput's methods. Because nsIFrame.h includes ReflowInput.h,
to solve the circular dependency, ComputeSizeFlags needs to be moved to
somewhere else.

Also, revise the document for ComputeSizeFlag. The rest of the patch is
just dropping `nsIFrame::` and adding `mozilla::` as needed.

This change shouldn't change behavior.

Differential Revision: https://phabricator.services.mozilla.com/D89542
2020-09-11 18:32:08 +00:00
Ting-Yu Lin 40a9b68f6b Bug 1663822 Part 2 - Change ComputeSizeFlags into an EnumSet. r=dholbert
This patch does:
1. Rename the original ComputeSizeFlags to ComputeSizeFlag (dropping the
"s"), and make it an enum class.
2. Make ComputeSizeFlags an EnumSet.
3. Adapt the users to use EnumSet's APIs.

The `Default` enum value in ComputeSizeFlag is not needed. It equals to an
empty ComputeSizeFlags.

This change shouldn't change behavior.

Differential Revision: https://phabricator.services.mozilla.com/D89541
2020-09-11 18:32:16 +00:00
Ting-Yu Lin 160f14be50 Bug 1663822 Part 1 - Drop the "e" prefix from the enum values in ComputeSizeFlags. r=dholbert
This change shouldn't change behavior.

Differential Revision: https://phabricator.services.mozilla.com/D89540
2020-09-11 18:31:56 +00:00
Edouard Oger 5ad49cc0a4 Bug 1664307 - Revise the pairing modal. r=markh,fluent-reviewers,preferences-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D89824
2020-09-11 18:29:26 +00:00
Dorel Luca 79e0eba4b3 Backed out changeset 4123a3bc6173 (bug 1664300) as requested by dev 2020-09-11 21:32:06 +03:00
Ryan VanderMeulen 750f2802b6 Bug 1664190 - Update pdf.js to version 2.7.43. r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D89945
2020-09-11 17:33:08 +00:00
Nihanth Subramanya af57352161 Bug 1662362 - Treat shimmed resources as blocked in protections panel category subviews. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D89814
2020-09-11 13:33:19 +00:00
Dimi Lee f3da525903 Bug 1662362 - Record STATE_UNBLOCKED_UNSAFE_CONTENT event to content blocking log when unblock API of URL Classifier is called r=nhnt11,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D88957
2020-09-11 17:48:29 +00:00
Dana Keeler 5763aba6d5 Bug 1664011 - avoid CERTCertificate in nsIX509CertValidity implementation r=rmf
This patch modifies the implementation of nsIX509CertValidity to use
mozilla::pkix to decode notBefore/notAfter values from the given encoded
certificate rather than using a CERTCertificate. This will help in avoiding
CERTCertificate in the implementation of nsIX509Cert.
This patch also renames/moves the previous implementation (which was in
nsNSSCertValidity.{h,cpp} but was called nsX509CertValidity) to be more
consistent and to drop the unnecessary "ns" prefix. It is now in the files
X509CertValidity.{h,cpp} and is called X509CertValidity.

Differential Revision: https://phabricator.services.mozilla.com/D89644
2020-09-11 17:20:25 +00:00
Emilio Cobos Álvarez f9ac84ac67 Bug 1664405 - Properly copy mHasCacheControl in nsHttpResponseHead::operator=. r=dragana,necko-reviewers
Oof, I sometimes really hate C++ :/

The new assert makes our tests go boom without the fix.

Differential Revision: https://phabricator.services.mozilla.com/D89940
2020-09-11 17:17:07 +00:00
Tooru Fujisawa cf34620357 Bug 1664293 - Part 2: Replace frontend::CompileLazyFunction with frontend::CompileLazyFunctionToStencil + frontend::InstantiateStencilsForDelazify. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D89900
2020-09-11 16:12:20 +00:00
Tooru Fujisawa 9de1b4c0f5 Bug 1664293 - Part 1: Templatize DelazifyCanonicalScriptedFunction for char unit. r=tcampbell
Depends on D89898

Differential Revision: https://phabricator.services.mozilla.com/D89899
2020-09-11 13:15:50 +00:00
Tooru Fujisawa 632131b7b3 Bug 1664363 - Replace JS::DecodeScript + JS::StartIncrementalEncoding with JS::DecodeScriptAndStartIncrementalEncoding. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D89898
2020-09-11 15:38:35 +00:00
William Lachance 974cd488c9 Bug 1664215 - Specify that PDF_VIEWER_FALLBACK_REASON is only collected in content processes r=bdahl,chutten
Differential Revision: https://phabricator.services.mozilla.com/D89782
2020-09-11 17:04:19 +00:00
David Major 4dfc47d2a0 Bug 1664482 - Make UPLOAD_DIR before referencing it in build-sm.sh r=froydnj
The script uses the `cd $FOO && pwd` trick to fix the path style on Windows, but currently this happens before the `mkdir`, so we get an incorrect result:

```
[task 2020-09-11T03:38:59.656Z] ++ cd Z:/task_1599794667/public/build
[task 2020-09-11T03:38:59.656Z] ./src/taskcluster/scripts/builder/build-sm.sh: line 10: cd: Z:/task_1599794667/public/build: No such file or directory
[task 2020-09-11T03:38:59.656Z] ++ pwd
[task 2020-09-11T03:38:59.657Z] + export MOZ_UPLOAD_DIR=/z/task_1599794667
```

Differential Revision: https://phabricator.services.mozilla.com/D89925
2020-09-11 16:24:25 +00:00
Denis Palmeiro a267293bdb Bug 1652126: Re-enable browser_pdfjs_preview.js for asan builds. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D89804
2020-09-11 15:28:20 +00:00
Denis Palmeiro 63cdb2b343 Bug 1652126: Obtain an OffThreadToken immediately so parse tasks can be canceled anytime, and clean up dangling Runnables during cancellation. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D89465
2020-09-11 15:28:04 +00:00
Denis Palmeiro 996cecd73e Bug 1652126: Provide OffThreadToken's immediately and allow cancellation of parse tasks that are not completely finished. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D89464
2020-09-11 15:27:51 +00:00
Punam Dahiya 154225ecec Bug 1659150 - Remove about:welcome trailhead, full page and ReturnToAMO templates r=perftest-reviewers,Mardak,mkaply,nanj,sparky
Differential Revision: https://phabricator.services.mozilla.com/D89077
2020-09-11 16:35:04 +00:00
Gijs Kruitbosch aa2f638655 Bug 1655456 - use the default theme icon via a chrome: protocol in customize mode, r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D89131
2020-09-11 12:44:45 +00:00
Gijs Kruitbosch 97c97bc82f Bug 1660557 - stop using js_modules to pack builtin and default themes, r=glandium,zombie
This is ultimately less build magic and makes for more meaningful URIs.

This patch paves the way for the second patch in this stack which fixes bug 1655456.

Differential Revision: https://phabricator.services.mozilla.com/D89130
2020-09-11 15:26:24 +00:00
Eitan Isaacson ba85e30cc9 Bug 1664323 - Initialize out arguments in mac a11y IPC methods. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D89830
2020-09-11 15:53:57 +00:00
pbz 2125a75f25 Bug 1633370 - Added PromptTestUtils module. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D75566
2020-09-11 08:03:09 +00:00
Andrei Oprea 468c9b2efc Bug 1659867 - Increase update interval for FxA endpoint to four hours r=jbuck
Differential Revision: https://phabricator.services.mozilla.com/D88401
2020-09-11 03:22:40 +00:00
Dave Hunt ee5bdd9c60 Bug 1657445 - [wptserve] Content-Length header missing when response is a file object r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D86052
2020-08-21 09:35:20 +00:00
Mark Banner 4bf4c20d40 Bug 1664490 - Update partner attribution URL. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D89932
2020-09-11 15:28:12 +00:00
Geoff Brown 91b7cfa07b Bug 1664409 - Ensure fission disabled for mochitest-chrome and a11y tests; r=ahal
When mochitest-chrome (or a11y) tests are run, e10s is disabled for the suite; that conflicts
with the fission option, if enabled on the command line. This patch disables fission along
with e10s for non-e10s test suites.

Differential Revision: https://phabricator.services.mozilla.com/D89931
2020-09-11 15:12:13 +00:00
Iain Ireland 7c91f351df Bug 1663993: Add warm-up data field to SelfHostedLazyScript r=tcampbell
The issue here is that we trial-inline a self-hosted call, trigger relazification, then try to call the trial-inlined function. Unlike other functions, self-hosted lazy functions do not have a BaseScript. Instead, we have a fake `SelfHostedLazyScript` per-runtime that contains a trampoline pointer. In general, this is good enough for jitcode. However, when we call a trial-inlined function, we have to guard that it has a `BaselineScript`, and the first step is to check if it has a `JitScript`.

To make `branchIfScriptHasNoJitScript` work for self-hosted lazy functions, this patch adds a warm-up data field to `SelfHostedLazyScript`.

Differential Revision: https://phabricator.services.mozilla.com/D89848
2020-09-11 13:40:43 +00:00
Bob Owen c6fa9e48a9 Bug 1663940: Ensure the unwriteable margins are populated in the print settings. r=emilio
This updates the settings with the correct paper ID as well.
It also removes the printable size fields from the Windows settings now that
unwriteable margins are being used consistently.

Differential Revision: https://phabricator.services.mozilla.com/D89911
2020-09-11 15:00:18 +00:00
Doug Thayer 315722c21e Bug 1656526 - Update sccache to latest r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D89670
2020-09-11 14:14:10 +00:00
Doug Thayer ebf7f05657 Bug 1656526 - Add resolver_64.cc to asan_blacklist_win.txt r=dmajor
resolver_64.cc should have been on the list all along, because the InternalThunk
constructor runs before ASan init. It was probably just accident (maybe inlining?)
that we got away with not including it in the past.

Differential Revision: https://phabricator.services.mozilla.com/D89669
2020-09-11 14:12:25 +00:00
Doug Thayer c893a9a0c2 Bug 1656526 - Draw app skeleton UI r=Gijs,mhowell
Hopefully the comments in the actual code are enough to explain what is going
on here.

NOTE: this patch does not represent a finished skeleton UI. There are some
questions in comments within the code, and generally I'm seeking feedback on
whether the overall approach seems sane or not. Gijs, I'm including you for
feedback on whether you think this is maintainable by more frontend-oriented
folks, and Molly, I'm including you for feedback on whether the justification
for writing to a raw pixel buffer seems sound or not, and a general review of
the approach.

Differential Revision: https://phabricator.services.mozilla.com/D86447
2020-09-11 14:12:15 +00:00
Doug Thayer efe700e222 Bug 1656526 - Show blank window prior to loading xul on Windows r=mhowell
See bug for justification. This patch aims to display a blank window prior to
loading/prefetching xul.dll. It also has a placeholder for drawing a
skeleton UI into that window. Note that this is disabled by default based on
a registry value, as there are still kinks to work out (for instance, what
happens if we aren't actually going to display a window, because, say, Firefox
is already running.) This just gives a basic implementation to dogfood, and
facilitates distributing work across multiple contributors.

Onto the details. The patch achieves its goal by creating a window and
assigning its handle to a static variable, which will be consumed inside
nsWindow::Create by the first toplevel window we want to make. nsWindow::Create
will take ownership of the window handle, restyle it to its own liking, and
then proceed as if everything is normal and it had created the window itself.

Differential Revision: https://phabricator.services.mozilla.com/D86263
2020-09-11 14:12:00 +00:00
Dan Mosedale b3e1b43263 Bug 1661010 - make Alpenglow theme handle bookmarks + menu bar correctly on win/lin, r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D89826
2020-09-11 00:59:32 +00:00
Paul Adenot 810a0eb3fe Bug 1663917 - Remove special case on Windows for VOICE cubeb stream. r=kinetik
This [0] commit unties the device selection from the fact that a stream
transports voice data. Telling cubeb that the stream has voice data allows
lowering the complexity of the resampler, and lowering the impact of the
resampler on the latency.

[0]: ac3569ef18

Differential Revision: https://phabricator.services.mozilla.com/D89591
2020-09-11 13:16:05 +00:00
Paul Adenot 4452f56e09 Bug 1663917 - Update libcubeb f39ce8a. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D89590
2020-09-11 13:15:57 +00:00
Paul Adenot 422172783c Bug 1663917 - Remove patch to disable an assertion in cubeb, it's now upstream. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D89589
2020-09-11 13:15:37 +00:00
Joel Maher 70b89b5091 Bug 1664300 - double the frequency of windows perf tests temporarily. r=ahal
temporarily double the frequency of windows perf tests

Differential Revision: https://phabricator.services.mozilla.com/D89832
2020-09-11 12:24:14 +00:00
Bogdan Tara c2f16d6986 Backed out changeset 73bd8f2fbbf1 (bug 1664020) for bustages complaining about CacheFileIOManager.cpp CLOSED TREE 2020-09-11 16:10:19 +03:00
Oriol Brufau 1a38c1beab Bug 1655581 - [css-grid] Use min-content size for intrinsic maximums resolution. r=mats
By mistake the specification used to say that, for items spanning
multiple tracks, the growth limits of the tracks with an intrinsic max
track sizing function should grow to accommodate the minimum
contribution of the item.

But this was a mistake, because an intrinsic max track sizing function
can only be min-content or max-content. So instead of distributing the
minimum contribution, it should be the min-content contribution.

The spec has been fixed and there is a CSSWG resolution in
https://github.com/w3c/csswg-drafts/issues/4790

This patch fixes the problem by reverting 2b923d48ea7e. The change is
likely web compatible, since it only affects a rare edge case with
'minmax()' where the min sizing function is 'auto' or a fixed value
smaller than the min-content contribution, the max sizing function is
'min-content', and an item whose minimum contribution is forced to be
smaller than the min-content contribution, and spans multiple tracks.

Differential Revision: https://phabricator.services.mozilla.com/D89145
2020-09-11 12:42:07 +00:00
Valentin Gosu 260b3b5abf Bug 1664020 - ShutdownEvent::PostAndWait should return immediately if posting the event fails r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D89648
2020-09-11 07:59:42 +00:00
Bryce Seager van Dyk 18d35542f7 Bug 1662212 - Amend description on playback probes stating telemetry is collected on resume, as this appears false. r=drno
The one call site for `ReportTelemetry` in HTMLMediaElement is currently nested
inside a `if (aSuspendElement) {`. I.e. telemetry is only recorded when
suspending the element. Update our description to reflect this.

Depends on D88895

Differential Revision: https://phabricator.services.mozilla.com/D89606
2020-09-09 16:07:26 +00:00
Bryce Seager van Dyk dad3db465a Bug 1662212 - Add telemetry to track play time of encrypted HTMLMediaElements. r=drno
Add 3 probes
- Play time for encrypted elements.
- Play time for Clearkey elements.
- Play time for Widevine elements.

Differential Revision: https://phabricator.services.mozilla.com/D88895
2020-09-10 22:04:39 +00:00
Olli Pettay 9fe5fa2214 Bug 1663452, steal structured clone data for pushState, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D89903
2020-09-11 11:51:57 +00:00
Alessio Placitelli 60725c5763 Bug 1663857 - Ensure pioneer pings are properly routed to the study tables. r=rhelmer,amiyaguchi
Differential Revision: https://phabricator.services.mozilla.com/D89798
2020-09-11 12:18:50 +00:00
Alessio Placitelli a7cdd69f72 Bug 1663857 - Introduce the Pioneer enrollment ping. r=rhelmer
This introduces the enrollment ping (really the existing 'ping-study'
ping with a different schema name) that is sent both when user joins
Pioneer and when they join a new study.

The one sent when joining pioneer has a different namespace, because
we want this data to flow in a separate dataset. The one sent when
joining the study behaves like the deletion-request, has an empty
payload and is properly routed to the study table due to the rules
on the pioneer ingestion pipeline.

This additionally lands documentation required for data-review.

Differential Revision: https://phabricator.services.mozilla.com/D89718
2020-09-11 12:18:32 +00:00
Dmitry Bezhetskov 9edeed7b15 Bug 1639153 - Part 6.4: Add tls dependency for WasmTruncateToInt64 and Int64ToFloatingPoint for arm. r=lth
In this patch we add a tls dependency for the remaining nodes which use
BuiltinThunk to call c++ runtime. By ABI requirements WasmTlsReg should
be set.

Differential Revision: https://phabricator.services.mozilla.com/D89239
2020-09-11 12:02:42 +00:00