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

745501 Коммитов

Автор SHA1 Сообщение Дата
Alexis Beingessner ddff243f3c Bug 1686616 - make Directory use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105529
2021-02-18 13:26:32 +00:00
Alexis Beingessner 8fea71cdd5 Bug 1686616 - make PermissionManager use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105528
2021-02-18 13:26:31 +00:00
Alexis Beingessner 719dd81cbb Bug 1686616 - make ServiceWorkerManager use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105527
2021-02-18 13:26:31 +00:00
Alexis Beingessner 07ad6bc655 Bug 1686616 - make UUIDGenerator use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105526
2021-02-18 13:26:30 +00:00
Alexis Beingessner 972f085576 Bug 1686616 - make HttpActivityDistributor use Components instead of Services. r=kmag,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105525
2021-02-18 13:26:30 +00:00
Alexis Beingessner 442e2d6fa1 Bug 1686616 - make History use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105524
2021-02-18 13:26:30 +00:00
Alexis Beingessner bd14ca539e Bug 1686616 - make ThirdPartyUtil use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105523
2021-02-18 13:26:29 +00:00
Alexis Beingessner ade0725530 Bug 1686616 - make GfxInfo use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105522
2021-02-18 13:26:29 +00:00
Alexis Beingessner 92afde7986 Bug 1686616 - register all Services.py services with components.conf. r=kmag,necko-reviewers,valentin
These services had their name added to components.conf:

* GfxInfo
* ThirdPartyUtil
* History
* HttpActivityDistributor
* UUIDGenerator
* ServiceWorkerManager
* PermissionManager

These services were added to componenets.conf under a different name:

* DirectoryService => Directory
* IOService => IO
* StringBundleService => StringBundle
* CacheStorageService => CacheStorage
* StreamTransportService => StreamTransport
* SocketTransportService => SocketTransport

These services weren't migrated to components.conf because only Rust
code uses them:

* RemoteAgent
* XULRuntime
* PrefService

These services weren't migrated to components.conf because they're unused:

* ToolkitChromeRegistry (used as ChromeRegistry)
* XULChromeRegistry (used as ChromeRegistry)
* Bits (completely unused)

These services were already available in components.conf but are still
used by rust code:

* URIFixup

These services weren't migrated because they will be handled in
subsequent patchsets:

* ObserverService

For the record, the following Services are being used by Rust code
and must remain until a Rust version of Components.h is written:

* RemoteAgent
* XULRuntime
* PrefService
* URIFixup
* ObserverService
* DirectoryService
* ThirdPartyUtil

Also the cocoa GfxInfo service was changed to use components.conf instead
of registering it at runtime, as all the other widgets were already doing
it this way.

Differential Revision: https://phabricator.services.mozilla.com/D105521
2021-02-18 13:26:28 +00:00
Kershaw Chang 3d66c37e76 Bug 1689987 - P5: Add probes to collect DNS lookup time when ODoH is used r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105215
2021-02-18 12:50:04 +00:00
Kershaw Chang 36d1df148d Bug 1689987 - P4: Add a telemetry probe to collect channel success rate when ODoH is used r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105214
2021-02-18 12:50:03 +00:00
Kershaw Chang 9795f890cc Bug 1689987 - P3: Add some ODoH specific skip reasons r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104831
2021-02-18 12:50:03 +00:00
Kershaw Chang 782c896152 Bug 1689987 - P2: Add DNS_ODOH_LOOKUP_TIME and ODOH_SKIP_REASON_ODOH_FIRST probes r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104800
2021-02-18 12:50:02 +00:00
Kershaw Chang a2532cb1f3 Bug 1689987 - P1: Don't mess up TRR telemetry when ODoH is used r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104799
2021-02-18 12:50:02 +00:00
smolnar 631c520695 Backed out changeset dc7664f78fbd (bug 1660307) for causing mochitest failures. CLOSED TREE DONTBUILD 2021-02-18 14:49:38 +02:00
smolnar 0757c7413f Backed out 2 changesets (bug 1688096) for linux debug build bustage in KnowsCompositor. CLOSED TREE
Backed out changeset 6cdfa0af2278 (bug 1688096)
Backed out changeset 6471b0910f45 (bug 1688096)
2021-02-18 14:34:49 +02:00
Yaron Tausky 744388b5f9 Bug 1660307 - Use thread-safe weak pointers in WebSocketImpl r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D104518
2021-02-18 12:16:11 +00:00
Florian Quèze b2650ad078 Bug 1693347 - Avoid including GeckoProfiler.h in generated cpp files when it is not going to be used, r=nika.
Differential Revision: https://phabricator.services.mozilla.com/D105491
2021-02-18 11:56:20 +00:00
Andrew Osmond 6528a201ab Bug 1688096 - Part 2. Add/use flag to CompositorOptions to allow SW-WR on a per widget basis. r=mattwoodrow
The pref gfx.webrender.software.unaccelerated-widget.allow may be used
to allow software WebRender to be used with new windows/popups that have
transparency on Windows. Otherwise they would fallback to basic layers.

Similarly, the pref gfx.webrender.software.unaccelerated-widget.force
may be used to force software WebRender for all windows that would
fallback to basic layers.

Differential Revision: https://phabricator.services.mozilla.com/D104855
2021-02-18 11:50:06 +00:00
Andrew Osmond c4920b7fcc Bug 1688096 - Part 1. Merge SW-WR and WR render texture host paths to allow mixed compositors. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D104854
2021-02-18 11:50:05 +00:00
Julian Descottes 352bff0a66 Bug 1692965 - [devtools] Remove the ChromeWindowTargetActor r=ochameau,devtools-backward-compat-reviewers
The ChromeWindowTargetActor was not exposed to end users and doesn't support descriptors which will make it a blocker for fission refactors.
So we remove it for now.

Differential Revision: https://phabricator.services.mozilla.com/D105452
2021-02-18 11:10:13 +00:00
André Bargull 934a949ab6 Bug 1670055 - Part 3: Use OrdinaryHasInstance semantics for legacy Intl object detection. r=yulia
Implement the changes from <https://github.com/tc39/ecma402/pull/500>.

`Object.prototype.isPrototypeOf` can be used the implement the `OrdinaryHasInstance` semantics.

Test262 tests: <https://github.com/tc39/test262/pull/2949>.

Differential Revision: https://phabricator.services.mozilla.com/D105460
2021-02-18 10:59:26 +00:00
André Bargull 1d6a326cee Bug 1670055 - Part 2: Update test262 exclusions. r=yulia
Enable three now passing tests which were fixed upstream.

Disable two tests which require the changes from part 3.

Depends on D105458

Differential Revision: https://phabricator.services.mozilla.com/D105459
2021-02-18 10:59:26 +00:00
André Bargull 5963a8dad7 Bug 1670055 - Part 1: Update test262. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D105458
2021-02-18 10:59:25 +00:00
Julian Descottes 7cd91ace5b Bug 1693144 - [devtools] Fallback to the initial javascriptEnabled value from the target r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D105463
2021-02-18 10:54:19 +00:00
Kershaw Chang 67fbb1e79d Bug 1692120 - Avoid accessing nsSocketTransport::mCondition on main thread r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105596
2021-02-18 10:52:59 +00:00
smolnar 75b24e8485 Backed out changeset e9fe3f02c06a (bug 1588801) for causing xpc failures in test_ext_script_filenames. CLOSED TREE 2021-02-18 12:54:37 +02:00
Kershaw Chang 41aee156c6 Bug 1692886 - Record HTTP_TRANSACTION_RESTART_REASON correctly r=necko-reviewers,dragana
- Make sure we set the restart reason before calling Restart().
- Extend TRANSACTION_RESTART_REASON to also record the case for fast fallback.

Differential Revision: https://phabricator.services.mozilla.com/D105212
2021-02-18 10:42:50 +00:00
Calixte Denizet 0e15dc822e Bug 1693275 - Remove MOZ_LOW_PARALLELISM_BUILD from builds which switched from gcc to clang r=marco
We introduced MOZ_LOW_PARALLELISM_BUILD as a workaround when we migrated to gcp for some gcc builds. Since we switched to clang 11 for some of them, it can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D105598
2021-02-18 10:35:47 +00:00
smolnar c37dd67c46 Bug 1691878 - Fix lint failure. a=lin-fix CLOSED TREE DONTBUILD 2021-02-18 12:31:58 +02:00
William Durand e0091f942e Bug 1588801 - Add test coverage for JS files loaded from XPIs. r=mixedpuppy,robwu
JS files in packed webextensions (XPIs) are loaded via `nsJARChannel`,
which checks the content type of a file based on the extension by
calling `nsIMIMEService::GetTypeFromExtension()`.

We might not be able to guarantee the exact set of JS file extensions
because this method also asks the OS but it should still be reliable.
We allow `.js`, `.jsm` and `.mjs` (defined in `defaultMimeEntries` and
`extraMimeEntries`).

Differential Revision: https://phabricator.services.mozilla.com/D104450
2021-02-18 10:02:43 +00:00
smolnar da85975c5c Bug 1691878 - Fix eslint failure a=lint-fix CLOSED TREE 2021-02-18 12:00:47 +02:00
Timothy Nikkel 84cf44b544 Bug 1691878. Make one bit of test_layerization.html loop until it passes. r=botond
The comment in the test should explain.

Differential Revision: https://phabricator.services.mozilla.com/D105408
2021-02-18 09:29:54 +00:00
Timothy Nikkel 14de4ba0e1 Bug 1691878. Make test_layerization.html wait for the wheel events it sends and then paints instead of waiting for scroll events and no paints. r=botond
The waitForScroll argument to promiseMoveMouseAndScrollWheelOver determines if we wait for a scroll event (if waitForScroll is true) or a wheel event (if waitForScroll is false). That might not be clear just from looking at it (where one might assume waitForScroll = false means no waiting at all).

In all cases but one in this test we wait for the scroll event.

When activateAllScrollFrames = false I guess this is enough to guarantee that any new metrics have been sent in a transaction. But it is not with activateAllScrollFrames = true for two reasons.

The first is that apz can handle the wheel event for any scroll frame immediately, it will send a repaint request to content which will scroll and send a scroll event. Content can then handle that scroll event without even sending it's current metrics in a transaction. So we need to wait for paints to be flushed.

But even that is not enough because we can wait for a paint but in several cases we need a minimal display port to be cleared to be full display port and that happens in PrepareForSetTargetAPZCNotification, which only happens after content gets the wheel event, which can happen after apz gets the wheel event, and after content gets the scroll event, and after content gets the scroll event and paints.

So we need to wait for the wheel event to rearch content and then wait for paints.

Differential Revision: https://phabricator.services.mozilla.com/D105407
2021-02-18 09:29:54 +00:00
Timothy Nikkel 359ab85c9d Bug 1691878. Modify gfx/layers/apz/test/mochitest/test_layerization.html to test the activate all scroll frames code better. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D104656
2021-02-18 09:29:54 +00:00
Magnus Melin fbae73195d Bug 1474397 - Only try to import normandy modules in about:support / Troubleshoot.jsm, if normandy is enabled. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D105594
2021-02-18 09:18:37 +00:00
Jeff Gilbert 85bbcbfa5e Bug 1602143 - Use ShortStatementLines=1 for readability-braces-around-statements. r=andi
This will reduce the false-positive rate that sometimes causes devs to
ignore other important warnings because they expect to see these
warnings because of module/legacy code styles.

```
if (foo) return; // no longer warns
if (bar)
  return; // still warns
```
clang-format will sometimes turn long-line versions of the former into
the latter, and this warning will pick those as readability warnings.
NB: This is Chromium style for same-line conditional statements.

Another test result json has its EOL-newline removed too, since that's
what the script does and I'm just committing its results.

Differential Revision: https://phabricator.services.mozilla.com/D105497
2021-02-18 08:26:11 +00:00
smolnar ab304f6276 Backed out 2 changesets (bug 1672431) for causing mochitest failures at IOUtils. CLOSED TREE DONTBUILD
Backed out changeset 1f5a77c484b0 (bug 1672431)
Backed out changeset 65397d9e0ff3 (bug 1672431)
2021-02-18 10:20:24 +02:00
Barret Rennie 17a105fe5c Bug 1672431 - Provide a shutdown client for IOUtils r=xpcom-reviewers,nika
IOUtils now provides a shutdown client for clients to register IO jobs with
that need to run before shutdown finishes. This allows IO jobs to run during
the profileBeforeChange phase.

IOUtils' event queuing has been refactored into a singleton EventQueue class,
which is responsible for running tasks and setting up shutdown blockers. It is
now guarded behind a StaticDataMutex so that is more explicitly clear what is
and is not re-entrant. (The atomic sShutdownFinished cannot be placed behind
the mutex because we need to keep track of that state even when we do not have
an EventQueue.)

Differential Revision: https://phabricator.services.mozilla.com/D103973
2021-02-18 07:29:17 +00:00
Barret Rennie 2041c320d1 Bug 1672431 - Remove unsued InvokeToIOPromise r=nika
Differential Revision: https://phabricator.services.mozilla.com/D103972
2021-02-18 07:29:17 +00:00
Magnus Melin 0c4e76213a Bug 1689562 - mozJSComponentLoader::Import should not store locations that failed to resolve. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105367
2021-02-18 07:04:18 +00:00
Stephen A Pohl 1f52641c4f Bug 1693426: Add support for vertical progress bars and meters in the non-native theme. r=emilio,mstange
Differential Revision: https://phabricator.services.mozilla.com/D105551
2021-02-18 06:12:54 +00:00
Stephen A Pohl bea285f235 Bug 1693426: Enable meter-vertical-native-style-ref.html test on all platforms when the non-native theme is enabled. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D105574
2021-02-18 06:12:33 +00:00
Ting-Yu Lin e84baf5c73 Bug 1674302 Part 4 - Fix reftests and adjust test expectations. r=dholbert
With this patch series, firefox now renders
flexbox-table-flex-items-1.html the same as Google Chrome. Hence the
modification to flexbox-table-flex-items-1-ref.html.

Both table-as-item-flex-cross-size.html and
table-as-item-stretch-cross-size.html contain multiple captions. We still
don't support multiple caption (bug 144517), but passing them means we
correctly subtract caption's block-size when overriding table flex
item's block-size.

We also don't have enough test coverage for table flex items in column
flex container. Add some reftests adapted from existing ones that tests
table flex items in a row flex containers

Differential Revision: https://phabricator.services.mozilla.com/D103440
2021-02-18 05:45:25 +00:00
Ting-Yu Lin 1e1db8c9d9 Bug 1674302 Part 3 - Fix flex base size resolution and main/cross size override for table flex items. r=dholbert
This is the main patch of this bug.

When a flex container provides size overrides for a table flex item,
there are two use cases.

(1) When resolving flex base size, we want to use `flex-basis` to
replace the preferred main size on the *inner table frame* directly.
This is how `height` works on a table element. That is, it sets the
height of the inner table frame, not the table wrapper. This patch
invents `mApplyOverridesVerbatim` flag to tell table wrapper frame don't
do any modification.

(2) When overriding main-size/cross-size for a table flex item, the size
is for *table wrapper frame*. To apply the size to inner table frame,
the table wrapper frame needs adjust the size by subtracting the area
occupied by caption, border, and padding (depending on the box-sizing).

This patch fixes the flex base resolution, and implements the logic for
(2).

We use nsLayoutUtils::GetStyleFrame() to dig into inner table's sizing
properties when resolving flex base size, so we can stop inheriting flex
properties to table wrapper frame in ua.css.

We also need to check style frame's StylePosition() in IsCrossSizeAuto()
so that non-'auto' sizes can prevent tables from being stretched in the
cross axis, just as happens with other flex items. Otherwise with this
patch, the table flex item with fixed height in
dom/flex/test/chrome/test_flex_item_rect.html will be wrongly stretched.

Differential Revision: https://phabricator.services.mozilla.com/D103437
2021-02-18 05:45:25 +00:00
Ting-Yu Lin cf926779e7 Bug 1674302 Part 2 - Use StyleSizeOverrides to replace ComputeSizeFlag::UseAutoISize. r=dholbert
`UseAutoISize` flag is buggy when used on table flex items because it
never propagates to inner table frame.

Luckily, we can fix it by replacing the flag with StyleSizeOverrides
emplacing an 'auto' mStyleISize, because when computing the size, the
size overrides already propagates from table wrapper to inner table via
the following path:

  `nsTableWrapperFrame::ComputeSize()` [1] ->
  `nsTableWrapperFrame::ComputeAutoSize()` ->
  `nsTableWrapperFrame::InnerTableShrinkWrapISize()` ->
  `nsTableFrame::ComputeSize()`.

Part 3 is going to propagate the size overrides to inner table in
`nsTableWrapperFrame::CreateReflowInputForInnerTable()` during reflow.

This patch fixes the content size suggestion for table flex items.
Combining this patch with Part 3, we can fix those reftests in Part 4.

[1] In this patch, the table wrapper is still using nsContainerFrame's
ComputeSize(), but Part 3 is going to override it.

Differential Revision: https://phabricator.services.mozilla.com/D103438
2021-02-18 05:45:24 +00:00
Ting-Yu Lin 5c0047ddf2 Bug 1674302 Part 1 - Change a FLEX_LOG to dump address of flex item's frame rather than flex item itself. r=emilio
All the other FLEX_LOGs dump the address of flex item's frame.

Differential Revision: https://phabricator.services.mozilla.com/D104644
2021-02-18 05:45:24 +00:00
Emilio Cobos Álvarez 5e826cb7c5 Bug 1673637 - Tweak cocoa fuzz in another test with a different ref.
Differential Revision: https://phabricator.services.mozilla.com/D105576
2021-02-18 05:38:10 +00:00
Emilio Cobos Álvarez 0c577d1451 Bug 1693395 - Add XROutputColor:PrintAsGrayscale to the grayscale values for CUPS. r=jfkthame
See bug 1676191 comment 32.

Differential Revision: https://phabricator.services.mozilla.com/D105513
2021-02-18 05:18:38 +00:00
Stephen A Pohl 2d36991217 Bug 1693449: Adjust fuzziness on meter-native-style.html to pass on Windows with the non-native theme enabled. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D105573
2021-02-18 05:18:04 +00:00