Граф коммитов

60 Коммитов

Автор SHA1 Сообщение Дата
Gabriel Luong 006d44d6b7 Bug 1568157 - Part 3: Replace `toolbox.highlighter` with the contextual HighlighterFront. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D40316

--HG--
extra : moz-landing-system : lando
2019-08-27 19:13:45 +00:00
Nicolas Chevobbe 925311bc77 Bug 1568779 - Remove editors settings comments in devtools files. r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D42300

--HG--
extra : moz-landing-system : lando
2019-08-19 12:48:16 +00:00
Victor Porof f6db0ee557 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884

--HG--
extra : source : 60e4496cf9699dc59f2f4738cb60f87cbdb01e67
2019-07-05 11:24:38 +02:00
Brian Hackett f4af857cef Bug 1497393 Part 7 - Server side changes for inspector support while replaying, r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D22863

--HG--
extra : rebase_source : 1069a8534dd79e1d2cf309c9d3f3c27079077087
extra : histedit_source : 1a750a022d46da836181f913d012081ea608da7f
2019-03-09 16:45:50 -10:00
Michael Ratcliffe 639bed7bb2 Bug 1509620 - Computed style inspector CSS cascade calculation is wrong r=ladybenko
### Try

https://treeherder.mozilla.org/#/jobs?repo=try&revision=f1bad5e5282812225da95c0ea9e2ef173640b5da

### Summary

!!Comparing numerous complex websites such as github, facebook, cnn etc. the cascade now matchers that of Chrome so we are in a much better place.!!

According to https://www.w3.org/TR/css-cascade-3/#cascading (which platform follows now) and https://www.w3.org/TR/css-cascade-4/#cascading we should now be doing this (descending order):

  - Transition declarations
  - User-Agent & !important
  - User & !important
  - Author & !important
  - CSS Animations, @keyframes
  - Author, normal weight
  - User, normal weight
  - User-Agent, normal weight
  - specificity
  - Sheet Index
  - Rule Line
  - Rule Column

We are only dealing with CSS selectors here so we can safely drop Transition declarations and CSS Animations because their presence here is irrelevant when it comes to the CSS cascade information we display in the computed view.

This leaves us with:

  - User-Agent & !important
  - User & !important
  - Author & !important
  - Author, normal weight
  - User, normal weight
  - User-Agent, normal weight
  - specificity
  - Sheet Index
  - Rule Line
  - Rule Column

### Changes

- References to content stylesheets have been changed to author stylesheet to closely match the technical terms author, user and agent stylesheets.
- Simplified and modernized a bunch of for loops to make the code easier to understand.
- Previous to these changes all matching parent rules were classed as equal e.g. color on the body tag was equal to color on a node's immediate container. We now use the `distance` variable to tell how close a rule is to the current node. This is the highest qualifier in our cascade calculation.
- The `_agentSheet`, `_authorSheet` and `_userSheet` properties are now used to obtain a sheets origin.
- `elementStyle` was renamed to `inlineStyle` in order to correctly identify the rule's origin.
- We used to sort the matchedSelectors to move rules with `STATUS.MATCHED` above `STATUS.PARENT_MATCH` but this is unnecessary now that we have the `distance` property so we no longer do this.
- The `compareTo()` method has been updated to match https://www.w3.org/TR/css-cascade-3/#cascading (which platform follows now) and https://www.w3.org/TR/css-cascade-4/#cascading. It has also been simplified and made far less prone to error.

Differential Revision: https://phabricator.services.mozilla.com/D23711

--HG--
extra : moz-landing-system : lando
2019-03-25 16:32:19 +00:00
Alexandre Poirot a0066e8731 Bug 1515862 - Remove Front's form argument. r=jdescottes
Now that form argument is no longer used by any front to set its actor ID,
we can remove this argument.

Have a particular look at:
* devtools/client/shared/test/test-actor-registry.js
which was the last Front to be manually instantiated and need some tweaks,
* canvas head.js to create canvas front via getFront,
* RDM manager.js, which requires the EmulationFront to be self managed.

Depends on D17615

Differential Revision: https://phabricator.services.mozilla.com/D17616

--HG--
extra : moz-landing-system : lando
2019-01-28 18:42:52 +00:00
Alexandre Poirot 37fcc38aa4 Bug 1510949 - Make protocol.js support es6 classes for fronts. r=yulia
MozReview-Commit-ID: JegR2JsyNrI

Differential Revision: https://phabricator.services.mozilla.com/D13780

--HG--
extra : moz-landing-system : lando
2018-12-11 16:32:41 +00:00
Mark Banner ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Boris Zbarsky 79181a1a13 Bug 1446940 part 3. Stop getting docshells from windows via getInterface in devtools. r=bgrins 2018-08-01 13:07:10 -04:00
J. Ryan Stinnett eaa4969e77 Bug 1172897 - Rename TabActor to BrowsingContextTargetActor. r=ochameau
MozReview-Commit-ID: LPTEx2h4F1o

--HG--
rename : devtools/server/actors/tab.js => devtools/server/actors/targets/browsing-context.js
rename : devtools/shared/specs/tab.js => devtools/shared/specs/targets/browsing-context.js
extra : rebase_source : e62720693ad492cdfb68ab21af1f54d78e85123a
2018-05-25 18:20:28 -05:00
Julian Descottes 640fe52298 Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4

--HG--
extra : rebase_source : 65de1b0aba412d9044b5196115f74276caa058f2
2018-06-01 12:36:09 +02:00
Alexandre Poirot 24603597f9 Bug 1453385 - Fix actors trying to transfer functions or xpcom objects. r=jryans
MozReview-Commit-ID: 74l85ePCcrY

--HG--
extra : rebase_source : 5af0d60d6fe436a0b0039e0f0b017f8a39b8b5f9
2018-04-12 14:45:10 -07:00
Patrick Brosset e9b33924a6 Bug 1351081 - Always retrieve quads relatively to the top window, correctly; r=gl
Use the getBoxQuads's relativeTo option to avoid having to calculate the offset
due to frames.

Also reduce the precision of numbers used when checking if the highlighter is
correctly displayed.

Finally, for some strange reasons, this patch seems to cause a totally unrelated
events mutation event to be sent during the test. This polutes the mutations
received and made the test fail. So I filtered the list of mutations to only
preserve the ones we care about here.
I could not reproduce this extra mutation when running Firefox. Only during the
test. So I did not investigate further.

MozReview-Commit-ID: 1ZQ6FGULjHG

--HG--
extra : rebase_source : 6406571849afb1d3dcec176f68ef4d3d122a1abf
2018-03-30 11:24:45 +02:00
Alexandre Poirot bcf6facc3c Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans
MozReview-Commit-ID: HaGOC5cn3JD
2018-03-12 19:46:35 -05:00
J. Ryan Stinnett 23ff4cc75d Bug 1443081 - Apply spacing via `eslint --fix` for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
Florian Quèze f3ee8dd20b Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:35 +01:00
Mark Banner 21e6e270a4 Bug 1438489 - Enable ESLint rule mozilla/use-services for devtools/. r=jdescottes
MozReview-Commit-ID: FZscEA6Q3Kb

--HG--
extra : rebase_source : b1b8699288a3595e52bcff3c7684bfe095f41dd1
2018-02-15 12:00:17 +00:00
Julian Descottes 8cfe81bd3d Bug 1434543 - removed unused getElementFromPoint from devtools layout/utils;r=ochameau
MozReview-Commit-ID: FHy6Dv5Q5l3

--HG--
extra : rebase_source : e30cd11b98f09842d35cc955d3145fba751a7296
2018-01-31 13:12:10 +01:00
Cameron McCormack afa1299635 Bug 1427419 - Part 24: Move pseudo-class lock methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: ItruGMmf5Ih
2018-01-11 12:38:01 +08:00
Cameron McCormack abddba8b81 Bug 1427419 - Part 3: Move inIDOMUtils.getCSSStyleRules to InspectorUtils. r=bz
MozReview-Commit-ID: 3pcxsYhguOk
2018-01-11 12:37:59 +08:00
Hiroyuki Ikezoe a70fdbfb6e Bug 1399314 - Introdue CssLogic.getCSSStyleRules to get style rules for ::before and ::after pseudo elements handy. r=bgrins
For pseudo elements, inIDOMUtils.getCSSStyleRules needs to take the parent
element of the pseudo element and pseudo name. This new function wraps
inIDOMUtils.getCSSStyleRules so that we can get style rules for pseudo elements
handy.

MozReview-Commit-ID: LRQBdiizoL7

--HG--
extra : rebase_source : ca409443da52d25630f52052aabf508ee79a6bd1
2017-10-13 07:19:54 +09:00
Mike Park 920866c6b0 Bug 1368709 - Handle zoom and geometry-box options for CSS shapes highlighter. r=pbro
Also convert markers to SVG path to better handle zoom

MozReview-Commit-ID: 8h9WWOLvFfG

--HG--
extra : rebase_source : 338155d2420183b17b9507b1fbedc7bda307d16b
2017-05-30 14:24:12 -04:00
Matteo Ferretti bec7538bbf Bug 1255351 - box model highlighter: all the guidelines now are overlap the node; r=gl
This patch is fixing the issue mostly for 1dppx / 1dpi display.
For higher dpi a follow-up bug will be made once bug 1345917 and bug 1151421
are fixed; and it will be part of bug 1187970.

MozReview-Commit-ID: 7XuED9ydGvB

--HG--
extra : rebase_source : 3d47ee5c7c7a60f712fe23072bb8686eac0b8dc8
2017-03-10 02:32:09 +01:00
Matteo Ferretti 0e20adbe88 Bug 1312103 - Avoid scrolling latency on highlighters given by APZ; r=pbro
- Used `position: absolute` instead of `position: fixed` whenever was possible.
- Updated utility functions and auto-refresh base class to consider the scrolled
  values in root document and scrollable elements.

MozReview-Commit-ID: 6evdOrfj74z

--HG--
extra : rebase_source : 84ca648ce0e3ba32d11baaa910ac2f7e5ec90e52
2017-01-02 11:43:37 +01:00
Florian Quèze f187782ccf Bug 1334250 - script-generated patch to avoid removeEventListener calls when a variable is used for the event name, r=jaws. 2017-01-27 10:48:00 +01:00
Florian Quèze 0e0865f4fc Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Sebastian Hengst cb76f56d60 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen d7ea1c1605 Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Tim Nguyen 3c755128db Bug 1316723 - Fix more eslint errors in devtools/client/shared/. r=tromey
MozReview-Commit-ID: IzXyqkQECKb

--HG--
extra : rebase_source : dee2c883181474a33a9afcd1c9cb73afd4122a8c
2016-11-11 09:09:50 +00:00
Patrick Brosset a38e6ca6d7 Bug 1304685 - Show empty text nodes in markupview if they impact layout; r=jdescottes
When the inspector actor walks the DOM in order to find nodes to be
displayed in the inspector panel, it ignores text nodes that contain
only whitespace characters (in order to avoid cluttering the panel with
useless information).

This commit changes this logic so that whitespace text nodes are only
ignored when the node in fact has no layout at all (all text collapsed).
Inside inline formatting contexts, whitespace text nodes may have layout
and therefore push elements further apart. So seeing these nodes in the
panel actually help debugging issues.

MozReview-Commit-ID: GvNMsqsT3w6

--HG--
extra : rebase_source : 5c04eaf9e19e952d9f6ca267ef835e1846bc7f4a
2016-10-11 16:29:20 +02:00
Patrick Brosset 30b49aad5a Bug 1304679 - Box-model highlighter now highlights text nodes; r=gl
MozReview-Commit-ID: 8gZvTE1tZuH

--HG--
extra : rebase_source : f038f4719387571ff8e0801008a5adb616c6c379
2016-09-23 09:57:37 +02:00
Patrick Brosset 4518dae1c4 Bug 1276418 - Remove getNode and all references to it in inspector tests; r=gl
MozReview-Commit-ID: HIhOHZvtUl

--HG--
extra : rebase_source : 680c659e14f6b308f72124a3241f8c81115d7a44
2016-09-16 15:58:50 +02:00
Eddy Bruel f389d7ede3 Bug 1295171 - Reintroduce the old Actor/FrontClass constructors. r=jryans
Heintroduce the old Actor/FrontClass constructors.
2016-08-22 16:25:57 +02:00
Patrick Brosset 3ca2b33eec Bug 1289553 - Move the eyedropper label so it's always visible; r=jdescottes
This adds a few new CSS selectors that are used to move the label to the
top and/or left/right of the eyedropper canvas.
The CSS rules use transform and a quick transition.
The eyedropper highlighter then just makes use of this by adding top, left,
right attributes to the DOM depending on its position.

This also adds a test for this, and while testing, I discovered a bug in
shared/layout/utils.js that I fixed here too. Sometimes, the node passed is
actually a DOCUMENT_NODE and so we must account for this in a couple of places
in this file to avoid JS errors.

MozReview-Commit-ID: H969k3mEDJE


MozReview-Commit-ID: 9qOCYVp4mld
2016-08-18 15:17:47 +02:00
Eddy Bruel 2bdbd75fa0 Bug 1288423 - Rename Actor/FrontClassWithSpec to Actor/FrontClass. r=fitzgen 2016-08-10 17:36:04 +02:00
Eddy Bruel 7cafaf845a Bug 1288423 - Decouple EventsFormActor from EventsFormFront. r=fitzgen 2016-08-10 17:34:34 +02:00
Tom Tromey 16d4051c4f Bug 1273941 - replace uses of promise.defer in devtools/client/shared; r=jryans
MozReview-Commit-ID: K5P4eB0XPT9

--HG--
extra : transplant_source : %EB%27%9C%FE%80N%8D%13E%C0%7B%B7%F0_%A5%CCJ%5D%FC%8F
2016-06-09 09:04:22 -06:00
Steve Melia cd0c692386 Bug 1276533: Update test actor to scroll element into view before simulating mouse click;r=ochameau
MozReview-Commit-ID: ElTy62z8tl6

--HG--
extra : amend_source : c4c776f53a17cb56580fdb13caa1765d494572a4
2016-05-31 22:03:58 +01:00
Tom Tromey 0d398a243a Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ

--HG--
rename : toolkit/modules/Task.jsm => devtools/shared/task.js
extra : transplant_source : %B8h%8A%8C%BD%91%8A%81%1D%F4%F5%2Ap%CFv%BC%963u0
2016-05-17 13:07:55 -06:00
J. Ryan Stinnett 30b2b7ce44 Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Jennifer Fong 2f312892d5 Bug 1270173 - Move protocol.js from devtools/server to devtools/shared. r=ejpbruel 2016-05-06 09:19:00 +02:00
Matteo Ferretti 4373495447 Bug 1139187 - Unit Test for Geometry Editor; r=pbro
MozReview-Commit-ID: 9smoBjNt1St

--HG--
extra : rebase_source : 57b0e4873193728fa25b74619b8e4a6e19138189
2016-03-17 10:59:39 -04:00
Julian Descottes ed8fb019e9 Bug 1230325 - markup-view: skip keyboard shortcuts if any modifier;r=pbrosset
Bail out from the markup view onKeyDown handler if any modifier is currently
true. All shortcuts specified in this handler are intended to be used without
modifier, so for now this approach is fine.

Added a test checking the use case mentioned in Bug 1230325, with the S
shortcut. In order to write the test, had to create an additional method on
the test actor to be able to wait for events in the window of the content process.

MozReview-Commit-ID: 67icou0HkfA

--HG--
extra : rebase_source : e7235c487134505563cae3c5ac8bdabd42dc4363
2016-03-04 18:15:32 +01:00
Patrick Brosset 3dc525e814 Bug 1252099 - Remove usage of getNode and content in markupview tests; r=ochameau
MozReview-Commit-ID: F58e1CcwHNs

--HG--
extra : rebase_source : 6492997a05363bc88e00d0726a60f7dfe1bb8125
2016-03-03 16:35:21 +01:00
Patrick Brosset 4e53be7033 Bug 1252099 - Do not use CPOWs in browser_markup_copy_image_data.js; r=jdescottes
MozReview-Commit-ID: KWQMPplwIY8

--HG--
extra : rebase_source : c4d064215c66679f11d832745076be25f01f76c3
extra : histedit_source : 0960e1928f2184d3453da1424ef04c2564b1b1a2%2Cd858558091b5b8b8fabc6613e8b5f87b3c676a1b
2016-03-01 14:13:46 +01:00
Andreas Tolfsen 4c4d432d3a Bug 1245153 - Use EventUtils.js from mochikit; r=pbrosset
testing/marionette/EventUtils.js has been converted to a JS module in
testing/marionette/event.js and its API has changed.  It was originally
a copy of testing/mochitest/tests/SimpleTest/EventUtils.js, and it should
be fine to use the original instead.

MozReview-Commit-ID: Exi9d5rEeOz

--HG--
extra : histedit_source : 999974c56edeecb1313d2b1050c8911473c02292
extra : rebase_source : 77656e161e67423cd44d2071e4118e824cc64363
extra : commitid : 5SGljZj56xm
extra : source : 18d54b8d4ae8348d62070b57574858f0824474ad
extra : amend_source : 968c4d6c4959f5ba502b846294aabe40296d6541
2016-02-05 14:14:15 +00:00
Carsten "Tomcat" Book 33e27d2555 Backed out 18 changesets (bug 1245153) for multiple test failures
Backed out changeset 18d54b8d4ae8 (bug 1245153)
Backed out changeset 98b6d0c053c0 (bug 1245153)
Backed out changeset c29a348930a4 (bug 1245153)
Backed out changeset f79252e92acc (bug 1245153)
Backed out changeset 9f3f1c358e47 (bug 1245153)
Backed out changeset 3b9e9a027fa7 (bug 1245153)
Backed out changeset 6da8099573f3 (bug 1245153)
Backed out changeset 63a56310a1b5 (bug 1245153)
Backed out changeset 5fe42d498a2a (bug 1245153)
Backed out changeset b3be2d2f3ac1 (bug 1245153)
Backed out changeset ad5bf32d8fef (bug 1245153)
Backed out changeset 68a6dda373d2 (bug 1245153)
Backed out changeset 6ebd9fde50c0 (bug 1245153)
Backed out changeset e41a5b41859a (bug 1245153)
Backed out changeset 048d70070751 (bug 1245153)
Backed out changeset eff85dc0eaa9 (bug 1245153)
Backed out changeset dc6460e0f336 (bug 1245153)
Backed out changeset 36526a2e8b00 (bug 1245153)

--HG--
rename : testing/marionette/event.js => testing/marionette/EventUtils.js
rename : testing/marionette/action.js => testing/marionette/actions.js
rename : testing/marionette/atom.js => testing/marionette/atoms/atoms.js
rename : testing/marionette/element.js => testing/marionette/elements.js
rename : testing/marionette/frame.js => testing/marionette/frame-manager.js
rename : testing/marionette/interaction.js => testing/marionette/interactions.js
2016-02-11 17:05:41 +01:00
Andreas Tolfsen df34df3a01 Bug 1245153 - Use EventUtils.js from mochikit; r=pbrosset
testing/marionette/EventUtils.js has been converted to a JS module in
testing/marionette/event.js and its API has changed.  It was originally
a copy of testing/mochitest/tests/SimpleTest/EventUtils.js, and it should
be fine to use the original instead.

MozReview-Commit-ID: Exi9d5rEeOz

--HG--
extra : commitid : 5SGljZj56xm
extra : rebase_source : fef01fe432241303c73f22425ddec18dc2a9a3a4
extra : amend_source : 968c4d6c4959f5ba502b846294aabe40296d6541
extra : histedit_source : 597b6ac1196966911fa5925cfb95cfdb2cdc6bf7
2016-02-05 14:14:15 +00:00
Patrick Brosset 5e68bd4942 Bug 1181837 - 8 - Include inspector's head.js in markup view to remove duplication; r=bgrins
--HG--
extra : commitid : 6ABB5e1Ufsq
extra : rebase_source : 040604ea01606d9a43b85656a979bb80ad229ae7
2016-01-20 09:42:16 +01:00
Grisha Pushkov ee89c1ac63 Bug 1093593 - Order of attributes in markup view depends on input order. r=pbro 2015-11-26 04:44:00 +01:00