Commit Graph

499 Commits

Author SHA1 Message Date
Julian Descottes
c07be8b65b Bug 1737387 - [devtools] Use shared helpers to open/close RDM in tests r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D140959
2022-03-15 13:06:25 +00:00
Julian Descottes
b138ba1676 Bug 1754066 - Prevent chrome and resource protocols for sourcemap helper r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D138773
2022-02-21 16:34:06 +00:00
Julian Descottes
212faeb0c3 Bug 1741369 - [devtools] Update paths to loader files in devtools/ r=ochameau
Depends on D131216

Differential Revision: https://phabricator.services.mozilla.com/D131217
2021-11-17 12:43:26 +00:00
Nicolas Chevobbe
725dd3531e Bug 1738058 - [devtools] Fix browser_styleeditor_syncIntoRuleView.js intermittent. r=ochameau.
This patch sets the focus on the editor before simulating typing.

Differential Revision: https://phabricator.services.mozilla.com/D130243
2021-11-04 06:14:59 +00:00
Nicolas Chevobbe
b0d25cacc3 Bug 1738124 - [devtools] Fix browser_webconsole_location_styleeditor_link.js intermittent. r=bomsy.
This patch makes it so we don't call `setCursor` when the styleeditor initial
stylesheet is opened.

Differential Revision: https://phabricator.services.mozilla.com/D130194
2021-11-03 16:01:58 +00:00
Nicolas Chevobbe
662a550b33 Bug 1726776 - [devtools] Fix StyleSheet editor selector highlighter when Fission is enabled. r=bomsy.
The highlighters weren't working in remote frame as the StyleSheetEditor
was always trying to use the top-level walker and highlighter fronts.
To fix that, we retrieve the appropriate fronts given the stylesheet
resource.
The existing test is augmented, which meant making the highlighterTestActor
slightly better.

Differential Revision: https://phabricator.services.mozilla.com/D128354
2021-10-27 12:05:30 +00:00
Evgenia Kotovich
228e38a58c Bug 1576768 [eslint] Turn on JavaScript linting and formatting rules for .sjs files. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D128483
2021-10-25 11:12:41 +00:00
criss
152f71d4d3 Backed out changeset b60f98f26664 (bug 1576768) for causing mochitest failures. CLOSED TREE 2021-10-22 15:55:50 +03:00
Evgenia Kotovich
e29e29aa5a Bug 1576768 [eslint] Turn on JavaScript linting and formatting rules for .sjs files. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D128483
2021-10-22 11:39:46 +00:00
Julian Descottes
d99fe3e573 Bug 1735143 - Ensure various tests within devtools are https-first compliant r=bomsy
The following test suites are green in https-first with this patch:
    devtools/client/memory/test/browser/browser.ini
    devtools/client/responsive/test/browser/browser.ini
    devtools/client/shared/test/browser.ini
    devtools/client/styleeditor/test/browser.ini
    devtools/shared/commands/resource/tests/browser.ini

Differential Revision: https://phabricator.services.mozilla.com/D128082
2021-10-13 09:41:21 +00:00
Christoph Kerschbaumer
6c4aba950d Bug 1733108: Update tests within devtools/client/styleeditor to work with https-first enabled r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126917
2021-09-29 15:27:50 +00:00
Nicolas Chevobbe
6379ab2434 Bug 1732679 - [devtools] Remove usage of Promise.jsm in StyleEditor.jsm. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D126667
2021-09-28 10:13:59 +00:00
Noemi Erli
fb4024c0e7 Bug 1731347 - Fix lint failures r=fix CLOSED TREE 2021-09-17 23:33:43 +03:00
Emilio Cobos Alvarez
8e5c9be3a5 Bug 1731347 - Enable backdrop-filter in a test to keep it happy on late-beta/release.
Differential Revision: https://phabricator.services.mozilla.com/D126008
2021-09-17 18:33:02 +00:00
Emilio Cobos Álvarez
0fc915272e Bug 1729894 - Now that WR is everyhwere, enable backdrop-filter on early-beta / nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D125054
2021-09-15 11:33:29 +00:00
Julian Descottes
df5701fd64 Bug 1688067 - [devtools] Repurpose refreshTab as reloadBrowser and use in browser_toolbox_error_count_reset_on_navigation.js r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D124168
2021-09-01 19:24:24 +00:00
Alexandre Poirot
3b693fede5 Bug 1727323 - [devtools] Enable bfcache in parent in tests that have been fixed thanks to server targets. r=bomsy
All these tests most likely have been fixed with the enabling of server targets.
Because bfcache in parent was introducing more cross process navigations,
being initiated from the server, having the support of server targets was uterly
important to support bfcacheInParent.

Differential Revision: https://phabricator.services.mozilla.com/D123448
2021-08-25 17:16:27 +00:00
Alexandre Poirot
382206d3e0 Bug 1722501 - [devtools] Migrate styleeditor to will-navigate. r=nchevobbe
We used to handle navigation with a subtle and complex combination of target-available + dom-loading.
Just because we were missing will-navigate event in some cases.
But will-navigate is now reliable and is fired in all types of navigations.

Differential Revision: https://phabricator.services.mozilla.com/D120961
2021-07-28 11:48:47 +00:00
Alexandre Poirot
beeb3d2ab5 Bug 1721372 - [devtools] Fix styleeditor tests helper when reloading a page with a target switch. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D120341
2021-07-22 09:16:18 +00:00
Nicolas Chevobbe
60944db71f Bug 1716703 - [devtools] Rename TestActor to HighlighterTestActor. r=jdescottes.
Renaming the actor makes it more explicit that it should
only be used for highlighter-related assertions.
We take this opportunity to rename all the 'testActor' instances
in tests to 'highlighterTestFront' which better represents
what the object is.
While doing this work, I was able to cleanup a few function definition
where the testActor parameter wasn't needed.

Differential Revision: https://phabricator.services.mozilla.com/D117978
2021-06-17 10:03:03 +00:00
Olli Pettay
f0114836f9 Bug 1714426 - Disable bfcache in parent for the currently failing tests, r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D116768
2021-06-04 15:07:56 +00:00
Alexandre Poirot
ecf535689e Bug 1701790 - Migrate ResourceWatcher to become ResourceCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113930
2021-05-04 09:29:47 +00:00
Brindusan Cristian
185ab5e4f4 Backed out 5 changesets (bug 1701790) for bc failures in browser_ext_devtools_network_targetSwitch.js. CLOSED TREE
Backed out changeset 3fc4edd663d9 (bug 1701790)
Backed out changeset 2d3ea7c0d695 (bug 1701790)
Backed out changeset 6cb7502fc1a2 (bug 1701790)
Backed out changeset 8f4205a1a369 (bug 1701790)
Backed out changeset bd3c9b1482c7 (bug 1701790)
2021-05-03 22:21:59 +03:00
Alexandre Poirot
4aee693953 Bug 1701790 - Mass replace resourceWatcher with resourceCommand. r=nchevobbe
$ sed -i 's/resourceWatcher/resourceCommand/g' $(egrep -rl 'resourceWatcher' devtools/)

Differential Revision: https://phabricator.services.mozilla.com/D113933
2021-05-03 18:07:31 +00:00
Alexandre Poirot
eecbcc37c6 Bug 1701790 - Mass replace ResourceWatcher by ResourceCommand r=nchevobbe
$ sed -i 's/ResourceWatcher/ResourceCommand/g' $(egrep -rl 'ResourceWatcher' devtools/)

Differential Revision: https://phabricator.services.mozilla.com/D113932
2021-05-03 18:07:31 +00:00
Nicolas Chevobbe
0f8b07b880 Bug 1708626 - [devtools] Remove usage of Promise.jsm in tests. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D113912
2021-05-03 11:35:18 +00:00
Valentin Gosu
5afdc02366 Bug 1694662 - Remove Appcachestorage & oldwrappers r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D106455
2021-04-30 07:20:24 +00:00
Markus Stange
5187a2ca76 Bug 1707631 - Use activateIitem in browser_styleeditor_copyurl.js, so that the menu is closed at the end of the test. r=mac-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D113377
2021-04-26 17:29:46 +00:00
Alexandre Poirot
c3fb794451 Bug 1696374 - [devtools] Renamed TargetList occurences to TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110386
2021-04-12 07:59:52 +00:00
Julian Descottes
4f9e9360fc Bug 1702061 - [devtools] Remove isPanelReady flag and devtools-panel-ready from DevTools panel instances r=nchevobbe
Depends on D110368
Both the flag and the event are not used.
The only thing which matters from the framework perspective is to wait for panel.open to resolve.

Differential Revision: https://phabricator.services.mozilla.com/D110369
2021-03-31 12:41:44 +00:00
Julian Descottes
116dd052e8 Bug 1702061 - [devtools] rename panel isReady to isPanelReady r=nchevobbe
Initial cleanup to make the future removal easier to review

Differential Revision: https://phabricator.services.mozilla.com/D110367
2021-03-31 12:41:43 +00:00
Alexandre Poirot
23ca20118f Bug 1696372 - [devtools] Migrate styleditor panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110211
2021-03-30 21:29:39 +00:00
Nicolas Chevobbe
a4cffb88df Bug 1685268 - [devtools] Don't clear StyleEditor UI on redundant dom-loading event. r=jdescottes,ochameau.
With the previous patches in this queue, it looks like the
timing is stlightly modified, and on initial load we can
reveive stylesheet resources _before_ the intial dom-loading
event.
Since we're using dom-loading to clear the UI, we might destroy
stylesheets that we shouldn't.
We fix that in 2 folds:
- clear the UI in onTargetAvailable, which we do receive before any resources
- add a flag to the `dom-loading` resource when we're already going to be triggering
  onTargetAvailable for a given interaction (toolbox opening, cross-process
  navigation or any navigation when target will follow the global lifecycle).

Differential Revision: https://phabricator.services.mozilla.com/D109471
2021-03-26 09:46:33 +00:00
Butkovits Atila
1d5f31821f Backed out 5 changesets (bug 1685268) for causing failures on test_styles-applied.html. CLOSED TREE
Backed out changeset 331d6b2d6f1b (bug 1685268)
Backed out changeset 0068e7f023ce (bug 1685268)
Backed out changeset 830e139a73a0 (bug 1685268)
Backed out changeset 01de742151af (bug 1685268)
Backed out changeset 7a127a2cb052 (bug 1685268)
2021-03-26 10:03:26 +02:00
Nicolas Chevobbe
08ead4ae8a Bug 1685268 - [devtools] Don't clear StyleEditor UI on redundant dom-loading event. r=jdescottes,ochameau.
With the previous patches in this queue, it looks like the
timing is stlightly modified, and on initial load we can
reveive stylesheet resources _before_ the intial dom-loading
event.
Since we're using dom-loading to clear the UI, we might destroy
stylesheets that we shouldn't.
We fix that in 2 folds:
- clear the UI in onTargetAvailable, which we do receive before any resources
- add a flag to the `dom-loading` resource when we're already going to be triggering
  onTargetAvailable for a given interaction (toolbox opening, cross-process
  navigation or any navigation when target will follow the global lifecycle).

Differential Revision: https://phabricator.services.mozilla.com/D109471
2021-03-26 06:56:11 +00:00
Alexandre Poirot
ded026f627 Bug 1700106 - [devtools] Remove now-useless eslint files related to mochitests. r=jdescottes,Standard8
I kept a few having some overrides. But they may be irrelevant.
And I kept some eslint files for all folder that aren't matching the pattern matching "**/test*/**/browser*/".
Ideally we would rename these folder to match.

Last but not least, I identified one case where we were using mochitest file for xpcshell tests!

Differential Revision: https://phabricator.services.mozilla.com/D109481
2021-03-23 15:51:18 +00:00
Alexandre Poirot
ac04c532a5 Bug 1691681 - [devtools] Introduce "commands" in order to ease calling global commands throught the Watcher. r=nchevobbe,bomsy,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D97575
2021-03-03 17:02:42 +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
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
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
Alexandre Poirot
17df6d9066 Bug 1692874 - [devtools] Read isLocalTab from descriptor instead of target front. r=rpl,jdescottes
There is still some usages in isTargetSupported,
but that would requires refactoring this method into isDescriptorSupported
and be async as some isTargetSupported only works against target as it checks for traits on it.

Differential Revision: https://phabricator.services.mozilla.com/D105201
2021-02-18 18:36:48 +00:00
Tim Nguyen
1cc2986424 Bug 1691314 - Use DOM hidden property instead of attribute methods in devtools/client. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D104339
2021-02-09 17:32:07 +00:00
Butkovits Atila
a9371fd893 Backed out changeset b2d82e87b557 (bug 1691314) for causing failures on browser_styleeditor_copyurl.js. CLOSED TREE 2021-02-09 19:02:15 +02:00
Tim Nguyen
44e8c4d637 Bug 1691314 - Use DOM hidden property instead of attribute methods in devtools/client. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D104339
2021-02-09 15:36:12 +00:00
Tim Nguyen
d807516fc0 Bug 1273941 - Followup: remove leftover comment in browser_styleeditor_sourcemap_watching.js. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D101510
2021-01-12 22:59:49 +00:00
Kartik Gautam
7ae6aea145 Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D100484
2021-01-07 08:53:08 +00:00
Cosmin Sabou
2978aa00a3 Backed out changeset dbed1cdf588f (bug 1684173) for mochitest plain and devtools failures. a=backout DONTBUILD 2020-12-28 00:43:51 +02:00
Kartik Gautam
775cdec032 Bug 1684173 - Add newline character at end of files when missing r=sylvestre
Depends on D100443

Differential Revision: https://phabricator.services.mozilla.com/D100484
2020-12-27 11:43:41 +00:00
Nicolas Chevobbe
ac3a027268 Bug 1679043 - [devtools] Fix race condition in StyleEditor when editing style sheet. r=daisuke,ochameau,devtools-backward-compat-reviewers,bomsy.
When the user edits a stylesheet in the StyleEditor, an `_isUpdating` flag is toggled,
and a request is sent to the server to actually apply those changes to the stylesheet.
It then causes a style-applied event to be emitted (or the stylesheet resource
to be updated, if watcher support is enabled for stylesheet).
In the end, this triggers the onStyleApplied function in the StyleEditor, where
we check if the `_isUpdating` flag is true (to know if the event was caused
through editing in style editor), and if not, replace the stylesheet content.

Unfortunately there's a race condition when the user is typing (and sending
multiple requests to the server), as the state of the _isUpdating flag could
be wrong if a new request is sent before the first one is handled.
This is probably highlighted with the throttling we're doing in the Resource API.

To fix this issue, we add a new `cause` parameter to the StyleSheets.update method,
which we set to `styleeditor` when calling update within the StyleEditor.
This `cause` parameter is then sent back by the server to the client (via the
style-applied event, or the resource update if we have Watcher support for stylesheets).
This `cause` can be checked by the StyleEditor client, and replace the check
on `_isUpdating`.

However, we need to keep the `_isUpdating` property to handle backward compatibility.

Differential Revision: https://phabricator.services.mozilla.com/D99862
2020-12-18 06:07:32 +00:00
Kartik Gautam
f7ffcd09fb Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-15 10:34:54 +00:00
Dorel Luca
7320ae982a Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
Kartik Gautam
caf549c200 Bug 1679758 - Remove trailing empty lines r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-13 13:28:30 +00:00
Nicolas Chevobbe
f04e61747b Bug 1680218 - [devtools] Remove isFileNameSupported trait in StyleSheetActor. r=daisuke.
The trait was added in 81, so we can safely remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98493
2020-12-09 13:17:32 +00:00
Nicolas Chevobbe
aa45f21d3f Bug 1680218 - [devtools] Remove supportResourceRequests trait in StyleSheetActor. r=daisuke.
The trait was added in 81, so we can safely remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98491
2020-12-09 13:17:24 +00:00
Csoregi Natalia
0c82325a1d Backed out 11 changesets (bug 1680218) for causing devtools failures e.g. /browser_rules_add-rule-and-property.js. CLOSED TREE
Backed out changeset a17c7da1221c (bug 1680218)
Backed out changeset 2cbd9d935611 (bug 1680218)
Backed out changeset 58034e6bc337 (bug 1680218)
Backed out changeset 9e668aa17d1c (bug 1680218)
Backed out changeset 082988607e17 (bug 1680218)
Backed out changeset 63d5d5fb0feb (bug 1680218)
Backed out changeset d09c87a11d72 (bug 1680218)
Backed out changeset 37adf02276eb (bug 1680218)
Backed out changeset 5103a959e33d (bug 1680218)
Backed out changeset 34838b56270b (bug 1680218)
Backed out changeset 936c49ae59a4 (bug 1680218)
2020-12-09 10:01:41 +02:00
Nicolas Chevobbe
bb4db98163 Bug 1680218 - [devtools] Remove isFileNameSupported trait in StyleSheetActor. r=daisuke.
The trait was added in 81, so we can safely remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98493
2020-12-09 06:25:02 +00:00
Nicolas Chevobbe
0093051061 Bug 1680218 - [devtools] Remove supportResourceRequests trait in StyleSheetActor. r=daisuke.
The trait was added in 81, so we can safely remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98491
2020-12-09 06:24:59 +00:00
Nicolas Chevobbe
32aaf870e6 Bug 1677942 - [devtools] Use new syntax for backward compatibility comments. r=jdescottes,devtools-backward-compat-reviewers.
This turns all existing backward compatibility comments (or
comments mentioning a specific Firefox version), into the new
syntax we agreed upon in Bug 1673535.

Differential Revision: https://phabricator.services.mozilla.com/D97395
2020-12-01 10:27:47 +00:00
Daisuke Akatsuka
473676fda0 Bug 1664941: Connect style actor and stylesheet watcher. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90651
2020-10-29 06:26:20 +00:00
Ricky Stewart
02a7b4ebdf Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara
da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart
c0cea3b0fa Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca
1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart
50762dacab Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Alexandre Poirot
fad9e1690b Bug 1663649 - [devtools] Enable target switching by default. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D91020
2020-09-23 17:50:20 +00:00
Daisuke Akatsuka
aa9f77e93e Bug 1644193: Make walker.getStyleSheetOwnerNode() to reflect resource watcher. r=ochameau
Depends on D89282

Differential Revision: https://phabricator.services.mozilla.com/D89283
2020-09-14 23:37:39 +00:00
Daisuke Akatsuka
3908e7a6d9 Bug 1644193: Implement basic server-side stylesheets watcher. r=ochameau
Depends on D88531

Differential Revision: https://phabricator.services.mozilla.com/D88540
2020-09-14 21:29:47 +00:00
Daisuke Akatsuka
1b9df15f05 Bug 1644193: Make media rules to be resource based. r=ochameau
Depends on D88759

Differential Revision: https://phabricator.services.mozilla.com/D89106
2020-09-09 03:57:49 +00:00
Alexandre Poirot
8dd8e4b254 Bug 1660268 - Pass list of resources instead of unique resource from ResourceWatcher. r=nchevobbe
Here, I've tried to be especially careful about replacing `return` by `continue` in the added for..loops.

Differential Revision: https://phabricator.services.mozilla.com/D87768
2020-09-07 21:13:02 +00:00
Daisuke Akatsuka
5ee0f8ed93 Bug 1661625: Get stylesheets traits if needed. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D89339
2020-09-07 21:05:41 +00:00
Csoregi Natalia
3034124827 Backed out 3 changesets (bug 1660268) for failures on browser_ext_devtools_network_targetSwitch.js. CLOSED TREE
Backed out changeset 749fda4e5eb1 (bug 1660268)
Backed out changeset 9d4c305f6b88 (bug 1660268)
Backed out changeset 7ec118209790 (bug 1660268)
2020-09-07 21:24:26 +03:00
Alexandre Poirot
ecf3f1c8bc Bug 1660268 - Pass list of resources instead of unique resource from ResourceWatcher. r=nchevobbe
Here, I've tried to be especially careful about replacing `return` by `continue` in the added for..loops.

Differential Revision: https://phabricator.services.mozilla.com/D87768
2020-09-07 13:35:31 +00:00
Daisuke Akatsuka
a16d25d9f6 Bug 1659589: Remove error event listener that set to stylesheet actor. r=ochameau
Depends on D87047

Differential Revision: https://phabricator.services.mozilla.com/D88531
2020-09-01 01:44:28 +00:00
Daisuke Akatsuka
b9e65b07d6 Bug 1659589: Implement update method in stylesheets actor. r=ochameau,devtools-backward-compat-reviewers
Depends on D87046

Differential Revision: https://phabricator.services.mozilla.com/D87047
2020-08-28 06:27:53 +00:00
Daisuke Akatsuka
e9b12ccb1d Bug 1659589: Implement getText in stylesheets actor. r=ochameau,devtools-backward-compat-reviewers
Depends on D87044

Differential Revision: https://phabricator.services.mozilla.com/D87045
2020-08-28 06:07:33 +00:00
Daisuke Akatsuka
f8c36ace27 Bug 1659589: Implement toggleDisabled in stylesheets actor. r=ochameau,devtools-backward-compat-reviewers
Depends on D87043

Differential Revision: https://phabricator.services.mozilla.com/D87044
2020-08-20 08:27:47 +00:00
Daisuke Akatsuka
cb8195519b Bug 1659589: Get media-rules-changed event via resource watcher. r=ochameau
Depends on D87042

Differential Revision: https://phabricator.services.mozilla.com/D87043
2020-08-27 06:42:09 +00:00
Daisuke Akatsuka
a936229ca0 Bug 1659589: Get property-change event via resource watcher. r=ochameau
Depends on D87041

Differential Revision: https://phabricator.services.mozilla.com/D87042
2020-08-26 08:37:18 +00:00
Daisuke Akatsuka
b74df1cade Bug 1659589: Get style-applied event via resource watcher. r=ochameau,bomsy
Depends on D87040

Differential Revision: https://phabricator.services.mozilla.com/D87041
2020-08-27 22:31:52 +00:00
Daisuke Akatsuka
0adc3db50a Bug 1659589: Handle importing stylesheet from file using resource watcher mechanism to keep consistency. r=ochameau,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D87040
2020-08-27 22:31:52 +00:00
Brad Werth
627581e215 Bug 1621655: Make browser_styleeditor_media_sidebar_links.js test await RDM content reflow. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D85793
2020-08-04 15:08:19 +00:00
Daisuke Akatsuka
68aa4aa0fa Bug 1478688: Revert browser_styleeditor_fetch-from-netmonitor test. r=ochameau
Depends on D85370

Differential Revision: https://phabricator.services.mozilla.com/D85371
2020-07-31 01:33:44 +00:00
Sebastian Hengst
88a75bda99 Bug 1576459 - Set browser_styleeditor_bug_740541_iframes.js as passing with fission. r=gl DONTBUILD
Permanent passes got tracked in bug 1652659.

Differential Revision: https://phabricator.services.mozilla.com/D83622
2020-07-15 14:18:57 +00:00
Frederik Braun
a7153982e8 Bug 1366973: Rename security flags to not contain DATA anymore r=geckoview-reviewers,ckerschb,snorp
Differential Revision: https://phabricator.services.mozilla.com/D83490
2020-07-15 11:20:45 +00:00
Daisuke Akatsuka
6e9455cf79 Bug 1478688: Remove test codes that does not use anymore. r=Honza
Depends on D83288

Differential Revision: https://phabricator.services.mozilla.com/D83289
2020-07-13 10:38:55 +00:00
Daisuke Akatsuka
90dd432408 Bug 1478688: Avoid getting cached content from console actor. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D83287
2020-07-13 10:05:40 +00:00
Daisuke Akatsuka
d1f58c00a9 Bug 1625930: Apply ResourceWatcher to StyleEditor. r=ochameau
Depends on D78239

Differential Revision: https://phabricator.services.mozilla.com/D78240
2020-07-09 04:37:54 +00:00
Dorel Luca
3e4da6b273 Backed out changeset 00e12ae2d596 (bug 1649910) for Browser-chrome failures in browser/browser_ext_devtools_inspectedWindow_targetSwitch.js. CLOSED TREE 2020-07-09 03:58:43 +03:00
Alexandre Poirot
6c430374e4 Bug 1649910 - Emit "switched-target" only after we fully attached to the new target. r=jdescottes
The previous code, emitting the event from Toolbox.onTargetAvailable,
wasn't waiting for the call to TargetList.startListening which is done
from TargetList.onTargetAvailable.

Differential Revision: https://phabricator.services.mozilla.com/D82664
2020-07-08 22:57:36 +00:00
Bogdan Tara
75881e8400 Backed out 6 changesets (bug 1625930) for test_eventemitter_basic.js failures CLOSED TREE
Backed out changeset 30a3da9f613c (bug 1625930)
Backed out changeset d4e4c3ddcc43 (bug 1625930)
Backed out changeset 0133d9c58323 (bug 1625930)
Backed out changeset 1c9cf53f2a89 (bug 1625930)
Backed out changeset f63839eff636 (bug 1625930)
Backed out changeset a6bef105a2c2 (bug 1625930)
2020-07-08 18:08:27 +03:00
Daisuke Akatsuka
899ed9d38e Bug 1625930: Apply ResourceWatcher to StyleEditor. r=ochameau
Depends on D78239

Differential Revision: https://phabricator.services.mozilla.com/D78240
2020-07-08 14:05:42 +00:00
Daisuke Akatsuka
de90f65570 Bug 1646974: Add a test for the stylesheet which is loaded as internal. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D80807
2020-06-26 09:21:58 +00:00
Gijs Kruitbosch
d523471eac Bug 1644863 - fix trailing whitespace in browser/toolkit/devtools/mobile frontend code files, r=mossop,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D79201
2020-06-17 22:40:53 +00:00
Logan Smyth
21ff25bf86 Bug 1643180 - Part 5: Centralize viewSourceInStyleEditor's actor ID and sourcemap processing. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D78384
2020-06-05 22:19:46 +00:00
Logan Smyth
56fa0fd410 Bug 1642371 - Part 4: Open style editor using exact front object where possible. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D77740
2020-06-03 22:38:11 +00:00
Nicolas Chevobbe
2834d00a38 Bug 1636924 - Remove unnecessary isTopLevel and type properties from onTargetAvailable/onTargetDestroyed callback parameter. r=ochameau.
Since targetFronts now have isTopLevel and targetType properties, we can directly use
those, as the targetFront is included in the callback parameter.
This patch remove those properties and refactor consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D74651
2020-05-15 16:03:32 +00:00
Razvan Maries
f5f48cab39 Backed out changeset 3c239920e8fb (bug 1636924) for perma failures on browser_ext_devtools_inspectedWindow.js CLOSED TREE 2020-05-15 15:33:15 +03:00
Nicolas Chevobbe
8140fccf69 Bug 1636924 - Remove unnecessary isTopLevel and type properties from onTargetAvailable/onTargetDestroyed callback parameter. r=ochameau.
Since targetFronts now have isTopLevel and targetType properties, we can directly use
those, as the targetFront is included in the callback parameter.
This patch remove those properties and refactor consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D74651
2020-05-15 09:09:28 +00:00
Florens Verschelde
2f778385e8 Bug 1634380 - Part 2: Split devtools-button and legacy devtools-toolbarbutton styles; r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D73495
2020-05-12 13:22:28 +00:00
Logan Smyth
bfe7013db8 Bug 1607639 - Part 4: Convert introductionUrl into sourceMapBaseURL to match actual usage. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D72115
2020-04-27 02:17:02 +00:00