gecko-dev/devtools
Nicolas Chevobbe 0d3a7b32b4 Bug 1568831 - [devtools] Make eyedropper fission compatible. r=ladybenko.
The current implementation of the eyedropper was using drawWindow, which does
not handle remote frames.
To make the tool fission compatible, we re-use the screenshot-content actor which
do support remote frames. We had to do a few modification on it though so the
eyedropper would work the same as it does at the moment:
- add a `disableFlash` property to the screenshot options, so we don't play the
  flash animation for the eyedropper
- retrieve the page current zoom level from the screenshot-content actor so we
  can adjust the size of the resulting image
- split the `dpr` screenshot option into 2 distinct ones:
  - `snapshotScale`, which will be the scale passed to `drawSnapshot`. By default,
    this will be the dpr of the window, so the screenshot is as crisp as it can be.
  - `fileScale`, which will be the scale of the resulting file.
- we control the fileScale that is sent to the server with the `ignoreDprForFileScale`
  on the client. This is needed by the eyedropper so it doesn't draw images that are
  too big when the dpr is > 1.

With all those changes, browser_inspector_highlighter-eyedropper-frames.js is passing
with fission enabled, so we can remove the `fail-if` annotation it had.

Differential Revision: https://phabricator.services.mozilla.com/D103879
2021-02-08 07:02:02 +00:00
..
client Bug 1568831 - [devtools] Make eyedropper fission compatible. r=ladybenko. 2021-02-08 07:02:02 +00:00
docs Bug 1690785 - Update of the contribution doc wrt check-in needed r=jwalker,aryx DONTBUILD 2021-02-04 21:52:38 +00:00
platform Bug 1676365 - Move SpinEventLoopUntil to separate header. r=#xpcom-reviewers 2020-11-23 16:10:41 +00:00
server Bug 1568831 - [devtools] Make eyedropper fission compatible. r=ladybenko. 2021-02-08 07:02:02 +00:00
shared Bug 1690789 - [devtools] Memoize breakpoint-list & networkParent getters in WatcherActor r=ochameau 2021-02-05 12:30:29 +00:00
startup Bug 1682780 - [devtools] Avoid pausing on thread actor's attach request. r=nchevobbe,jdescottes 2021-01-07 15:02:11 +00:00
.eslintrc.js Bug 1652690 - Remove outdated eslint rule for devtools/shared/platform r=nchevobbe,perftest-reviewers,sparky 2020-07-15 14:59:19 +00:00
.eslintrc.mochitests.js Bug 1620537 - Fix eslint issues in devtools .eslintrc*.js files now that ESLint 7 will lint them. r=mossop 2020-07-24 20:39:07 +00:00
.eslintrc.xpcshell.js Bug 1620537 - Fix eslint issues in devtools .eslintrc*.js files now that ESLint 7 will lint them. r=mossop 2020-07-24 20:39:07 +00:00
CODE_OF_CONDUCT.md
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
templates.mozbuild
tsconfig.json