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

67 Коммитов

Автор SHA1 Сообщение Дата
yulia 9611217838 Bug 1429421 - remove gcli code; r=jdescottes,julienw,ochameau
Remove remaining GCLI code

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

--HG--
extra : moz-landing-system : lando
2018-09-06 11:42:57 +00:00
arthur.iakab 4862d62ddf Backed out changeset 5e21be5fdf9d (bug 1429421)for build busteges CLOSED TREE 2018-09-06 12:12:40 +03:00
yulia 139e4e0b9a Bug 1429421 - remove gcli code; r=jdescottes,julienw,ochameau
Remove remaining GCLI code

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

--HG--
extra : moz-landing-system : lando
2018-09-06 08:55:50 +00:00
yulia 5ecbde0627 Bug 1447490 - replace GCLI toolbox buttons with highlighters and appropriate actors; r=ochameau
GCLI has been handling the state of our buttons as well as managing shared highlighters.
Since the gcli removal, we no longer share the rulers and measure with any other UI, so a location
for shared state is no longer needed.

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

--HG--
extra : moz-landing-system : lando
2018-09-03 14:54:04 +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 fd4961af52 Bug 1172897 - Rename ContentActor to FrameTargetActor. r=ochameau
MozReview-Commit-ID: 3Rgvftpea8g

--HG--
rename : devtools/server/actors/content.js => devtools/server/actors/targets/frame.js
extra : rebase_source : 80f0aa2ad4a9ab183e08142aa043341a630faf1e
2018-05-30 14:09:45 -05: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
Kris Maglione 01c298aca6 Bug 1460092: Add ESLint rule to enforce use of ChromeUtils.generateQI. r=Gijs
Also fixes existing code which fails the rule.

MozReview-Commit-ID: CkLFgsspGMU

--HG--
extra : rebase_source : 86a43837659aa2ad83a87eab53b7aa8d39ccf55b
2018-05-08 18:36:22 -07:00
Patrick Brosset fbec3e1cdf Bug 1440855 - New font text-run highlighter used from the font inspector;r=gl
This commit introduces a new highlighter. This highlighter is specialized in
highlighting text-runs in a page that use a specified font.

The highlighter is based on a platform API that returns Range objects.
Therefore, the approach I chose was to simply feed these objects to the
window Selection object. This way, we get highlighting for free without
having to create any markup in the content page.
The drawback is that the highlighting looks different than in other places
of DevTools.
However it's most probably way better in terms of performance, and will
adapt natively to edge cases like APZ, scrolling, CSS transform, etc.

This commit also has a simple UI: on mouseover of a font name in the font
inspector panel, corresponding text runs are highlighted in the page.
This UI is hidden behind a pref for now, so we can test the feature with
some chosen users and gather feedback to improve the UI before shipping.

Finally, an integration test was added.

MozReview-Commit-ID: Fu3t0b5kbdy

--HG--
extra : rebase_source : 80493e64ad6fdb1ec1963021eb9bd7c3f5398201
2018-05-02 14:44:30 +02:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07: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
Nicolas Chevobbe aca904dd7c Bug 1382609 - Remove old-event-emitter usage from devtools/server; r=pbro.
MozReview-Commit-ID: 3B3slS3EPYn

--HG--
extra : rebase_source : 60bf49cfd4f620ee20aa577fd15168db48b2ff2d
2018-02-27 09:06:56 +01:00
Yura Zenevich b796f50892 Bug 1428431 - added accessible highlighter classes for content and chrome docs. r=pbro
MozReview-Commit-ID: JeBMoiCvENV
2018-02-12 22:33:37 -05:00
Boris Zbarsky fce30e834b Bug 1436508 part 10. Remove use of nsIDOMKeyEvent in JS. r=masayuki
MozReview-Commit-ID: GGciORX62Yh
2018-02-09 11:17:09 -05:00
Gabriel Luong 294c5fd86d Bug 1409970 - Part 2: Adds an initial FlexboxHighlighter boilerplate. r=pbro 2017-10-24 22:04:10 -04:00
Sebastian Hengst 9047c35a43 Backed out changeset 135e50ccfd3c (bug 1383870) for failing devtools/client/inspector/test/browser_inspector_highlighter-cssshape_05.js. r=backout 2017-10-05 00:01:09 +02:00
Mike Park 8520c3369f Bug 1383870 - CSS shapes highlighter incorrectly handles mouse events on elements in iframe. r=gl
MozReview-Commit-ID: HAHop7hSPxs
2017-07-25 10:33:51 -04:00
Sebastian Hengst ebc3375310 Backed out changeset 118ce2fecfca (bug 1383870) for failing devtools' devtools/client/inspector/test/browser_inspector_highlighter-cssshape_05.js. r=backout 2017-10-03 21:11:19 +02:00
Mike Park 549544d471 Bug 1383870 - CSS shapes highlighter incorrectly handles mouse events on elements in iframe. r=gl
MozReview-Commit-ID: HAHop7hSPxs
2017-07-25 10:33:51 -04:00
Alexandre Poirot bdfa9d2514 Bug 1396619 - Lazy load actor codebase related to the inspector. r=zer0
MozReview-Commit-ID: GCY1mqjoOkc

--HG--
extra : rebase_source : 2c1d4d1a573885f65c6c964b507d0f55e8c8376b
2017-09-04 17:46:26 +02:00
Julian Descottes ffc364ee02 Bug 1391562 - use obj.on/off/emit rather than static methods from devtools event-emitter;r=zer0
MozReview-Commit-ID: I50W8zGB9d0

--HG--
extra : rebase_source : 31b687343461a65fc6a40eece461bc2367d596d7
2017-08-18 17:05:04 +02:00
Julian Descottes 19c4c8493a Bug 1137935 - remove all usage of sdk/event/core/ in devtools;r=ochameau
MozReview-Commit-ID: 2ab0Ol4Mq64

--HG--
extra : rebase_source : 22d0003b40e0fc49e309187ea3c943a6f5048db5
2017-08-16 15:11:21 +02:00
ZER0 ba9681c84a Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8


--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 03:47:30 +02:00
Wes Kocher db97e61fc7 Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
MozReview-Commit-ID: 1wKVHbOAUdc

--HG--
rename : devtools/shared/old-event-emitter.js => devtools/shared/event-emitter.js
2017-08-10 18:23:14 -07:00
ZER0 93e1efc17d Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8


--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 02:43:47 +02:00
Mike Park ed40ba307a Bug 1282717 - Highlight CSS shapes points in the page from the rule-view and vice versa. r=pbro
MozReview-Commit-ID: 9pXkbAwgcXO
2017-07-05 10:57:42 -04:00
Mike Park 341dbc43d2 Bug 1282716 - Add static highlighter for polygon and circle shapes. r=pbro
MozReview-Commit-ID: 37v4L7qKKWa

--HG--
extra : rebase_source : 20e502e6c3067a6a4a0b8925986c430bf340996d
2017-05-15 13:56:04 -04:00
Eugen Sawin 0b1bae9e19 Bug 1355542 - [2.0] Remove unused web progress callbacks and add missing progress filters. r=felipe 2017-04-13 23:20:17 +02:00
Patrick Brosset bcf9b2f668 Bug 1338582 - New devtools highlighter for signaling paused state; r=jlast
This adds a new highlighter to our collection of highlighters.
This one is a simple overlay on top of the page and a message at the
top.
It will be used by the debugger to signal to users that script execution
is paused.

In later versions, the message at the top will also contain stepping and
resuming buttons.

MozReview-Commit-ID: JNGWrVjMzkm

--HG--
extra : rebase_source : 2006068b82f808c284aebe9f1f364970bda428c5
2017-04-04 12:03:03 +02:00
Carsten "Tomcat" Book dba578960e merge mozilla-inbound to mozilla-central a=merge 2017-03-14 14:23:03 +01:00
Matteo Ferretti 9a68dbc872 Bug 1335691 - Removed `RectHighlighter`, tests, and all reference to them; r=gl
MozReview-Commit-ID: Gn3uxuv7gRU
2017-03-13 21:35:50 +01:00
Matteo Ferretti 85a726e327 Bug 1327725 - ensure the pagehide event we received are for the window's highlighter; r=gl
Some tests were failing since they navigate in the history of frames; and that
was triggering the `onPageHide` for the highlighter.

MozReview-Commit-ID: 7lGRTg4CerU

--HG--
extra : rebase_source : 730fe1515feb706ea15f2ab0a8f193acdcb99e40
2017-03-12 13:06:00 +01:00
Sebastian Hengst e0f4f77419 Backed out changeset b43d8eb6e6c9 (bug 1335691) for build bustage. r=backout on a CLOSED TREE 2017-03-13 18:33:11 +01:00
Matteo Ferretti 2d0b942fdc Bug 1335691 - Removed `RectHighlighter`, tests, and all reference to them; r=gl
MozReview-Commit-ID: Gn3uxuv7gRU

--HG--
extra : rebase_source : 8086ea1521f0d88f358682ed04e8b44ccff1a774
2017-03-13 17:49:11 +01:00
Dalimil Hajek 3e02aa5978 Bug 1322085 - Make devtools/server/actors/*.js eslint-clean. r=ntim 2017-01-16 12:51:00 -05:00
Alexandre Poirot c8bf6d2c07 Bug 1151909 - Make the highlighter work on DOMContentLoaded instead of load. r=pbro
MozReview-Commit-ID: FyXEvKAgDJq

--HG--
extra : rebase_source : fbd84e16e77ab6204fc5c50bd62271e2f2f12345
2016-11-22 07:21:24 -08:00
Alexandre Poirot cef6ff335a Bug 983386 - Prevent initializing canvas highlighter on loading or destroyed documents. r=pbro
MozReview-Commit-ID: 3Pa3r3HTyE7

--HG--
extra : rebase_source : 781b76736603896cbf2f7ff37a38911a8cebc506
2016-10-24 07:52:23 -07:00
Alexandre Poirot 7603d7f12e Bug 1249119 - Prevent trying to initialize highlighter on still-loading documents. r=pbro
MozReview-Commit-ID: 3S0LoB40q2W

--HG--
extra : rebase_source : 36547954c9150d70eab860b8da1ca0e12cefa4f3
2016-10-19 05:19:48 -07:00
Phil Ringnalda 5f307bd640 Merge f-t to m-c, a=merge
MozReview-Commit-ID: 2EvSTWDWg4t
2016-10-19 18:27:04 -07:00
Xue Fuqiao bb162e2027 Bug 1111599 - Shift-click while in picker mode selects the element but doesn't stop the picker; r=pbro
MozReview-Commit-ID: 2yUKBJylxF1

--HG--
extra : histedit_source : 07084537fffa5a61a703d01c196ade647d9b70e1
2016-10-18 15:50:51 +08:00
Greg Tatum b815cfe432 Bug 1224304 - Handle canceling the element picker better r=gl
This changes the behavior of the element picker so that when it is
cancelled the previously selected DOM node is re-scrolled into view.
Additionally the existing behavior of the keyboard shortcuts for the
element picker was broken when the devtools toolbox was docked. The main
content area was not being focused, so the keyboard shortcuts for the
element picker were not being used. When the toolbox is detached, the
focus event is still not fired, as it's not desirable to have the
content pop into view over the devtools.

Finally there is now an additional implementation of the Escape shortcut
when the devtools are focused. The console Escape shortcut is ignored
until the element picker has been disabled making disabling the element
picker consistent irrelevant of the context.

MozReview-Commit-ID: HxENmPBoTcD

--HG--
extra : rebase_source : 067b51d4c7324f2e59fc698dbd5bb01ad2b29205
2016-10-06 13:40:53 -05: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
Gabriel Luong 0515d3805c Bug 1302496 - Refactor LayoutView to a Box Model component r=jdescottes
--HG--
rename : devtools/client/inspector/layout/layout.js => devtools/client/inspector/components/box-model.js
rename : devtools/client/inspector/layout/test/.eslintrc => devtools/client/inspector/components/test/.eslintrc
rename : devtools/client/inspector/layout/test/browser.ini => devtools/client/inspector/components/test/browser.ini
rename : devtools/client/inspector/layout/test/browser_layout.js => devtools/client/inspector/components/test/browser_boxmodel.js
rename : devtools/client/inspector/layout/test/browser_layout_editablemodel.js => devtools/client/inspector/components/test/browser_boxmodel_editablemodel.js
rename : devtools/client/inspector/layout/test/browser_layout_editablemodel_allproperties.js => devtools/client/inspector/components/test/browser_boxmodel_editablemodel_allproperties.js
rename : devtools/client/inspector/layout/test/browser_layout_editablemodel_bluronclick.js => devtools/client/inspector/components/test/browser_boxmodel_editablemodel_bluronclick.js
rename : devtools/client/inspector/layout/test/browser_layout_editablemodel_border.js => devtools/client/inspector/components/test/browser_boxmodel_editablemodel_border.js
rename : devtools/client/inspector/layout/test/browser_layout_editablemodel_stylerules.js => devtools/client/inspector/components/test/browser_boxmodel_editablemodel_stylerules.js
rename : devtools/client/inspector/layout/test/browser_layout_guides.js => devtools/client/inspector/components/test/browser_boxmodel_guides.js
rename : devtools/client/inspector/layout/test/browser_layout_rotate-labels-on-sides.js => devtools/client/inspector/components/test/browser_boxmodel_rotate-labels-on-sides.js
rename : devtools/client/inspector/layout/test/browser_layout_sync.js => devtools/client/inspector/components/test/browser_boxmodel_sync.js
rename : devtools/client/inspector/layout/test/browser_layout_tooltips.js => devtools/client/inspector/components/test/browser_boxmodel_tooltips.js
rename : devtools/client/inspector/layout/test/browser_layout_update-after-navigation.js => devtools/client/inspector/components/test/browser_boxmodel_update-after-navigation.js
rename : devtools/client/inspector/layout/test/browser_layout_update-after-reload.js => devtools/client/inspector/components/test/browser_boxmodel_update-after-reload.js
rename : devtools/client/inspector/layout/test/browser_layout_update-in-iframes.js => devtools/client/inspector/components/test/browser_boxmodel_update-in-iframes.js
rename : devtools/client/inspector/layout/test/doc_layout_iframe1.html => devtools/client/inspector/components/test/doc_boxmodel_iframe1.html
rename : devtools/client/inspector/layout/test/doc_layout_iframe2.html => devtools/client/inspector/components/test/doc_boxmodel_iframe2.html
rename : devtools/client/inspector/layout/test/head.js => devtools/client/inspector/components/test/head.js
rename : devtools/client/themes/layout.css => devtools/client/themes/boxmodel.css
2016-09-13 16:35:16 -04:00
Patrick Brosset df364f3f56 Bug 1289543 - Disable the eyedropper on non-HTML documents; r=miker
The eyedropper code now bails out if the content window is XUL, since
highlighters cant be inserted into non-HTML documents.
And the inspector hides the eyedropper buttons in the toolbar and in the
color-picker if the document isn't HTML.

MozReview-Commit-ID: 7AgRV8Qu9gz

--HG--
extra : rebase_source : 04220a6057df9ced4b49c29e8b46557008e0d738
2016-08-22 14:59:08 +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
Gabriel Luong 48cab5785e Bug 1282726 - Simple CSS Grid highlighter that displays grid lines r=pbro
This adds a new highlighter in devtools/server/actors/highlighters.
For now this highlighter isn't used and can only display grid lines
as provided by node.getGridFragments().
2016-08-19 10:26:39 -07:00
Eddy Bruel 2bdbd75fa0 Bug 1288423 - Rename Actor/FrontClassWithSpec to Actor/FrontClass. r=fitzgen 2016-08-10 17:36:04 +02:00
Patrick Brosset d2cc90ec24 Bug 1262439 - 1 - Introduce a new eye-dropper highlighter; r=zer0
This is mostly porting code from the XUL eye-dropper over to a new
highlighter file.
While I have tested this locally, this highlighter isn't yet used
in devtools.
This will come in later patches.

MozReview-Commit-ID: IF0puLu5Yc7

--HG--
rename : devtools/client/shared/css-color-db.js => devtools/shared/css-color-db.js
rename : devtools/client/shared/css-color.js => devtools/shared/css-color.js
extra : rebase_source : 72431a9148d1c688987a5693a619769837c774c7
2016-07-21 14:35:14 +02:00
moby f79cb6e071 Bug 1203079 - Allow Ctrl+Shift+C to cancel element picker even if page becomes unfocused; r=pbro
--HG--
extra : rebase_source : b8859d16fdf64903b55779fb5972d4ccb840b0ce
2016-06-14 04:57:00 +01:00