Commit Graph

746312 Commits

Author SHA1 Message Date
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
Dale Harvey
10848e756a Bug 1693890 - Defer loading QuickSuggest data until idle r=adw
Differential Revision: https://phabricator.services.mozilla.com/D106318
2021-02-25 13:46:30 +00:00
Brindusan Cristian
39abcde940 Backed out 10 changesets (bug 1694140, bug 1694886, bug 1688688) for devtools failures on browser_CORS-console-warnings.js. CLOSED TREE
Backed out changeset 1b7367a27d9a (bug 1694886)
Backed out changeset d5a70a3143ad (bug 1694140)
Backed out changeset 74adaced5c0a (bug 1694140)
Backed out changeset 0b8f857e3f90 (bug 1694140)
Backed out changeset 45a8dc952aba (bug 1694140)
Backed out changeset 299f17e9cb6f (bug 1694140)
Backed out changeset 6beb9dd48ef3 (bug 1694140)
Backed out changeset 5f6688e8fe4c (bug 1694140)
Backed out changeset ae1fa0484c91 (bug 1688688)
Backed out changeset 8a0f5c24ed9a (bug 1688688)
2021-02-25 16:07:39 +02:00
Nicolas Chevobbe
ccd6e112a5 Bug 1694873 - [devtools] Fix browser_webconsole_network_messages_status_code.js intermittent. .
Differential Revision: https://phabricator.services.mozilla.com/D106429
2021-02-25 13:27:45 +00:00
Jeff Muizelaar
4ac01c88b7 Bug 1694670. Fix the OOB check in write_u32/u16. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D106362
2021-02-25 13:18:47 +00:00
Kershaw Chang
c7dc3fd5c1 Bug 1688092 - Make sure mTrrA and mTrrAAAA are set properly before dispatching them r=necko-reviewers,valentin
See [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1694628#c1 | bug 1694628 ]] for details.

Differential Revision: https://phabricator.services.mozilla.com/D106415
2021-02-25 13:07:04 +00:00
Kershaw Chang
ef06b68b6c Bug 1688092 - Update ODoHConfigs when the TTL expires r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106075
2021-02-25 13:07:04 +00:00
Kershaw Chang
61d4a64bb0 Bug 1688864 - P2: Add more tests for ODoH r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106074
2021-02-25 13:07:04 +00:00
Kershaw Chang
82433f5beb Bug 1688864 - P1: Reduce duplicate test code for ODoH r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D106073
2021-02-25 13:07:03 +00:00
Julian Descottes
2349ac9ca8 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 12:58:16 +00:00
Julian Descottes
13d48a2ee6 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 12:58:16 +00:00
Julian Descottes
86d04516e5 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 12:58:15 +00:00
Julian Descottes
2c32ed1ce4 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 12:58:15 +00:00
Julian Descottes
1ac3484028 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 12:58:14 +00:00
Julian Descottes
982c525960 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 12:58:14 +00:00
Julian Descottes
5b183d1d77 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 12:58:14 +00:00
Julian Descottes
a49f853e14 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 12:58:13 +00:00
Julian Descottes
b0dd175880 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 12:58:13 +00:00
Julian Descottes
050bfe4fcb 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 12:58:12 +00:00
Valentin Gosu
40eb1379d9 Bug 1694457 - Add pref for reporting confirmation event telemetry r=nhnt11,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106264
2021-02-25 12:52:28 +00:00
Mihai Alexandru Michis
d1dca2c0a5 Backed out 2 changesets (bug 1684139) for causing xpcshell failures in test_subprocess.js
CLOSED TREE

Backed out changeset 52cfd9509136 (bug 1684139)
Backed out changeset 23e0fa285d90 (bug 1684139)
2021-02-25 14:47:15 +02:00
Jared Wein
8f326f38b5 Bug 1692330 - Hide the 'Add a keyword for this search' when inside of a login form. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106314
2021-02-25 12:15:23 +00:00