This adds a generic walker method that cna be used to retrieve AnimationPlayerActor's
target DOM nodes in a way that they can be highlighted/selected later in the inspector.
Making the AnimationPlayerActor return the nodeActor directly wouldn't fully work, as
the walker would have missed the missing parent nodeFronts updates.
On the UI, this adds a new component in each PlayerWidget that displays a preview of the
target DOM nodes, highlight them on hover, and select them on click.
--HG--
extra : rebase_source : dfbf459d9de14233f125d028cf81f6b934941ea2
Two keyboard shortcuts can toggle the devtools : F12 and CTRL+SHIFT+I/CMD+ALT+I.
Currently, with detached devtools, pressing a toggle key from the main window
closes the devtools window. Pressing a toggle key from the devtools window
itself has no effect.
The goal of this changeset is to :
- focus devtools window when pressing a toggle key in the main window
- close devtools window when pressing a toggle key in the devtools window
Modified toggleToolboxCommand in browser/devtools/framework/gDevTools.jsm to
destroy the toolbox only if it is "docked" (exists and the hostType is not
WINDOW).
Modified browser/devtools/framework/toolbox-window.xul and
browser/locales/en-US/chrome/browser/devtools/toolbox.dtd so that F12 and
CTRL+SHIFT+I/CMD+SHIFT+I also close the devtools window when used inside the
devtools window
Added mochitest browser_toolbox_toggle.js
The node-attribute-parser now marks uris to css and js files as cssresource and jsresource.
Thanks to this, the inspector can open the corresponding files in the style-editor and
debugger rather than just opening a new tab with the source.
This makes use of 2 new toolbox methods: viewSourceInStyleEditor and viewSourceInDebugger.
--HG--
extra : rebase_source : fcca4fe73c147381c1fcccda4f7956c8d41b4c2b
extra : histedit_source : 84cda2275b42bd6196243a83e9f129f3c66faa6b%2C0ee06929ac85dfeafdd5ee66d842e32fc5395578
This part adds contextual menu items that become enabled when
the user right clicks on an attribute that has a link.
Depending on the nature of the link, a new tab will be opened or a node
selected.
The user can also choose to copy the link in the clipboard.
--HG--
extra : rebase_source : 00128a076003ebac34096d81d9e326bee6631259
extra : histedit_source : c1d67e84e9d57280040e5831233df523fff904e2
This first part adds a parser for node attributes which, given some node
information and an attribute name, generates a small AST-like array of
objects that tells which parts of the attribute (if any) are links, and
what they link to.
Using this, the markup-view generates the right HTML structure to display
these parts as links.
This part 1 doesn't yet allow users to follow these links.
--HG--
extra : rebase_source : 2db11afb148ece3918adbf908536a29b7867882a
extra : histedit_source : 3aac6ec878e2e57f2a1f06ab4a322db95eb5b3be
This used to work fine, but regressed when bug 1153635 got fixed.
This fixes the issue and introduces a new test to prevent further regressions.
--HG--
extra : transplant_source : %A5Y%B5%9B%11u%F5p%9B%DA%FA%99%3F%D9%E5%3C%5Ex%AF.
The failing test was rewinding a player and expecting it to pause at 0.
But rewing first pauses (async) and then sets the time (async), and the test
was only waiting for the player to pause.
With this change, we now also wait until the time is the expected one.
--HG--
extra : transplant_source : %23BU%CB%F3%3A%A8%226hWIw%E8VI%3A%94%A4V
This overrides the jump-to-line other tools might have requested if the editor
was not already active. The idea was to restore the scroll position after the
editor was hidden and then shown again but the functionality regressed when bug
816967 was fixed.
Now that Style Editor uses CodeMirror the scroll position can be restored by
calling refresh on the CodeMirror instance. If a specific line to focus was
specified, refreshing the editor is a no-op as it was done when the line was
selected. However, if the editor was not refreshed after the editor became
visible again (i.e. a line to jump to was not specified), refreshing it will
restore the previous scroll position.