Commit Graph

745517 Commits

Author SHA1 Message Date
Kershaw Chang
27c050e058 Bug 1689987 - Fix build error. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D105648
2021-02-18 16:39:30 +00:00
Emma Malysz
b8fb1100c5 Bug 1669732, add error message for invalid number of copies r=mstriemer,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D103385
2021-02-18 16:23:54 +00:00
Edgar Chen
6cf20e1a61 Bug 1693194 - Split wpt pointerevent_attributes_hoverable_pointers.html; r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D105376
2021-02-18 15:41:06 +00:00
Andrew Osmond
c068c92afd 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 15:37:47 +00:00
Andrew Osmond
40e2f1c6f5 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 15:37:46 +00:00
William Durand
77c9e5340c 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 15:35:46 +00:00
Steven Englehardt
2478333276 Bug 1689271 - Extend COOKIE_PURGING_* probes indefinitely; r=timhuang, data-review=tdsmith
Differential Revision: https://phabricator.services.mozilla.com/D105062
2021-02-18 15:05:15 +00:00
Nihanth Subramanya
5fbb6b0564 Bug 1693527 - When migrating old TRR mode, don't clear network.trr.mode if its value is 5. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D105625
2021-02-18 14:34:03 +00:00
Andrei Oprea
613f319b79 Bug 1693437 - Fix Intermittent toolkit/components/messaging-system/test/browser/browser_remotesettingsexperimentloader_init.js r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D105603
2021-02-18 14:13:57 +00:00
Matthew Gaudet
c4c40771a1 Bug 1693027 - Convert TranscodeResult to a strongly typed enum r=arai,kmag
Differential Revision: https://phabricator.services.mozilla.com/D105304
2021-02-18 13:55:19 +00:00
Matthew Gaudet
8532b9fbfb Bug 1693027 - Explicitly check for JS::TranscodeResult_Ok r=kmag
JS::TranscodeResult_Ok is defined to be zero; this means that during synchronous decode
of a script, regardless of if we succeed or fail we ultimately return a nullptr script.

Differential Revision: https://phabricator.services.mozilla.com/D105303
2021-02-18 13:55:18 +00:00
Alexis Beingessner
1d8964049c Bug 1686616 - make SocketTransport use Components instead of Services. r=kmag,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105534
2021-02-18 13:26:34 +00:00
Alexis Beingessner
fc3bf87d11 Bug 1686616 - make StreamTransport use Components instead of Services. r=kmag,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105533
2021-02-18 13:26:33 +00:00
Alexis Beingessner
0df92fdb83 Bug 1686616 - make CacheStorage use Components instead of Services. r=kmag,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105532
2021-02-18 13:26:33 +00:00
Alexis Beingessner
07f2f659c6 Bug 1686616 - make StringBundle use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105531
2021-02-18 13:26:32 +00:00
Alexis Beingessner
3f1a425606 Bug 1686616 - make IO use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105530
2021-02-18 13:26:32 +00:00
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