Commit Graph
64 Commits
Author SHA1 Message Date
Gabriel Luong eff138eee6 Bug 1396349 - Remove the collapse sidebar pane button in the Inspector. r=pbro 2017-09-23 08:52:36 -04:00
ZER0 c43a4de67f Bug 1382341 - removed this._remove() from onWindowReady; r=pbro
This basically revert the changes made in bug 1341756; but it doesn't seems to
bring the same issue as before since `pagehide` event is emitted properly when
entering in RDM.

Added unit test to catch future regression.

The removal of duplicated hidden markup in anonymous content will be handled by
Bug 1396690.

MozReview-Commit-ID: 92qC9CHYL1a
2017-09-05 15:23:18 +02:00
Wes Kocher 9a60d18b76 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 418vKEKrk3n
2017-07-24 18:10:56 -07:00
Julian Descottes c1fbf871ce Bug 1383723 - enable mochitest browser_inspector_search-suggests-ids-and-classes.js;r=jdescottes
MozReview-Commit-ID: AUj2FIHjPlH
2017-07-21 23:47:44 +02:00
Mike Park 514b99db5e 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 7c6c56e184 Bug 1282719 - Make CSS shapes highlighter points editable. r=zer0
Click and drag markers, circle edges, and radius edges to move them.
Double click on a polygon edge to add a new point.
Double click on a polygon point to remove it.

MozReview-Commit-ID: EbPH1pVVBOT
2017-06-14 17:18:57 -04:00
Mike Park 8c132dfbcc 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
2017-05-30 14:24:12 -04:00
Mike Park 97248148b0 Bug 1282716 - Add static highlighter for polygon and circle shapes. r=pbro
MozReview-Commit-ID: 37v4L7qKKWa
2017-05-15 13:56:04 -04:00
Matteo Ferretti 3c181f467c Bug 1365075 - waiting until the document is loaded if CustomContentContainer is not available; r=pbro
MozReview-Commit-ID: Cuv6diP08RT
2017-05-16 18:18:46 +02:00
Patrick Brosset 90b69f15a0 Bug 1358479 - Check if a grid fragment is valid before highlighting it; r=jdescottes
Grid fragments returned by the chrome-only el.getGridFragments() API
may sometimes in fact be empty. When they are, the returned object still
looks like a fragment, but has either no rows or no columns.
So this commit simply adds a quick check on this in the css grid highlighter
before attempting to highlight a grid fragment.

MozReview-Commit-ID: GjsGu9hpU5G
2017-04-25 14:16:57 +02:00
Matteo Ferretti c26f95af3b 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 d30b7c7a6a Bug 1341580 - DevTools Inspector tooltip get element width/height wrong when browser zoomed; r=gl
- Considered page's zoom when element's dimensions are displayed on the infobar
- Added unit test

MozReview-Commit-ID: 9Mk4ttswpZ2
2017-02-26 16:11:51 +01:00
Alexandre Poirot f487633f8f Bug 1326753 - Fix inspect node from browser context menu against elements in iframes. r=pbro
MozReview-Commit-ID: C4dvnISlneS
2017-01-18 22:08:10 +01:00
Geoff Brown 828ad789f9 Bug 1328915 - Skip linux32/debug devtools tests in clipboard and gpu subsuites; r=me 2017-01-16 11:58:13 -07:00
Julian Descottes a5e7ff68ee Bug 1306937 - enable inspector eyedropper when viewing images;r=pbro
MozReview-Commit-ID: BlJPMYMQb8j
2016-11-30 14:35:28 +01:00
Alexandre Poirot 58d04774c5 Bug 1151909 - Make the inspector actor wait for DOMContentLoaded instead of load. r=pbro
MozReview-Commit-ID: IV4v5ql8GJ9
2016-11-07 16:07:26 -08:00
Alexandre Poirot 4e4d4472c4 Bug 983386 - Test the inspector against network error pages. r=pbro
MozReview-Commit-ID: BIutzXLxk0w
2016-10-19 05:43:36 -07:00
Phil Ringnalda bd8c30d361 Merge f-t to m-c, a=merge
MozReview-Commit-ID: 2EvSTWDWg4t
2016-10-19 18:27:04 -07:00
Xue Fuqiao d623793a35 Bug 1111599 - Shift-click while in picker mode selects the element but doesn't stop the picker; r=pbro
MozReview-Commit-ID: 2yUKBJylxF1
2016-10-18 15:50:51 +08:00
Greg Tatum c3ca469ef1 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
2016-10-06 13:40:53 -05:00
Julian Descottes 321ebace1a Bug 1309212 - display highlighter infobar for #text nodes;r=pbro
MozReview-Commit-ID: HBaLSFyz6LR
2016-10-13 19:28:34 +02:00
Jan Odvarko 64a071a991 Bug 1305979 - Test for addSidebarTab API. r=jdescottes 2016-10-03 18:14:14 +02:00
Patrick Brosset ee4a9fbf43 Bug 733880 - Add the missing copy/paste/cut menus on all text boxes in inspector; r=jdescottes
This change makes use of the toolbox's textBox menu in all of the
inspector's text fields.
Previously, right-clicking in a text field in the inspector would give
various results: either the tool's context menu would open, or nothing
would happen, or the usual copy/paste/cut menu would open.

Now, right-clicking in any text field in the inspector always shows the
copy/paste/cut menu.

MozReview-Commit-ID: DwkhBqY7Qzj
2016-09-23 19:21:09 +02:00
Julian Descottes 68822f6cc5 Bug 1304701 - initialize splitter in horizontal mode if inspector starts in portrait mode;r=Honza
MozReview-Commit-ID: 60vAM9qfW09
2016-09-22 16:06:26 +02:00
Jan Odvarko 9e0d87b8f6 Bug 1260552 - Fixing test failures; r=me 2016-09-13 15:32:20 +02:00
Sebastian Hengst f21d5023b6 Backed out changeset c6564e0c0491 (bug 1260552)
MozReview-Commit-ID: LTRcVPywpho
2016-09-17 20:07:53 +02:00
Jan Odvarko 66509bd289 Bug 1260552 - Fix test failures. r=me 2016-09-13 15:32:20 +02:00
Florent Fayolle 809fef90b2 Bug 1222586 - Don't assume document to be HTML when pasting markup into the markup-view; r=pbro 2016-09-10 00:59:00 +02:00
Joel Maher 32e2c40067 Bug 1299882 - Intermittent tests | Timed out while polling clipboard for pasted data. r=RyanVM
MozReview-Commit-ID: 3S0vvyix6JN
2016-09-01 15:33:06 -04:00
Fred Lin 8696b6c7f2 Bug 1295081 - Fix inspector-searchinput-clear display behavior; r=gl
MozReview-Commit-ID: B7VCwAHYHyJ
2016-08-17 14:28:01 +08:00
Patrick Brosset 5c93d45ee6 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
2016-08-22 14:59:08 +02:00
Steve Chung 7cc98e6a45 Bug 1295390 - Don't hold search result after clearing inspector-searchbox by inspector-searchinput-clear. r=ntim
MozReview-Commit-ID: xmLhuQBgaV
2016-08-16 18:18:48 +08:00
Gabriel Luong daf912f588 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
Patrick Brosset a080e97831 Bug 1295607 - Avoid CSP errors when drawing the window into the eyedropper; r=miker
Pages defining CSP response headers used to be a problem for the eyedropper.
Indeed, the eyedropper would take a screenshot of the window with
canvas.drawWindow and then load the resulting data as an Image. But in order
to access the Image() constructor, it would use the content window:
new window.Image(), and that wasn't possible with CSP headers.

With this change, the eyedropper creates an ImageBitmap with
window.createImageBitmap() and that doesn't cause CSP errors, and still works
fine because ImageBitmap are consumable by the eyedropper.

This change also adds a new test to prevent this bug from coming back.

MozReview-Commit-ID: 7f3HCXJtTiv
2016-08-18 14:37:04 +02:00
Patrick Brosset 98f15741fe 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
Fred Lin cea3f7830e Bug 1294937 - The context menu does not appear when right-click on the inspector-searchbox. r=gl
MozReview-Commit-ID: 8Ebs5jeYlkq
2016-08-15 11:23:16 +08:00
Steve Melia ce2110f398 Bug 1275399 - Change inspector breadcrumbs to add RTL functionality. r=jdescottes 2016-06-06 01:25:39 +01:00
Ricky Chien ac91549790 Bug 1102269 - Fixed infobar getting outside visible area r=ntim
MozReview-Commit-ID: 7yNokF0bjj9
2016-08-02 16:51:06 +08:00
Patrick Brosset ac96830236 Bug 1278552 - Make sidebar containers focusable so shortcuts work when they are active; r=jdescottes
The rule-view and computed-view now have tabindex="-1" on their containers
so that clicking anywhere in the views will focus them, so will tabbing
through the inspector to them.
This means that any user activity on them ends up focusing them (or any
focusable element in them, which was the case before anyway).
Because of this, pressing ctrl+F (or any other shortcut) will work correctly:
the _onShortcut callback in each of these views will detect that the active
element is the view itself and will therefore handle the event.
Note that the container element that has the tabindex attribute is a child of
the main container element that is scrollable (overflow:auto). That is
because if we use only one element for both, then grabbing the scrollbar will
focus the element and blur any field that's currently focused.

MozReview-Commit-ID: 97a1tpdlbmZ
2016-07-18 14:38:10 +02:00
Patrick Brosset e19007d87a 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
2016-07-21 14:35:14 +02:00
J. Ryan Stinnett 3b0119033c Bug 1240907 - Tunnel toolbox messages to content in RDM. r=ochameau
When you open a toolbox in RDM, it will now debug the content page, instead of
the RDM UI.

MozReview-Commit-ID: LXbVhwNVlcp
2016-07-21 12:20:55 -05:00
Nancy Pang 63c6ab74fc Bug 1273211 - Add side panel enter and return controls, added keyboard space selection for controls in netmonitor and console key. r=pbro
MozReview-Commit-ID: HGGTeshLBDs
2016-07-12 14:10:57 -04:00
Nicolas Chevobbe 8e20f3bf35 Bug 1273323 - Add integration tests for namespaced elements. r=jdescottes
Add tests for :
- markup display
- add rule
- breadcrumb
- highlighter info bar
- markup search
- webconsole element output

Move webconsole dom output test to head.js as similar things are done
in several tests.


MozReview-Commit-ID: 6gclZhzd7sD
2016-05-22 00:03:42 +02:00
Joel Maher aadfd37353 Bug 1270962 - move tests which access the clipboard to subsuite 'clipboard'. r=bgrins,ryanvm,armenzg a=merge
MozReview-Commit-ID: IZziPmwFtHj
2016-05-25 15:28:24 -04:00
Steve Melia 75fb0d6431 Bug 1269915 - Remove right click menu from breadcrumbs;r=bgrins
MozReview-Commit-ID: 4mD2zcW7Awe
2016-05-04 22:48:15 +01:00
Yura Zenevich e70fd9daa3 Bug 1242852 - (part 2) making inspector toolbar keyboard accessible. r=gl
MozReview-Commit-ID: BmLtydkQao7
---
 devtools/client/inspector/breadcrumbs.js           | 41 ++++++++++
 devtools/client/inspector/inspector-search.js      |  6 ++
 devtools/client/inspector/test/browser.ini         |  3 +
 .../browser_inspector_breadcrumbs_keyboard_trap.js | 79 ++++++++++++++++++
 .../test/browser_inspector_search_keyboard_trap.js | 93 ++++++++++++++++++++++
 devtools/client/inspector/test/head.js             | 17 ++++
 6 files changed, 239 insertions(+)
 create mode 100644 devtools/client/inspector/test/browser_inspector_breadcrumbs_keyboard_trap.js
 create mode 100644 devtools/client/inspector/test/browser_inspector_search_keyboard_trap.js
2016-04-12 11:53:54 -04:00
Julian Descottes 776283fdec Bug 1260053 - prevent sidebar resize when panel is collapsed;r=bgrins
The collapsible sidebar has min-height:35vh and max-height:75vh
when viewport-width < 700px (ie vertical layout).

These bounds should not apply when the panel is collapsed. The
collapsing relies on negative margins to hide the panel, which
can only work if the computed height remains constant once the
panel has been collapsed.

Added a new mochitest checking that the height and margin-bottom
are constant through a layout switch.

MozReview-Commit-ID: K6EGiBtJ11S
2016-03-30 12:11:35 +02:00
Patrick Brosset 01a2056102 Bug 1261781 - Inspector toolbar button for inserting new elements; r=jdescottes
MozReview-Commit-ID: BoD6MEMQb3b
2016-04-05 11:08:21 +02:00
Chris Manchester a3478d13f6 Bug 1242051 - Add inter-directory test support file dependencies to ini manifests. r=gps
Previously, every test and support file would be synced to the objdir
when running any test. Now that only those support files and tests requested
are synced, we note support files required beyond those in a test's
directory in ini manifests.

MozReview-Commit-ID: EmlDz9d4lqt
2016-04-04 14:56:52 -07:00
Matteo Ferretti 1824e57a3a Bug 1139187 - Allow moving and resizing elements in content; r=pbro
MozReview-Commit-ID: EmmFBXW22dk
2016-03-17 10:59:03 -04:00