Commit Graph

759286 Commits

Author SHA1 Message Date
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
Rob Wu
f1fa2bbeaa Bug 1713783 - Remove inaccurate theme tests for about:welcome r=rpl,pdahiya
The tests do not reflect reality, see the bug for more details.

The content area of the Proton `about:welcome` uses
`var(--in-content-page-color)` and `var(--in-content-page-background)`
for the text and background color. The main background itself already
has colors distinct from the default background. Moreover,
`about:welcome` is part of the onboarding experience, at which point
users will likely not have a custom theme, so it's not necessary to
adjust the colors.

Differential Revision: https://phabricator.services.mozilla.com/D116453
2021-06-02 16:30:17 +00:00
Jan-Erik Rediger
8321cd2247 Bug 1693486 - Implement new event extra API. r=chutten
This drops the _old_ API fully and implements support only for the new object-focused API,
regardless of `type` defintions in metrics.yaml.

The new API will look like the following examples:

Rust

    let extra = AnEventKeys {
        extra1: Some("a-value".into()),
        ..Default::default()
    };
    category::an_event.record(extra);

(Note: not optimal yet, but we can extend this with a builder-like
pattern later)

C++

    AnEventExtra extra = { .extra1 = Some("value"_ns) };
    category::an_event.Record(Some(extra));

JavaScript (actually unchanged!)

    let extra = { extra1: "value" };
    Glean.category.anEvent.record(extra);

(Note: The JavaScript API accepts strings, booleans and integers for any
extra value and will stringify them regardless of their specified type.)

Differential Revision: https://phabricator.services.mozilla.com/D114498
2021-06-02 16:07:56 +00:00
Jan-Erik Rediger
9375105329 Bug 1693486 - Update glean-parser to v3.4.0. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D116377
2021-06-02 16:07:56 +00:00
Jan-Erik Rediger
b94eb35006 Bug 1693486 - Update to Glean 39.0.0. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D116376
2021-06-02 16:07:56 +00:00
pavelpaklov
e4e0623f1d Bug 1697077 - Add testing function for interrupting RegExp execution. r=iain
Added flag shouldSimulateInterrupt to Isolate class;
added bailout code in SMRegExpMacroAssembler::Backtrack;
added a check of shouldSimulateInterrupt in RegExpShared::execute;
added InterruptRegexp to js shell that sets flags shouldSimulateInterrupt and serviceInterrupt, and executes regexp.

Differential Revision: https://phabricator.services.mozilla.com/D116361
2021-06-02 16:07:02 +00:00
Jeff Muizelaar
6648dc280c Bug 1714081 - Add SafeIntersect. r=nical
SafeIntersect handles overflow better.

Differential Revision: https://phabricator.services.mozilla.com/D116605
2021-06-02 16:02:53 +00:00
Matthew Gaudet
af055d13c0 Bug 1714026 - Update assertion in SortComparatorIds r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D116612
2021-06-02 15:55:22 +00:00
Jeff Muizelaar
6826ec4fff Bug 1713486. Fix per context swgl memory reporting. r=lsalzman
This passes the swgl context down from the renderer
instead of using the current context. This ensures
we report all of the contexts and don't double report.

Differential Revision: https://phabricator.services.mozilla.com/D116474
2021-06-02 15:40:46 +00:00
Jan-Erik Rediger
78bfa75ec7 Bug 1714036 - Add a way to automatically update the expected file contents for Glean tests. r=chutten
One can now run the tests with `UPDATE_EXPECT=1` and the code will
update the files, so one can then commit them (after verifying that they
do what they should)

Differential Revision: https://phabricator.services.mozilla.com/D116563
2021-06-02 15:27:05 +00:00
Harry Twyford
646104e053 Bug 1662167 - Part 3 - Modify input history tests to pass. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D115737
2021-06-02 15:16:57 +00:00
Harry Twyford
d3714c373c Bug 1662167 - Part 2 - Remove adaptive query code from UnifiedComplete. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D115736
2021-06-02 15:16:56 +00:00
Harry Twyford
8dfb91b69a Bug 1662167 - Split UrlbarInputHistoryProvider from UnifiedComplete. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D115735
2021-06-02 15:16:56 +00:00
Harry Twyford
9869ac49b9 Bug 1662167 - Part 0 - Create necessary helper functions for provider porting. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D115014
2021-06-02 15:16:55 +00:00
Christian Holler
8c258b33ee Bug 1714046 - Build fuzzilli without NSPR and with instrumentation. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D116581
2021-06-02 14:38:07 +00:00