Commit Graph

746383 Commits

Author SHA1 Message Date
alwu
92f99e8af4 Bug 1691578 - part4 : allow to set different error in all platforms, but still report them to corresponding platforms, except in testing. r=bryce
If some attributes are only able to be set in certain platform, that increase the difficulty of wrting a test.

Therefore, we make them being able to set in all platforms, but doing the check in the fianl stage, which is reporting the result, to ensure that those error would still only be displayed on the right platform.

But if we're in testing, then we can test all error types in one platform.

Differential Revision: https://phabricator.services.mozilla.com/D104474
2021-02-25 18:07:05 +00:00
alwu
07ccaaf48c Bug 1691578 - part3 : Set different ffmpeg error in PDMFactory. r=bryce
Two reasons to have this patch,

(1) we should let caller to be responsible to set the error, like what we do for WMF decoder module. `DecoderDoctorDocumentWatcher` should simply relys on the flag set in `DecoderDoctorDiagnostics`.

(2) separating these two different error helps us write a test for different error situation, without relying on the actual state of ffmpeglinker.

Differential Revision: https://phabricator.services.mozilla.com/D104473
2021-02-25 18:07:05 +00:00
alwu
146b358798 Bug 1691578 - part2 : remove unnecessary operation of removing ffmpeg error flag. r=bryce
This operation is actually meaningless, because at the time we call `CreateRddPDMs()`, the PDMFactory is just created. [PDMFactory()->CreatePDMs()->CreateRddPDMs()]

So that is impossible that we've failed to load ffmpeg before, so no need to subtract the `FFmpegFailedToLoad` flag.

Differential Revision: https://phabricator.services.mozilla.com/D104472
2021-02-25 18:07:05 +00:00
alwu
2c53f4dba6 Bug 1691578 - part1 : rename MediaPlatformDecoderNotFound to MediaFFMpegNotFound. r=bryce
`MediaPlatformDecoderNotFound` sounds too general and seems indicating that this error is platform independent, but that is not true. This error is actually for not founding ffmpeg.

Differential Revision: https://phabricator.services.mozilla.com/D104471
2021-02-25 18:07:04 +00:00
Dana Keeler
82d3c9c68c Bug 1690278 - osclientcerts: cache key handles to potentially avoid multiple pin prompts r=mbirghan
When osclientcerts obtains or uses an OS handle on a private key, the
underlying implementation may display some sort of authentication or pin
prompt. In some cases, caching this handle rather than obtaining it multiple
times can prevent multiple prompts. So, this is what this patch does.

Differential Revision: https://phabricator.services.mozilla.com/D106222
2021-02-25 19:07:22 +00:00
Cosmin Sabou
424d49d43e Backed out 8 changesets (bug 1691578) for bc failures on browser_decoderDoctor.js. CLOSED TREE
Backed out changeset c535dd429ada (bug 1691578)
Backed out changeset 518eadda7826 (bug 1691578)
Backed out changeset c181e29b13f2 (bug 1691578)
Backed out changeset 23f6dcc3ceb5 (bug 1691578)
Backed out changeset bfd3e4878545 (bug 1691578)
Backed out changeset 214ab3a2f00b (bug 1691578)
Backed out changeset 71a17ff3322c (bug 1691578)
Backed out changeset 6aa662e8d06e (bug 1691578)
2021-02-25 21:08:07 +02:00
Jeff Muizelaar
a38e77b0db Bug 1693661 - Use mozalloc_handle_oom instead of failing gracefully if we fail to allocate. r=jld
In bug 1691415 we're getting failures to deserialize. It would be
nice to move these closer to the source so that we can better understand
what's going on.

Differential Revision: https://phabricator.services.mozilla.com/D105688
2021-02-25 18:53:25 +00:00
Alex Lopez
ad68ed0ba9 Bug 1682959 - Remove legacy_resolver support from mach. r=mhentges
Now that all the conflicts in python dependencies that made the
new pip resolver fail have been resolved, we no longer need to support
the legacy resolver that was added as a temporary measure.

Depends on D106154

Differential Revision: https://phabricator.services.mozilla.com/D106503
2021-02-25 18:37:00 +00:00
Alex Lopez
56dc4c7787 Bug 1682959 - Update pylint dependencies to ensure compatibility. r=mhentges
Conflicting pylint requirements were causing the new pip dependency resolver
to report an error. This updates the dependencies for pylint (using the hashin package)
so that the conflict is resolved.

Differential Revision: https://phabricator.services.mozilla.com/D106154
2021-02-25 18:36:59 +00:00
alwu
18d27fa47e Bug 1691578 - part8 : allow showing platform-decoder-not-found notification. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D104573
2021-02-25 18:07:07 +00:00
alwu
3b9b787bdf Bug 1691578 - part7 : add test case for audio sink failed start-up. r=bryce,emilio
Differential Revision: https://phabricator.services.mozilla.com/D104571
2021-02-25 18:07:07 +00:00
alwu
5c51ce0bba Bug 1691578 - part6 : add test cases to test reporting decode error. r=bryce,webidl,emilio
Differential Revision: https://phabricator.services.mozilla.com/D104570
2021-02-25 18:07:06 +00:00
alwu
edf054e11a Bug 1691578 - part5 : add test cases to test the ability of reporting error for not supported media type. r=bryce,emilio
Add test cases for `DecoderDoctorDiagnostics::StoreFormatDiagnostics()`, which is used when checking the ability of whether the decoder is supported for certain type.

Differential Revision: https://phabricator.services.mozilla.com/D104475
2021-02-25 18:07:06 +00:00
alwu
3539c635e3 Bug 1691578 - part4 : allow to set different error in all platforms, but still report them to corresponding platforms, except in testing. r=bryce
If some attributes are only able to be set in certain platform, that increase the difficulty of wrting a test.

Therefore, we make them being able to set in all platforms, but doing the check in the fianl stage, which is reporting the result, to ensure that those error would still only be displayed on the right platform.

But if we're in testing, then we can test all error types in one platform.

Differential Revision: https://phabricator.services.mozilla.com/D104474
2021-02-25 18:07:05 +00:00
alwu
e3a9c7e574 Bug 1691578 - part3 : Set different ffmpeg error in PDMFactory. r=bryce
Two reasons to have this patch,

(1) we should let caller to be responsible to set the error, like what we do for WMF decoder module. `DecoderDoctorDocumentWatcher` should simply relys on the flag set in `DecoderDoctorDiagnostics`.

(2) separating these two different error helps us write a test for different error situation, without relying on the actual state of ffmpeglinker.

Differential Revision: https://phabricator.services.mozilla.com/D104473
2021-02-25 18:07:05 +00:00
alwu
3a4f0f96c7 Bug 1691578 - part2 : remove unnecessary operation of removing ffmpeg error flag. r=bryce
This operation is actually meaningless, because at the time we call `CreateRddPDMs()`, the PDMFactory is just created. [PDMFactory()->CreatePDMs()->CreateRddPDMs()]

So that is impossible that we've failed to load ffmpeg before, so no need to subtract the `FFmpegFailedToLoad` flag.

Differential Revision: https://phabricator.services.mozilla.com/D104472
2021-02-25 18:07:05 +00:00
alwu
e85012fb68 Bug 1691578 - part1 : rename MediaPlatformDecoderNotFound to MediaFFMpegNotFound. r=bryce
`MediaPlatformDecoderNotFound` sounds too general and seems indicating that this error is platform independent, but that is not true. This error is actually for not founding ffmpeg.

Differential Revision: https://phabricator.services.mozilla.com/D104471
2021-02-25 18:07:04 +00:00
Emilio Cobos Álvarez
18f0466bc6 Bug 1694864 - Remove prefers-contrast: forced as per CSSWG resolution. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D106485
2021-02-25 18:05:08 +00:00
Julian Descottes
54073a0009 Bug 1694886 - [devtools] Extract test helper getTargetForTab(tab) to shared-head.js r=nchevobbe
Depends on D106037

Differential Revision: https://phabricator.services.mozilla.com/D106405
2021-02-25 18:02:54 +00:00
Julian Descottes
deaaf67f5f Bug 1694140 - [devtools] Rename TargetFactory to TabTargetFactory and update filename r=ochameau
Depends on D106032

Differential Revision: https://phabricator.services.mozilla.com/D106037
2021-02-25 18:02:53 +00:00
Julian Descottes
329bffa98e Bug 1694140 - [devtools] Stop using TargetFactory:forTab in netmonitor to retrieve the parent toolbox r=bomsy,ochameau
Depends on D106002

The goal is to reduce the usage of the getToolbox(target) API.
It feels like exposing toolbox on the connector should be a more straightforward way of achieving the same thing?

Differential Revision: https://phabricator.services.mozilla.com/D106032
2021-02-25 18:02:53 +00:00
Julian Descottes
6ead96bb08 Bug 1694140 - [devtools] Remove unused getTargetForTab helper on gDevTools r=ochameau
Depends on D106001

This is only used internally: https://searchfox.org/mozilla-central/search?path=&q=getTargetForTab
Can be inlined and removed from DevToolsShim

Differential Revision: https://phabricator.services.mozilla.com/D106002
2021-02-25 18:02:53 +00:00
Julian Descottes
6e37958c88 Bug 1694140 - [devtools] Stop using TargetFactory.forTab outside of devtools r=rpl,ochameau
Depends on D106000

Differential Revision: https://phabricator.services.mozilla.com/D106001
2021-02-25 18:02:52 +00:00
Julian Descottes
d9b1d58f33 Bug 1694140 - [devtools] Stop using TargetFactory forTab in devtools browser mochitests r=nchevobbe
Depends on D105999

This patch is mostly a mechanical rewrite of:
```lang=javascript
const target = await TargetFactory.forTab(tab);
const toolbox = await gDevTools.showToolbox(target, "inspector");
```
to
```lang=javascript
const toolbox = await gDevTools.showToolboxForTab(tab, { toolId: "inspector" });
```

The main changes are:
- if the target was actually used in the test, it is now retrieved from toolbox.target
- the arguments for showToolboxForTab are using an option argument, to avoid the occasional showToolbox("inspector", null, null, null, startTime, null, reason);

I suspect that any signature rewrite mistake would have been caught on try.
There a few less mechanical changes:
- devtools/client/framework/test/browser_toolbox_screenshot_tool.js the toolId "console" was omitted because this id doesn't match any tool (author probably meant "webconsole")
- a few tests were: 1/ first creating a target, 2/ looping on tool definitions to get supported tools 3/ opening the toolbox with each supported tool. To support this I extracted a helper called `getSupportedToolIds` which opens a temporary toolbox to list all supported tool ids
- all the tests under storage/ use a single helper to start the test, which can open toolboxes for both tab targets and other targets. This made it more complicated to refactor. We could also drop this part and just refactor each test when we actually modify forTab/showToolbox to only work with descriptors

All in all the goal of this stack is to pave the way to stop handling targets when using forTab/showToolbox, and behind the scenes stop replying on targets to cache open toolboxes. We don't aim to kill all the call sites, just get them to a smaller number so that the next refactors will be easier.

Differential Revision: https://phabricator.services.mozilla.com/D106000
2021-02-25 18:02:52 +00:00
Julian Descottes
d0f4645a76 Bug 1694140 - [devtools] Stop using TargetFactory.forTab in devtools code r=perftest-reviewers,ochameau
Depends on D105998

Differential Revision: https://phabricator.services.mozilla.com/D105999
2021-02-25 18:02:51 +00:00
Julian Descottes
953b5c230b Bug 1694140 - [devtools] Add getToolboxForTab and closeToolboxForTab helpers on gDevTools r=ochameau
Depends on D105743

Differential Revision: https://phabricator.services.mozilla.com/D105998
2021-02-25 18:02:51 +00:00
Julian Descottes
6af0cb3f81 Bug 1688688 - Use showToolboxTab to open DevTools in wpt marionetteexecutor r=jgraham
Depends on D105740

WPT runner can target several older versions of Firefox, so only use the new showToolboxForTab when the API is available on DevToolsShim

Differential Revision: https://phabricator.services.mozilla.com/D105743
2021-02-25 18:02:50 +00:00
Julian Descottes
12c3715f97 Bug 1688688 - [devtools] Add a simple helper to start devtools for wptrunner r=ladybenko
The webplatform test runner recently added an option to open devtools during their tests.
The current implementation relies on TargetFactory::forTab and gDevTools::showToolbox.
Those methods will most likely change as we move away from targets and start using descriptors.

See previous WPT PR at https://github.com/web-platform-tests/wpt/pull/27309

Differential Revision: https://phabricator.services.mozilla.com/D105740
2021-02-25 18:02:50 +00:00
Andrew Osmond
3f19ab7fee Bug 1694761 - Enable crashtests for SW-WR. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D106427
2021-02-25 17:50:37 +00:00
Michelle Goossens
32a54b2882 Bug 1692672 - Re-label "Paste & Go" to "Paste and Go" r=emalysz,flod
Differential Revision: https://phabricator.services.mozilla.com/D106499
2021-02-25 17:28:33 +00:00
Joel Maher
3a8285f5df Bug 1694991 - adjust osx 1015 worker type. r=releng-reviewers,aki
adjust osx 1015 worker type name

Differential Revision: https://phabricator.services.mozilla.com/D106505
2021-02-25 16:49:33 +00:00
Jeff Muizelaar
27d0c297fd Bug 1694956 - qcms: Make read_u32/u16/u8 safe. r=aosmond
This removes the last bit of unsafety from iccread.rs.

It also removes the now unused 'be' types and conversion
functions.

Differential Revision: https://phabricator.services.mozilla.com/D106469
2021-02-25 16:49:06 +00:00
Joel Maher
34e12fcabb Bug 1692096 - reduce jittest flags on android/aarch64 || android/debug. r=releng-reviewers,jandem,sfink,aki
reduce jittest flags on android/aarch64 || android/debug

Differential Revision: https://phabricator.services.mozilla.com/D106329
2021-02-25 16:28:03 +00:00
Nicolas Chevobbe
86d30fc573 Bug 1692970 - [devtools] Remove code handling fixed element in screenshot content actor. r=ladybenko,devtools-backward-compat-reviewers.
With Bug 1688813 drawSnapshot will handle fixed element, so we don't have to do
it from DevTools code.

We can remove this._lastScrollPosition in the screenshotContentActor, which means
we can also get rid of captureDone, which was only used to set the original scroll
position back.

Differential Revision: https://phabricator.services.mozilla.com/D106065
2021-02-25 16:18:52 +00:00
Andrew Osmond
c2b4fdeaa1 Bug 1694480 - Notify parent process of low virtual memory in GPU process. r=jrmuizel
On 32-bit Windows, we see crashes related to running out of virtual
memory address space in the GPU process. Prior to this patch, we did not
report any memory status information from the GPU process to the parent,
only from the parent to the GPU process. Now if we go below the
threshold we request memory to be cleared in the parent/content
processes. This should trickle down to the GPU process by freeing shared
memory resources such as images, allowing us to unmap them out of the
GPU process sooner.

We will see similar problems on any 32-bit platform. The only other
target of note with sufficient numbers is 32-bit Android. There is no
GPU process on Android, however we only monitor the virtual memory
address space on Windows.

Differential Revision: https://phabricator.services.mozilla.com/D106286
2021-02-25 15:38:45 +00:00
Emilio Cobos Álvarez
c24f9921f2 Bug 1694413 - Account for panel animations in the test.
MANUAL PUSH: Avoids orange on OSX on a CLOSED TREE.
2021-02-25 16:57:42 +01:00
Jeff Muizelaar
22ceddbe92 Bug 1694955 - qcms: make write_u32/u16 safe. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D106466
2021-02-25 15:30:08 +00:00
Sebastian Hengst
8c58059882 Bug 1687071 - add back accidentally remove test result expectation for test_2_conformance__textures__misc__texture-upload-size.html. r=jmaher DONTBUILD
Expectation got removed in bug 1693378.

Differential Revision: https://phabricator.services.mozilla.com/D106088
2021-02-25 15:17:45 +00:00
Bob Owen
bcf478770b Bug 1692894 p2: Don't create devices for decoding when all decoders are remote. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D105631
2021-02-25 15:10:58 +00:00
Bob Owen
be799e35a1 Bug 1692894 p1: Don't create devices for canvas when remote canvas is in use. r=jrmuizel
This also adds related DLLs to be delay loaded to xul's moz.build. This means
that if we don't create the devices they are not loaded at all.

Differential Revision: https://phabricator.services.mozilla.com/D105630
2021-02-25 15:10:57 +00:00
Emilio Cobos Álvarez
249b7dc00a Bug 1691397 - Intrinsic sizes that depend on percentage-sized abspos ancestors should account for containing-block padding correctly. r=layout-reviewers,mats
Abspos boxes resolve against the pading box, and we were failing to
increase the percentage basis in that case if box-sizing was
content-box.

This is partially the cause of bug 1691374.

Differential Revision: https://phabricator.services.mozilla.com/D104389
2021-02-25 15:05:50 +00:00
Ted Campbell
c4c2d069d8 Bug 1694044 - Remove implementation of js::LookupPropertyPure. r=jandem
Combine implementation of:
  - NativeLookupPropertyInline
  - LookupPropertyPure

Instead of checking for `is<NativeObject>`, check for a lookupProperty hook
which is more indicative of what we are worried about.

Differential Revision: https://phabricator.services.mozilla.com/D106240
2021-02-25 14:58:58 +00:00
Ted Campbell
dd39a2a8f0 Bug 1694044 - Merge similar implementations into NativeLookupOwnPropertyInline. r=jandem
Merge the following implementations:
  - NativeLookupOwnPropertyInline
  - NativeLookupOwnPropertyNoResolve
  - LookupOwnPropertyPure

Use templates to differential different handling of resolve hooks. This tries
to maintain most of the existing nuance to avoid changing too much at once.

We no longer support anything with a lookupProperty hook. Previously the JITs
would tolerate them, but in practice do nothing useful. One case was for
environment objects which triggered this during SetProp but would later
abort. The other case was TypedObjects which are no longer meaningully
supported by the JITs and are treated no differently than unknown.

Differential Revision: https://phabricator.services.mozilla.com/D106239
2021-02-25 14:58:57 +00:00
Ted Campbell
187a93fbea Bug 1694044 - Rename LookupPropertyInline / LookupOwnPropertyInline. r=jandem
These only support NativeObjects, so rename for clarity.

Differential Revision: https://phabricator.services.mozilla.com/D106238
2021-02-25 14:58:57 +00:00
Ted Campbell
5b61d5d3d8 Bug 1694044 - NativeLookupOwnPropertyNoResolve does not need to root. r=jandem
Depends on D105885

Differential Revision: https://phabricator.services.mozilla.com/D106235
2021-02-25 14:58:56 +00:00
Dale Harvey
cfe3d13030 Bug 1694694 - Ensure QuickSuggest searches are case insensitive r=adw
Differential Revision: https://phabricator.services.mozilla.com/D106326
2021-02-25 14:57:35 +00:00
Tim Nguyen
f1901aae2b Bug 1694936 - Fix appearance of some <description> tags in identity panel. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D106473
2021-02-25 14:40:15 +00:00
Emilio Cobos Álvarez
8743599d19 Bug 1676078 - Try to fix and re-enable test_datepicker_keyboard_open. r=Gijs
Now that we have a saner setup for popup hiding / showing.

Differential Revision: https://phabricator.services.mozilla.com/D106474
2021-02-25 14:30:34 +00:00
Emilio Cobos Álvarez
fe58c377b3 Bug 1694413 - Use hidePopup rather than the hidden attribute to hide datetime picker. r=Gijs
On macos re-showing it without using `hidden` can cause, apparently,
extra popuphidden events. Let's do the right thing and close the popup
properly using hidePopup().

This code wasn't being hit before bug 1339380 because we relied on the
parent side to hide it, which did correctly fire the events.

Differential Revision: https://phabricator.services.mozilla.com/D106431
2021-02-25 14:13:14 +00:00
Jeff Muizelaar
13e6a365b0 Bug 1694680 - Fix qcms_data_create_rgb_with_gamma.
This fixes a number of problems:

1. The check around get_rgb_colorants was inverted. This caused us to
   only continue if the colorants were wrong.

2. get_rgb_colorants can just return the Matrix instead of taking
   a reference to it.

3. No tests

Differential Revision: https://phabricator.services.mozilla.com/D106463
2021-02-25 13:57:05 +00:00