Commit Graph

759300 Commits

Author SHA1 Message Date
James Teh
1c29b2b8ad Bug 1713383: Block rtop_bg.exe (ByteFence Anti-Malware) from instantiating a11y. r=eeejay
This is a security product and has no good reason to instantiate a11y.
We've also seen it show up in obscure crash reports.

Differential Revision: https://phabricator.services.mozilla.com/D116536
2021-06-02 23:33:11 +00:00
James Teh
b8e46961a0 Bug 1713680: When deferring a11y IPC calls, always defer calls to BrowserBridgeChild::SendSetEmbedderAccessible too. r=eeejay
Previously, we only deferred SendSetEmbedderAccessible calls for in-process iframes if the DocAccessibleChild hadn't sent its constructor yet.
This meant that top level content process documents (tab documents or OOP iframes) called SendSetEmbedderAccessible even if a11y insertions/removals were still being deferred.

Differential Revision: https://phabricator.services.mozilla.com/D116435
2021-06-02 23:02:12 +00:00
Sam Foster
e1641e46b7 Bug 1682634 - Add a mochitest-chrome test for the screenshot flow and result dimensions. r=emalysz
* Some helpers and a basic test for full page and visible page screenshots, using the clipboard to examine the result
* The visible page test's assertions are marked todo, as we don't actually get the expected image dimensions currently. This is possibly bug 1711101?

Differential Revision: https://phabricator.services.mozilla.com/D99854
2021-06-02 22:52:04 +00:00
Harry Twyford
1ad2192ecf Bug 1677126 - Part 5 - Improve sorting of remote tabs so more recent tabs are more likely to be shown first. r=adw
This is its own part since it is a behaviour change. After adding recent tabs, we can add as many stale tabs as we want because the muxer will flex them with other results.

Differential Revision: https://phabricator.services.mozilla.com/D114896
2021-06-02 22:43:30 +00:00
Harry Twyford
8c2a61dafd Bug 1677126 - Part 4 - Port remote tab tests and update them to expect result flex. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D114895
2021-06-02 22:43:29 +00:00
Harry Twyford
2ae48118ca Bug 1677126 - Part 3 - Remove PlacesRemoteTabsAutocompleteProvider.jsm and remote tab code in UnifiedComplete. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D114894
2021-06-02 22:43:29 +00:00
Harry Twyford
f08bf38c48 Bug 1677126 - Part 1 - Factor UrlbarProviderRemoteTabs out from UnifiedComplete and PlacesRemoteTabsAutocompleteProvider. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D114893
2021-06-02 22:43:28 +00:00
Alexandru Michis
e2d14cb719 Backed out changeset 550fd06e9120 (bug 1713015) for causing bc failures in browser_HCM_telemetry.js
CLOSED TREE
2021-06-03 02:26:48 +03:00
Sonia Singla
c2ffd0413b Bug 1661517 - Removed extensions.allowPrivateBrowsingByDefault preference. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D97094
2021-06-02 21:48:05 +00:00
Nick Alexander
cba669901b Bug 1713173 - Add --profile-command flag for profiling mach commands. r=firefox-build-system-reviewers,mhentges
I chose to do this at the level of the outer Python invocation because:

1. `python -m cProfile ...` handles writing the file and some other
   details.  It's possible to rebuild the functionality -- the tools
   are there -- but the APIs are awkward.

2. this allows to profile `mach` internals, instead of just the
   invoked command's implementation.

This uses the return code of the `get_command` subshell to transmit
the single bit of information "is the flag present".

The Python-level argument is required in order to have `--help` know
about the option and to avoid the `mach` shell script having to filter
arguments.

Differential Revision: https://phabricator.services.mozilla.com/D116151
2021-06-02 21:28:56 +00:00
Nick Alexander
e11d5cd04e Bug 1714159 - Handle c:/... and C:/... when making relative paths in mozlint. r=ahal
Depends on D116151

Differential Revision: https://phabricator.services.mozilla.com/D116637
2021-06-02 21:27:40 +00:00
Nick Alexander
16ab993262 Bug 1713683 - Run setup function with lintargs including log and virtual env binary path. r=ahal
This was oversight from Bug 1713178, which made black's `setup`
function require them but didn't bump the test.

Differential Revision: https://phabricator.services.mozilla.com/D116493
2021-06-02 21:24:49 +00:00
Glenn Watson
789bc7cc92 Bug 1713544 - Introduce CompositorTransform and store CompositeTiles in local space. r=gfx-reviewers,lsalzman
Store CompositeTile instances in local space, and add support for compositor
transforms that can map local -> raster -> device space without access to the
spatial tree.

This is prep work for supporting picture cache tiles that are scaled by the
composite step during pinch-zoom, for low-end GPUs. Follow up patches will
port the native compositor surface and external descriptors to also work
in local space, converting to raster or device space on demand as required.

Differential Revision: https://phabricator.services.mozilla.com/D116331
2021-06-02 21:15:03 +00:00
James Graham
029f324a5c Bug 1713935 - Make geckodriver pass clippy, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D116595
2021-06-02 20:29:53 +00:00
James Graham
0427ce5318 Bug 1713935 - Make testing/webdriver/ pass clippy, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D116594
2021-06-02 20:29:52 +00:00
James Graham
aea537765d Bug 1713935 - Make rust mozrunner pass clippy, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D116593
2021-06-02 20:29:52 +00:00
James Graham
acd2d2f445 Bug 1713935 - Make rust mozversion pass clippy, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D116592
2021-06-02 20:29:51 +00:00
James Graham
b5e6b1b096 Bug 1713935 - Make rust mozprofile pass clippy, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D116591
2021-06-02 20:29:51 +00:00
Thomas Wisniewski
b97066dd63 Bug 1714180 - fix a logic flaw in SmartBlock which makes it more permissive than necessary; r=denschub,webcompat-reviewers
The bug in question is that if a user opts into allowing one tracker on a given
site for the session, new visits to that site will allow others trackers as
well, not just the expected one.

While we're here, we also improve the web console messages to show the same
"allowing X due to opt in" message on new visits as well, not just the original
one where the user initially opted-in for that shim.

We might as well also land bug 1712959 into m-c, rather than waiting for the
next webcompat release cycle.

Differential Revision: https://phabricator.services.mozilla.com/D116642
2021-06-02 20:10:52 +00:00
Brindusan Cristian
1de84dbd79 Backed out changeset 7ce1b7de9a7c (bug 1713544) for causing wrench bustages.
CLOSED TREE
2021-06-02 23:13:53 +03:00
Glenn Watson
55d8194fb2 Bug 1713544 - Introduce CompositorTransform and store CompositeTiles in local space. r=gfx-reviewers,lsalzman
Store CompositeTile instances in local space, and add support for compositor
transforms that can map local -> raster -> device space without access to the
spatial tree.

This is prep work for supporting picture cache tiles that are scaled by the
composite step during pinch-zoom, for low-end GPUs. Follow up patches will
port the native compositor surface and external descriptors to also work
in local space, converting to raster or device space on demand as required.

Differential Revision: https://phabricator.services.mozilla.com/D116331
2021-06-02 19:49:26 +00:00
Tim Huang
dd82fd0981 Bug 1706615 - Part 9: Add a test to test query stripping with ETP toggle. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116117
2021-06-02 19:46:22 +00:00
Tim Huang
55a6f082b6 Bug 1706615 - Part 8: Preserve the unstripped URI when doing a reload. r=smaug
To restore the stripped query parameters when ETP toggle has been set to
off, we preserve the current unstripped URI to the new loadState when
doing a reload. By doing this, it will redirect the channel back to the
unstripped URI because the loading channel is in the content blocking
allow list and it has a unstripped URI in its loadInfo.

Differential Revision: https://phabricator.services.mozilla.com/D116116
2021-06-02 19:46:22 +00:00
Tim Huang
521d7a9cd7 Bug 1706615 - Part 7: Skip query stripping for redirects if the redirect URI is in the content blocking allow list. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D116114
2021-06-02 19:46:22 +00:00
Tim Huang
cf30dbb9b8 Bug 1706615 - Part 6: Perform a redirect to the unstripped URI if the loading channel is in the content blocking allow list. r=valentin,necko-reviewers
In order to respect the content blocking allow list permission, we have
to do an internal redirect to the unstripped URI. We can only do this by
using an internal redirect because the stripping was happened in loadURI
in the content process. At the moment, the content process doesn't know
the content blocking allow list principal for the cross-origin URI. So,
we don't know if we should skip the query stripping. To resolve this,
we have to redirect the chanell back to the unstripped URI in the parent
process where the permission is available.

Differential Revision: https://phabricator.services.mozilla.com/D116113
2021-06-02 19:46:21 +00:00
Tim Huang
0f49885a4b Bug 1706615 - Part 5: Preserve the original redirect URI when query stripping happens during redirects. r=valentin,necko-reviewers
The patch makes the original redirect URI to be preserved in the
loadInfo of the redirect channel when query stripping happens during
redirects.

Differential Revision: https://phabricator.services.mozilla.com/D116112
2021-06-02 19:46:21 +00:00
Tim Huang
5aaa42e8bf Bug 1706615 - Part 4: Preserve the original URI into unstrippedURI if query stripping happens for navigations. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116111
2021-06-02 19:46:21 +00:00
Tim Huang
a93a64c24f Bug 1706615 - Part 3: Propagate the unstrippedURI to LoadInfo from the nsDocShellLoadState. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116110
2021-06-02 19:46:20 +00:00
Tim Huang
99cf3b886d Bug 1706615 - Part 2: Add UnstrippedURI in the nsDocShellLoadState. r=smaug
This patch adds an attribute UnstrippedURI in the nsDocShellLoadState.
The attribute will be set if the query stripping was happening.
Otherwise, it will stay a nullptr. This attribute will be propagated to
the loadInfo, so that we can revert the query stripping in the parent
process if the loading URI is in the content blocking allow list. We can
only revert the query stripping in the parent process because we cannot
access the permission of the content blocking allow list of a
cross-origin domain. So, we can only carry the unstripped URI in the
loadInfo and perform a interal redirect to revert the query stripping.

Differential Revision: https://phabricator.services.mozilla.com/D116109
2021-06-02 19:46:20 +00:00
Tim Huang
d7220a241a Bug 1706615 - Part 1: Add a UnstrippedURI into the LoadInfo. r=valentin,necko-reviewers
This patch adds a UnstrippedURI into the LoadInfo. This attribute
represents the channel's URI has been stripped if this attributes is not
a nullptr.

Having this attribute allows us to be able to revert the query stripping
in the case where the loading channel is in the content blocking allow
list in the parent process.

In addition, this patch removes the main thread assertion in URIUtils
given that we've made the URL construction thread-safe. This will allow
us to be able to use nsIURI directly in ParentLoadInfoForwarderArgs.

Differential Revision: https://phabricator.services.mozilla.com/D116108
2021-06-02 19:46:19 +00:00
Andrew Halberstadt
971c85bc4e Bug 1694824 - [ci] Enable fission mochitest-browser-chrome with Linux asan, r=jmaher
This makes the following changes on autoland:
+test-linux1804-64-asan/opt-mochitest-browser-chrome-fis-e10s

And the following changes on central:
+test-linux1804-64-asan/opt-mochitest-browser-chrome-fis-e10s

Differential Revision: https://phabricator.services.mozilla.com/D116623
2021-06-02 19:22:26 +00:00
Andrew Halberstadt
715c4c509d Bug 1694824 - [ci] Enable more fission mochitest-browser-chrome tasks, r=jmaher
This makes the following changes on autoland:
+test-linux1804-64/opt-mochitest-browser-chrome-fis-e10s
+test-macosx1015-64-qr/debug-mochitest-browser-chrome-fis-e10s
+test-macosx1015-64-qr/opt-mochitest-browser-chrome-fis-e10s
+test-windows10-64-qr/debug-mochitest-browser-chrome-fis-e10s
+test-windows10-64-qr/opt-mochitest-browser-chrome-fis-e10s

And the following changes on central:
+test-macosx1015-64-qr/debug-mochitest-browser-chrome-fis-e10s
+test-macosx1015-64-shippable-qr/opt-mochitest-browser-chrome-fis-e10s
+test-windows10-64-qr/debug-mochitest-browser-chrome-fis-e10s
-test-windows10-64-shippable/opt-mochitest-browser-chrome-fis-e10s

Differential Revision: https://phabricator.services.mozilla.com/D116277
2021-06-02 19:22:26 +00:00
Andrew Halberstadt
f84d5f3016 Bug 1694824 - [ci] Annotate browser-chrome manifests for new fission failures, r=jmaher,extension-reviewers,preferences-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D116276
2021-06-02 19:22:25 +00:00
Morgan Reschenberg
fd52aa53a0 Bug 1713015: Default browser.display.document_color_use to 0 on MacOS r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D116046
2021-06-02 18:52:21 +00:00
Tom Ritter
ab5f4a5760 Bug 1700396 - Bump updatebot to avoid relinquished-based frequency bug r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D116628
2021-06-02 18:39:20 +00:00
Alexandru Michis
fd44fe5ee5 Bug 1714156 - Fix lint failures in test_manifest.py
CLOSED TREE
2021-06-02 21:25:07 +03:00
Emilio Cobos Álvarez
9fc5782628 Bug 1713787 - Remove some tests that time out in all browsers. r=boris
These tests are not right, they are expecting untyped custom properties
to transition, and that's not how these work.

All browsers time out:

  https://wpt.fyi/results/css/css-variables?label=master&label=experimental&aligned

So we should just remove them IMO.

Depends on D116460

Differential Revision: https://phabricator.services.mozilla.com/D116461
2021-06-02 18:07:16 +00:00
june wilde
bece79b87e Bug 1714156 - Disallow 0 weeks in frequency in moz.yaml schema; r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D116626
2021-06-02 18:05:49 +00:00
Alexandru Michis
bb641b1b97 Backed out changeset 4235df3527a6 (bug 1713810) for causing dt failures in browser_storage_listings.js
CLOSED TREE
2021-06-02 20:32:14 +03:00
Dana Keeler
1b9fd10c83 Bug 1701192 - don't allow third-party loads to set HSTS state r=annevk,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D115715
2021-06-02 16:52:19 +00:00
stransky
8fc7a589e6 Bug 1708482 [Wayland] Add Wayland taskcluster variants to linux1804 tests, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D116500
2021-06-02 16:48:49 +00:00
Alexandre Poirot
f5f4732cb7 Bug 1713810 - [devtools] Fix openTabAndSetupStorage and clearStorage test helpers with fission. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D116478
2021-06-02 16:48:22 +00:00
Alexandre Poirot
24e725e900 Bug 1712591 - [devtools] Migrate from navigate to DOCUMENT_EVENT dom-complete in the web console. r=nchevobbe
This helps execute code on navigation, even if the document loads super fast
and target actor's navigate is emitted before frontend has a chance to register the navigate event.

Differential Revision: https://phabricator.services.mozilla.com/D115825
2021-06-02 16:44:41 +00:00
Alexandre Poirot
29f76f8a11 Bug 1712591 - [devtools] Expose hasNativeConsoleAPI via DOCUMENT_EVENT's dom-complete resource. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D115824
2021-06-02 16:44:41 +00:00
alwu
85a74c965b Bug 1517199 - part6 : add A/V sync test case for changing playback rate dynamically. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D116285
2021-06-02 16:39:03 +00:00
alwu
1ecb5dfaf2 Bug 1517199 - part5 : handle the playback rate change on video track and add crash test. r=padenot
When we adjust the playback rate on the audio track, the audio clock time would be no longer align with the graph time.

Eg. playback rate=2, when the graph time passes 10s, the audio clock time actually already goes forward 20s.

After audio track ended, the video track would start to drive the clock time but the video clock time is align with the graph time, which means it would be smaller than the audio clock in that situation.

Therefore, we have to ignore the video clock time in that case. In addition, this patch also address the duration change on video frames based on the playback rate.

Differential Revision: https://phabricator.services.mozilla.com/D115035
2021-06-02 16:39:02 +00:00
alwu
b9d1fb014e Bug 1517199 - part4 : add gtest. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D114922
2021-06-02 16:39:02 +00:00
alwu
b1e6b39bc3 Bug 1517199 - part3 : add more logs. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D114921
2021-06-02 16:39:02 +00:00
alwu
095e8f93fc Bug 1517199 - part2 : enable wpts. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D114916
2021-06-02 16:39:01 +00:00
alwu
f18229c7fc Bug 1517199 - part1 : time stretching samples in AudioDecoderInputTrack. r=padenot
By using the soundtouch library, this patch implements the time stretching on the samples in AudioDecoderInputTrack when its playback rate is not 1.0f, in order to support changing playback rate on the captured media stream.

As the time stretcher has to be initialized by a fixed channel count, we would perform a realtime up-mix/down-mix for those audio chunks which have different channel count thant AudioDecoderInputTrack's initial channel count.

Differential Revision: https://phabricator.services.mozilla.com/D114560
2021-06-02 16:39:01 +00:00