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

18207 Коммитов

Автор SHA1 Сообщение Дата
Itiel 571019ecae Bug 1590212 - More RTL fixes to the console editor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D49986

--HG--
extra : moz-landing-system : lando
2019-10-29 07:59:04 +00:00
Julian Descottes a399da3be9 Bug 1588773 - Move css-selector.js helpers back to DevTools css-logic.js r=pbro
Depends on D49303

Some methods from css-logic were extracted from the devtools codebase to be used by context-menu files.
This was only needed in order to compute the css-selectors for Inspect Element.
If we use ContentDOMReference instead, those helpers can move back in the devtools codebase
(leaving them in css-selector.js fails the all-files-referenced test for some reason as well)

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

--HG--
rename : toolkit/modules/tests/chrome/test_findCssSelector.html => devtools/shared/tests/mochitest/test_css-logic-findCssSelector.html
extra : moz-landing-system : lando
2019-10-28 09:11:02 +00:00
Julian Descottes c72c1dcdcc Bug 1588773 - Use ContentDOMReference for context menu Inspect Element r=mconley,pbro
Depends on D49941

Using ContentDOMReference instead of creating an array of selectors makes inspect element more stable in case the page is modified between after the contextmenu opens.
It will also make the feature easier to make fission compatible

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

--HG--
extra : moz-landing-system : lando
2019-10-28 09:10:29 +00:00
Jason Laster ddef712d8f Bug 1580165 - fix selected node for console; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D50126

--HG--
extra : moz-landing-system : lando
2019-10-29 00:36:23 +00:00
Anshul ec63a27082 Bug 1590811 - Better align the breakpoint icon and change hover effects.
Differential Revision: https://phabricator.services.mozilla.com/D50157

--HG--
extra : moz-landing-system : lando
2019-10-28 22:24:26 +00:00
jaril ba28db66a0 Bug 1581245 - Add a frame timeline to web replay
Differential Revision: https://phabricator.services.mozilla.com/D49698

--HG--
extra : moz-landing-system : lando
2019-10-28 14:17:18 +00:00
Gabriel Luong 7d8648596f Bug 1578745 - Introduce a preference to enable fission frame inspection in DevTools. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D50666

--HG--
extra : moz-landing-system : lando
2019-10-28 20:45:21 +00:00
Arthur Iakab 4320e59942 Backed out changeset 42823d984687 (bug 1580165) for causing devtools failures on browser_toolbox_remoteness_change.js. CLOSED TREE
--HG--
extra : rebase_source : 141bf36ac3a9ab307613c6489c156f57cead397d
2019-10-28 22:36:11 +02:00
Arthur Iakab e12bd930c4 Backed out changeset 94a89e567444 (bug 1578745) for causing multiple devtools failures on browser_dbg-inline-preview.js. CLOSED TREE 2019-10-28 22:15:51 +02:00
Sorin Davidoi 22872132ba Bug 1580323 - test(browser_dbg-quick-open): Remove timeouts
Increase stability by replacing the arbitrary timeouts with waiting for the DOM.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 19:47:23 +00:00
David Walsh f69451b64a Bug 1590594 - Properly reflect skipping state within the debugger server r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D50297

--HG--
extra : moz-landing-system : lando
2019-10-28 16:12:22 +00:00
Jason Laster 4bc1df38fd Bug 1580165 - fix selected node for console; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D50126

--HG--
extra : moz-landing-system : lando
2019-10-28 17:19:35 +00:00
Nicolas Chevobbe d6786a8b07 Bug 1591330 - Remove LongStringClient. r=jdescottes.
The LongStringClient is removed and we replace its
usage with LongStringFront instead.
This require a few variable/function renaming, as
well as updating the mocks we use in node tests.

Switch usage to LongStringFront instead.

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

--HG--
rename : devtools/client/debugger/packages/devtools-reps/src/object-inspector/tests/__mocks__/long-string-client.js => devtools/client/debugger/packages/devtools-reps/src/object-inspector/tests/__mocks__/string-front.js
rename : devtools/client/debugger/packages/devtools-reps/src/object-inspector/tests/component/create-long-string-client.js => devtools/client/debugger/packages/devtools-reps/src/object-inspector/tests/component/create-long-string-front.js
extra : moz-landing-system : lando
2019-10-28 16:22:06 +00:00
Nicolas Chevobbe 8920070ecb Bug 1450977 - Remove old LongStringActor. r=ochameau.
We take this as an opportunity to revisit the cache mechanism
for longStrings in object/utils.js (searching through pool
children instead of maintaining a cache object).
This means we had to implement poolChildren in the ActorPool.

A test is removed as it tested this specific actor,
and we have tests for the new LongStringActor.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 16:33:33 +00:00
Itiel 6d5192d14e Bug 1588367 - Convert all relevant uses of float: right/left to logical properties on devtools/ r=pbro
Depends on D49087

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

--HG--
extra : moz-landing-system : lando
2019-10-28 18:32:29 +00:00
Gabriel Luong fb2769e50c Bug 1578745 - Introduce a preference to enable fission frame inspection in DevTools. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D50666

--HG--
extra : moz-landing-system : lando
2019-10-28 18:42:45 +00:00
Brian Hackett dd6371d439 Bug 1591108 - Don't prompt for connection when using ToolboxTask, r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D50751

--HG--
extra : moz-landing-system : lando
2019-10-28 16:51:15 +00:00
Ciure Andrei 26fcdda229 Backed out changeset 0a516296693b (bug 1590093) for causing browser_jsterm_selfxss.js to permafail CLOSED TREE 2019-10-28 17:15:50 +02:00
Ehsan Akhgari d0732b6e03 Bug 1591813 - Make nsICookieManager.getCookiesFromHost() return an Array<nsICookie>; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D50750

--HG--
extra : moz-landing-system : lando
2019-10-28 12:08:09 +00:00
Nicolas Chevobbe 297ff75ea8 Bug 1590093 - Lazy load console components. r=Honza.
We try to lazy load all the things we know we might
not need directly when opening the console.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 13:23:15 +00:00
Nicolas Chevobbe 2d01b6e914 Bug 1578138 - Retrieve cached messages before setting new messages event listeners. r=Honza.
This patch ensures we get the cached messages
before setting the event listeners so we don't
risk having duplicated messages (coming from both
cache and event).

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

--HG--
extra : moz-landing-system : lando
2019-10-28 13:08:19 +00:00
Mustafa 3edba5e606 Bug 1586880 - fix custom request header hight and scroll bug, r=fvsch
Differential Revision: https://phabricator.services.mozilla.com/D49290

--HG--
extra : moz-landing-system : lando
2019-10-28 11:47:23 +00:00
Julian Descottes 73f6c47923 Bug 1591407 - Remove unused devtools/shared/client/event-source.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D50601

--HG--
extra : moz-landing-system : lando
2019-10-28 06:59:21 +00:00
Julian Descottes 6261a77787 Bug 1590050 - Preserve markup view selection in iframes after reload r=rcaliman,gl
Depends on D49940

To support this feature we perform two main changes
- the node actor exposes a getAllSelectors method, and the inspector now stores all selectors rather than just one
- the node actor exposes a waitForFrameLoad method, and the walkerFront findNodeFront helper uses it to make sure frames are loaded before querying a selector

Also added a test

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

--HG--
extra : moz-landing-system : lando
2019-10-28 07:55:14 +00:00
Julian Descottes ffb4c71377 Bug 1590050 - Walker findNodeFront should use selectors relevant to its rootNode r=rcaliman
Depends on D49939

Small fix on the findNodeFront helper. The walker should be able to calculate its depth without relying on consumers to remove selectors from the array passed to findNodeFront.

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

--HG--
extra : moz-landing-system : lando
2019-10-27 15:53:07 +00:00
Julian Descottes 00444e4c1d Bug 1590050 - Move findNodeFront helper to walker front r=gl
Depends on D49938

This helper can be moved on the walker front and will be useful to find the selected node front after a page reload

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

--HG--
extra : moz-landing-system : lando
2019-10-25 10:08:43 +00:00
Julian Descottes 86ba4e8375 Bug 1590050 - Extract DevTools walker fronts & specs to dedicated files r=gl
Cleanup before adding more content to the walker front

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

--HG--
rename : devtools/shared/fronts/inspector.js => devtools/shared/fronts/walker.js
rename : devtools/shared/specs/inspector.js => devtools/shared/specs/walker.js
extra : moz-landing-system : lando
2019-10-25 10:08:31 +00:00
Nicolas Chevobbe e8a53e664a Bug 1591360 - Remove devtools/client/framework/sidebar.js. r=pbro.
It was only used by scratchpad which is removed
in Bug 1519103.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 12:39:40 +00:00
Nicolas Chevobbe d76b60f122 Bug 1519103 - Remove Scratchpad panel. r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D50583

--HG--
extra : moz-landing-system : lando
2019-10-27 09:05:58 +00:00
Cosmin Sabou a05e2f5d41 Bug 1529824 - Disable browser_aboutdebugging_serviceworker_fetch_flag.js on mac, win debug and linux 64 for frequent failures. r=egao
Differential Revision: https://phabricator.services.mozilla.com/D50748

--HG--
extra : moz-landing-system : lando
2019-10-27 20:39:59 +00:00
Itiel 4e05937e32 Bug 1591167 - Force LTR the CSS variables tooltips r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D50504

--HG--
extra : moz-landing-system : lando
2019-10-27 18:09:35 +00:00
Rob Wu 34c77beb98 Bug 1591102 - Let some SpecialPowers.pushPermissions callers use promises r=jdm
Some callers of SpecialPowers.pushPermissions wrapped the call in a
promise. That is not needed; directly use the returned promise instead.

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

--HG--
extra : moz-landing-system : lando
2019-10-27 15:28:41 +00:00
Brad Werth 67a5b39eb8 Bug 1561227 Part 8: Update expectations for existing tests. r=botond
The change to await snapshotWindow is something that should have been
done in Bug 1573254.

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

--HG--
extra : moz-landing-system : lando
2019-10-26 15:31:11 +00:00
Brad Werth 330bf2631f Bug 1561227 Part 7: Add a test of meta viewport resizing with full zoom. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D44504

--HG--
extra : moz-landing-system : lando
2019-10-25 21:05:50 +00:00
Brad Werth 8f0ce7b7bd Bug 1561227 Part 6: Rename an existing RDM zoom test in anticipation of adding related tests. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D44503

--HG--
rename : devtools/client/responsive/test/browser/browser_toggle_zoom.js => devtools/client/responsive/test/browser/browser_viewport_zoom_toggle.js
extra : moz-landing-system : lando
2019-10-25 21:05:52 +00:00
Brad Werth e36664a792 Bug 1561227 Part 5: Define a helper function for setting RDM zoom and use it in existing tests. r=botond
This helper function awaits the new custom event sent by the RDM pane
frame script when zooming is done, then waits for the reflow to be
complete also. After this is done, resolution and window and content
sizes all have their correct, final values.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 21:05:46 +00:00
Brad Werth 415f4698dc Bug 1561227 Part 4: Make RDM force the UI ZoomChild Actor to cache its zoom level. r=mconley,gl
The ZoomChild actor normally caches its full zoom level only when it is
changed, then emits a FullZoomChange event. That event causes problems
with Responsive Design Mode, which receives the event after other
similar events that carry the full zoom level of the RDM pane content.
The RDM UI pane itself always stays at 1.0 zoom. This change makes the
ZoomChild cache its initial fullZoom level as soon as possible, which
prevents the first RDM zoom change from sending the unwanted event.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 21:05:38 +00:00
Brad Werth 19a7c8c336 Bug 1561227 Part 3: Make RDM UI save and restore resolution when responding to a full zoom change. r=mtigley
This change makes the RDM content frame script listen to the new
PreFullZoomChange event, and treat that as a trigger to save the
existing resolution. The content window will send 2 resize events
as it adjusts to the new RDM pane size set by the front end. After
these events are received, the resolution is restored and a new
event is fired that indicates the work of zooming is complete.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 21:05:40 +00:00
Emilio Cobos Álvarez e444a94218 Bug 1589766 - Experiment with implementing zoom as a transform + transform-origin shorthand. r=xidorn
This is a gross hack, of course, but has the advantage of not breaking sites
that use both zoom and -moz-transform / -moz-transform-origin.

There should be no behavior change when the pref is off, of course, and the
webcompat team wanted to experiment with this.

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

--HG--
extra : moz-landing-system : lando
2019-10-26 14:17:28 +00:00
Brian Hackett 642472368d Bug 1580839 - Evaluate debugger expressions after connecting with the target, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D50639

--HG--
extra : moz-landing-system : lando
2019-10-26 11:58:57 +00:00
Brian Hackett e35cbe03a4 Bug 1591446 - Use right context when closing project file search, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D50620

--HG--
extra : moz-landing-system : lando
2019-10-26 11:57:28 +00:00
Brian Grinstead 9cd142917f Bug 1587142 - Remove XBL test in devtools/ r=gl
Differential Revision: https://phabricator.services.mozilla.com/D50655

--HG--
extra : moz-landing-system : lando
2019-10-25 21:53:33 +00:00
Ciure Andrei 706c89437b Backed out 8 changesets (bug 1561227) for causing browser_viewport_resizing_scrollbar.js to permafail CLOSED TREE
Backed out changeset aa00b1b62ea7 (bug 1561227)
Backed out changeset b22440a67078 (bug 1561227)
Backed out changeset 4776cec83ae8 (bug 1561227)
Backed out changeset ac88bbefb95f (bug 1561227)
Backed out changeset aef3cfa2f539 (bug 1561227)
Backed out changeset a3759e1a04e2 (bug 1561227)
Backed out changeset cfcf79794049 (bug 1561227)
Backed out changeset 97be65338edf (bug 1561227)

--HG--
rename : devtools/client/responsive/test/browser/browser_viewport_zoom_toggle.js => devtools/client/responsive/test/browser/browser_toggle_zoom.js
2019-10-26 00:00:48 +03:00
Brad Werth 3218752020 Bug 1561227 Part 8: Update expectations for existing tests. r=botond
The change to await snapshotWindow is something that should have been
done in Bug 1573254.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 19:33:55 +00:00
Brad Werth e77a903256 Bug 1561227 Part 7: Add a test of meta viewport resizing with full zoom. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D44504

--HG--
extra : moz-landing-system : lando
2019-10-24 23:43:00 +00:00
Brad Werth 3e2953244f Bug 1561227 Part 6: Rename an existing RDM zoom test in anticipation of adding related tests. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D44503

--HG--
rename : devtools/client/responsive/test/browser/browser_toggle_zoom.js => devtools/client/responsive/test/browser/browser_viewport_zoom_toggle.js
extra : moz-landing-system : lando
2019-10-24 23:43:02 +00:00
Brad Werth f1099b15a2 Bug 1561227 Part 5: Define a helper function for setting RDM zoom and use it in existing tests. r=botond
This helper function awaits the new custom event sent by the RDM pane
frame script when zooming is done, then waits for the reflow to be
complete also. After this is done, resolution and window and content
sizes all have their correct, final values.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 23:42:58 +00:00
Brad Werth 0bfdbb753a Bug 1561227 Part 4: Make RDM force the UI ZoomChild Actor to cache its zoom level. r=mconley,gl
The ZoomChild actor normally caches its full zoom level only when it is
changed, then emits a FullZoomChange event. That event causes problems
with Responsive Design Mode, which receives the event after other
similar events that carry the full zoom level of the RDM pane content.
The RDM UI pane itself always stays at 1.0 zoom. This change makes the
ZoomChild cache its initial fullZoom level as soon as possible, which
prevents the first RDM zoom change from sending the unwanted event.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 23:42:56 +00:00
Brad Werth ee1bf29b7a Bug 1561227 Part 3: Make RDM UI save and restore resolution when responding to a full zoom change. r=mtigley
This change makes the RDM content frame script listen to the new
PreFullZoomChange event, and treat that as a trigger to save the
existing resolution. The content window will send 2 resize events
as it adjusts to the new RDM pane size set by the front end. After
these events are received, the resolution is restored and a new
event is fired that indicates the work of zooming is complete.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 23:42:48 +00:00
Gabriel Luong 48625f2f06 Bug 1550804 - Add color scheme simulation to the inspector. r=pbro
This adds a color scheme simulation toggle button in the rules view,
which will toggle between 4 different states: default, dark, light,
and no-preference.

This feature is currently hidden away under a preference:
devtools.inspector.color-scheme-simulation.enabled

The final UI/UX still needs to be figured out, however, this initial step is
to land the ability to prototype this feature.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 19:28:02 +00:00