Commit Graph

718331 Commits

Author SHA1 Message Date
Edwin Takahashi
afd4560cb8 Bug 1648851 - Part 0: create android-test docker image based on Ubuntu 20.04 r=jmaher,gbrown
Changes:
  - set up a new minimal docker image for `android-em` tests.
  - reorganize commonly referenced files into a specific folder `taskcluster/docker/files` to reduce instances of same file being copy-pasted into directories.
  - add android-test docker build task to taskcluster.

Differential Revision: https://phabricator.services.mozilla.com/D82204
2020-07-08 17:46:37 +00:00
Severin
78b47cf639 Bug 1652716 - fix pmgr doorhanger dropdown suggestions leaking between tabs;r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D83692
2020-07-16 20:56:00 +00:00
Nico Grunbaum
23016eef02 Bug 1653167 - display user overrides of default webrtc prefs in about:config;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D83728
2020-07-16 20:01:19 +00:00
Dave Townsend
34d2b6eb5b Bug 1653345: Expose more detailed item identifiers for interactions with the menu bar. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D83846
2020-07-16 20:40:17 +00:00
David Major
d060f1b4f5 Bug 1653342 - Make MozsearchIndexer.cpp buildable with clang-11 r=asuth
Two changes happened during the LLVM 11 timeframe that break our Searchfox plugin.

First, the conversion from `llvm::StringRef` to `std::string` became explicit: adcd026838 This is easy enough to fix in a version-agnostic way.

Second, `mangleCXXCtor` no longer exists: 29e1a16be8 Since there isn't a one-size-fits-all fix, I had to use an ifdef. I mostly cargo-culted the change from 29e1a16be8 (diff-dac09655ff6a54658c320a28a6ea297c).

Differential Revision: https://phabricator.services.mozilla.com/D83838
2020-07-16 19:46:35 +00:00
Emilio Cobos Álvarez
a4fa8230aa Bug 1653339 - Teach style_derive's map_type_params about mapping self correctly. r=boris
Consider the following:

struct Complex<T> {
    something: T,
    #[compute(field_bound)]
    something_else: Generic<Self, T>,
}

That will generate:

impl<T> ToComputedValue for Complex<T>
where
    T: ToComputedValue,
    Generic<Self, T>: ToComputedValue<ComputedValue = Generic<Self, <T as ToComputedValue>::ComputedValue>>,
{
    // ...
}

That last clause is obviously incorrect. map_type_params correctly maps
the T, but it should know also about Self.

Ideally we could just do the same as for T and do:

    <Self as ToComputedValue>::ComputedValue

But that doesn't quite work, because we are in that implementation of
the trait, and the compiler rightfully complains about we don't yet
knowing the computed type. So we need to pass it explicitly, which is
simple enough, if a bit annoying.

Differential Revision: https://phabricator.services.mozilla.com/D83816
2020-07-16 18:51:21 +00:00
longsonr
63ae9a2469 Bug 1652194 - Remove SVGGenericContainerFrame r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D83257
2020-07-16 20:53:36 +00:00
Geoff Brown
0cfcab6c1d Bug 1652756 - Update pipenv to 2020.06.02; r=ahal
These are the changes made by 'mach vendor python pipenv==2020.06.02', and nothing else.

Differential Revision: https://phabricator.services.mozilla.com/D83536
2020-07-16 20:29:03 +00:00
Kartikaya Gupta
bb263023fa Bug 1653279 - Expand set of file changes that trigger android wrench jobs. r=ahal
This should help catch failures due to mozharness refactorings/changes faster.

Differential Revision: https://phabricator.services.mozilla.com/D83793
2020-07-16 20:30:07 +00:00
Razvan Maries
6767314b95 Backed out 4 changesets (bug 1648453) for hazzard bustages on CycleCollectedJSContext.cpp. CLOSED TREE
Backed out changeset 9598a75cca47 (bug 1648453)
Backed out changeset 473e7d55a25e (bug 1648453)
Backed out changeset 0afcee198ecd (bug 1648453)
Backed out changeset 623252539387 (bug 1648453)
2020-07-17 00:01:11 +03:00
Marco Castelluccio
b69737572a Bug 1653030 - Use Python's not operator
Differential Revision: https://phabricator.services.mozilla.com/D83849
2020-07-16 20:38:14 +00:00
Marco Castelluccio
ab73b2650b Bug 1653030 - Make 'All' optimization strategy return early as soon as one of its substrategies returns False. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D83715
2020-07-16 20:24:39 +00:00
Razvan Maries
4ccaec8564 Backed out 3 changesets (bug 1653123, bug 1602115) for perma failures on test_history_length_during_pageload.html. CLOSED TREE
Backed out changeset 6b3c0f542ef3 (bug 1653123)
Backed out changeset 951c0fd65a00 (bug 1602115)
Backed out changeset 258d0ebd9e34 (bug 1602115)
2020-07-16 23:21:18 +03:00
Kirk Steuber
f72690c246 Bug 1638055 - Fix update URL generation function's locale detection r=mhowell,agashlin
Differential Revision: https://phabricator.services.mozilla.com/D82790
2020-07-16 20:04:58 +00:00
Markus Stange
3c42ca75be Bug 1578042 - Ignore skipped frames when the video was offscreen. r=jya,nical
This currently only works for WebRender. In non-WR, no frame drops are reported.

There are two reasons why it doesn't work for non-WR:
 - Non-WR currently does not increment the composition opportunity ID.
 - In non-WR, UpdateCompositedFrame is only called for videos when they are
   drawn. But this detection relies on it being called on every composite, if
   the video is part of the on-screen scene. (WR does that.)

To make this detection work for non-WR as well, we would need to address both
of those points. The latter point is somewhat tricky because non-WR calls
ChooseImageIndex many times throughout a composite, and we would need to choose
a point in the composite at which to "lock in" the image for that composite and
cache the image index on the ImageHost somewhere, and then also find a way to
reset that locked-in index in the next composite. I haven't come up with a way
to do that and I do not know if it is worth the effort.

Differential Revision: https://phabricator.services.mozilla.com/D83463
2020-07-16 03:37:03 +00:00
Markus Stange
8354dbbcf2 Bug 1578042 - Propagate CompositionOpportunityId to ImageComposite. r=jya,nical
Differential Revision: https://phabricator.services.mozilla.com/D83462
2020-07-16 08:47:49 +00:00
Markus Stange
8dfd00ccf3 Bug 1578042 - Add a CompositionOpportunityId counter and implement it for WebRender. r=nical
This ID is different from the IDs we already have:
 - It is different from VsyncId because it doesn't skip numbers when composites
   are delayed.
 - It is different from RenderedFrameId because it also increases for no-op
   composites.
 - It is different from transaction IDs and epochs because it doesn't care about
   the content side, it just looks at compositing.

It is currently not implemented for non-WR. In non-WR the video frame drop
detection wouldn't properly work anyway, because UpdateCompositedFrame is not
called on every composite for non-WR.

Differential Revision: https://phabricator.services.mozilla.com/D83461
2020-07-16 03:37:02 +00:00
Markus Stange
8b30d46d48 Bug 1578042 - Improve dropped frames reporting for videos, by counting all frames in mImages that were never composited. r=jya,nical
In the current state this also counts frame drops while the video is offscreen,
but this will be fixed in a later patch in the series.

This patch also adjusts the time delta check: It now compares floored milliseconds.
In 60fps WebM videos, the video frame durations are 16.0, 17.0, 17.0, 16.0, 17.0, 17.0, ...
so we need to consider frames with 16.0ms as displayable even when the target
frame duration is 16.67ms, otherwise we gloss over one third of the frames when
counting potentially dropped frames.

Differential Revision: https://phabricator.services.mozilla.com/D82635
2020-07-16 03:37:02 +00:00
Markus Stange
e017879ff1 Bug 1578042 - Don't call UpdateCompositedFrame outside of a composition. r=jya,nical
Correctly indicate that we're not in a composition during SetDisplayList or
during empty transactions, by making sure the composition timestamp is null
outside of a composition.

We also now return 0 rather than -1 from the first call to ChooseImageIndex
outside of a composition, so that static images (like canvases) default to
the correct initial frame. We don't call ChooseImageIndex for them again once
we composite them.
This is different from non-WebRender, which would call ChooseImageIndex on
canvas layers during every composition.

This introduces a behavior difference for static images when WebRender is enabled:
Those images will no longer update mLastFrameID, because UpdateCompositedFrame
will not be called during a composition for them.

I'm also removing a comment that seems like it's unnecessarily duplicating
information from another comment a few lines further up. That other comment is
also easier to understand.

Differential Revision: https://phabricator.services.mozilla.com/D83460
2020-07-16 08:47:21 +00:00
Markus Stange
6d2c616de5 Bug 1578042 - Move more logic into UpdateCompositedFrame. r=jya,nical
This also makes it so that UpdateBias for non-WebRender is only called when the
video frame changes. This mirrors the recent change that we made for WebRender
in bug 1652181. Non-WebRender only calls UpdateCompositedFrame when it actually
draws the video onto the screen, so when the video is the only thing that was
updating, the new behavior is equivalent. But the new behavior makes more sense
if you have a 30fps video and a 60fps animation running on a 60fps screen at the
same time - now the bias won't be accidentally reset every other frame.

Differential Revision: https://phabricator.services.mozilla.com/D83459
2020-07-16 03:37:02 +00:00
Markus Stange
3afdfd4289 Bug 1578042 - Update mLastFrameID in a new method UpdateCompositedFrame. r=jya,nical
Differential Revision: https://phabricator.services.mozilla.com/D82634
2020-07-16 03:37:01 +00:00
alwu
6879e655b6 Bug 1647430 - part3 : remove DocTreeHadPlayRevoked related variable and method. r=nika
The telemetry probe, which is related with `mDocTreeHadPlayRevoked`, has already been removed, so we don't need these code anymore.

Differential Revision: https://phabricator.services.mozilla.com/D83163
2020-07-13 15:16:29 +00:00
alwu
37f08f36a0 Bug 1647430 - part2 : store DocTreeHadAudibleMedia in WindowContext. r=nika
After we enable Fissions, we can't always access the top level document because it might be in another process.

Therefore, we should move `mDocTreeHadAudibleMedia` from document to the top window context, which can ensure that we set the value correctly even if setting `mDocTreeHadAudibleMedia` happens in a different process which is different from the process where the top level document exists.

Differential Revision: https://phabricator.services.mozilla.com/D83162
2020-07-16 19:53:49 +00:00
alwu
f88c326e31 Bug 1647430 - part1 : add a method to get top level window context. r=nika
Reuse same code and reduce the duplication.

Differential Revision: https://phabricator.services.mozilla.com/D83161
2020-07-14 02:18:22 +00:00
Kris Maglione
c75a803c6e Bug 1646542: Fix GetInProcessParent usage in IsSameOrAncestor. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D80097
2020-07-15 20:17:52 +00:00
Mitchell Hentges
136fa3e403 Bug 1653135: Sentry integration should handle incomplete settings r=firefox-build-system-reviewers,rstewart
In tests, the settings object doesn't have as many sections. When a section isn't
available, it raises an error.
The Sentry integration can interpret this error as telemetry being disabled.

Differential Revision: https://phabricator.services.mozilla.com/D83717
2020-07-16 19:27:15 +00:00
Ricky Stewart
bfb4566c24 Bug 1652803 - Retry symbol uploading a couple additional times r=bpitts
Differential Revision: https://phabricator.services.mozilla.com/D83802
2020-07-16 15:58:56 +00:00
Dave Townsend
f7a92e55fd Bug 1649958: Extend the life of the NUMBER_OF_PROFILES telemetry probe. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D83710
2020-07-16 19:17:41 +00:00
Chris Fallin
597e30dbde Bug 1633721, part 2 of 2: Reftypes support on aarch64 using Cranelift. r=bbouvier
This patch adds support for Wasm reference types when using the
Cranelift/aarch64 Wasm backend in SpiderMonkey.

The changes on the SpiderMonkey side principally involve (i) updating
the compiler-selection logic to allow Cranelift when reftypes are
enabled, and (ii) conveying the stackmaps from Cranelift to
SpiderMonkey.

This also fixes an assert failure hit in the VIXL-based MacroAssembler
in a debug build. The assert was checking that the source of a
move-to-FP-reg was not the zero register (xzr); a move like `mov v0.d[0],
xzr` is perfectly valid, and should be allowed. Unsure why this assert
had not been hit before, but it seems unrelated to reftype support.

Differential Revision: https://phabricator.services.mozilla.com/D83583
2020-07-16 19:15:08 +00:00
Chris Fallin
c07df47355 Bug 1633721, part 1 of 2: Bump Cranelift to revision 5e0268a542f612fee36d0256ed1f6a0e18dc02b3. r=bbouvier
This patch updates the vendored version of Cranelift, pulling in the
reference-types support recently merged in Cranelift's PR
bytecodealliance/wasmtime#1852. Usage of this update to support reftypes
in SpiderMonkey on aarch64 is added in the subsequent commit.

Differential Revision: https://phabricator.services.mozilla.com/D83582
2020-07-16 19:15:05 +00:00
Olli Pettay
22e60f1257 Bug 1653123, don't crash for now if nsISHEntry.hasUserInteraction is used in the parent process, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D83716
2020-07-16 19:02:51 +00:00
Olli Pettay
e702898d75 Bug 1602115, make it possible to test async history.length handling even when session history lives in the child process, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D79198
2020-07-16 19:02:49 +00:00
Olli Pettay
c142af0f58 Bug 1602115 - Make history.length Fission compatible, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D79197
2020-07-16 19:01:36 +00:00
Julian Descottes
b1a4e202d3 Bug 1651307 - Remove broken debugger node jobs: eslint & jsx-a11y r=loganfsmyth
The eslint and jsx-a11y jobs have been broken for 6 months now.
The eslint version used by the debugger is too old to be compatible with mozilla central's eslintrc.
If we update eslint, then there are other failures (`Environment key "mozilla/xpcshell" is unknown`).

We should be able to trust the mozilla-central eslint job for basic linting.
For jsx-a11y, there is currently no equivalent in mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D83495
2020-07-16 17:54:23 +00:00
Julian Descottes
c648e30896 Bug 1652983 - Add logs in DAMP test helper openToolbox r=daisuke,perftest-reviewers,sparky
This should help investigate timeouts occuring during toolbox open in DAMP

Differential Revision: https://phabricator.services.mozilla.com/D83650
2020-07-16 18:47:50 +00:00
Julian Descottes
19b031f36c Bug 1628473 - Stop relying on documentUnload mutation in browser_toolbox_window_reload_target.js r=rcaliman
Depends on D79676

Differential Revision: https://phabricator.services.mozilla.com/D83296
2020-07-16 16:26:09 +00:00
Julian Descottes
31f3e7257b Bug 1628473 - Update the markup view when a remote frame navigates r=rcaliman
Depends on D79675

Differential Revision: https://phabricator.services.mozilla.com/D79676
2020-07-16 16:22:30 +00:00
Julian Descottes
299f9180e4 Bug 1628473 - Add test for remote frame navigation r=rcaliman,nchevobbe
Depends on D79674

Differential Revision: https://phabricator.services.mozilla.com/D79675
2020-07-16 16:22:02 +00:00
Julian Descottes
f3df9272e0 Bug 1628473 - Move test helpers from markup head.js to inspector head.js r=rcaliman
Depends on D83194

Those test helpers were introduced to easily assert the markup view, when working on the webcomponents support in the inspector.
They use rather high level APIs and are quite close to what would be triggered by real user actions.
Roughly the helper expands nodes from the markupview recursively and checks that the tree matches the expected tree.
This "expected tree" should be provided via a simplistic DSL:
```
root
  child1
    subchild1
    subchild2
  child2
    subchild3!slotted
  child3!ignore-children
```

Differential Revision: https://phabricator.services.mozilla.com/D79674
2020-07-16 16:21:54 +00:00
Julian Descottes
0125dd01b6 Bug 1628473 - Remove watchRootNode trait r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D83194
2020-07-16 16:20:41 +00:00
Farooq AR
fb21c6742f Bug 1636422 - Implement basic test for SSE. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D83476
2020-07-16 18:36:35 +00:00
Punam Dahiya
056ca34cbe Bug 1649292 - Make multistage about:welcome as default UX r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D83691
2020-07-16 18:14:43 +00:00
Eitan Isaacson
47eeb74440 Bug 1652211 - Create and destroy xul tooltips as they appear and go away. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D83408
2020-07-16 17:51:22 +00:00
Dragana Damjanovic
20cbb9badf Bug 1652104 - Add telemtery about HTTP3 usage. r=michal,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83168
2020-07-16 04:03:35 +00:00
Bryce Seager van Dyk
a6fc16aabe Bug 1652598 - Add helpers to log CDM status as string. r=alwu
- Add a helper to log cdm::Status as a string to improve error reporting.
- Fix up format strings in ChromiumCDMParent to use PRIu32 instead of u for logs
  where it's appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D83702
2020-07-15 22:09:14 +00:00
Bryce Seager van Dyk
5f8a7c5b16 Bug 1652598 - Add status code to MediaError when CDM decode fails. r=alwu
Also add a log for when decoding fails. We typically log on any unhappy return
values from the CDM, so it makes sense we should also do so when a decode fails.

Differential Revision: https://phabricator.services.mozilla.com/D83419
2020-07-15 21:20:04 +00:00
Tooru Fujisawa
1e54703c60 Bug 1653212 - Use raw latin1 string only when it is ASCII. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D83815
2020-07-16 17:48:18 +00:00
Sebastian Streich
f38f6f0fb1 Bug 1645204 - Fix WebRequest.jsm r=robwu,necko-reviewers,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D80953
2020-07-16 14:58:03 +00:00
Emilio Cobos Álvarez
01a5c05e05 Bug 1649728 - Use WeakPtr in SharedStyleSheetCache::mLoadingDatas. r=firefox-style-system-reviewers,jwatt
This is safer in case Necko fails to notify us. The only repro we have
is fixed by bug 1651661, but this should hopefully be uncontroversial as
well and prevents crashing in release builds.

Differential Revision: https://phabricator.services.mozilla.com/D83642
2020-07-16 16:31:52 +00:00
Frederik Braun
38b4de3c94 Bug 1653232 implement GetInnerHTML() for DocFragments r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83775
2020-07-16 17:31:10 +00:00