Commit Graph
53 Commits
Author SHA1 Message Date
Mark Banner 91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Alexandre Poirot 782c6e1335 Bug 1825511 - [devtools] Log JavaScript traces to stdout with hyperlinks and handle them in firefox startup. r=nchevobbe,devtools-reviewers
The JavaScript tracer will log special format of links, including a precise location,
by appending `@${line}:${column}` to each frame's source's URL.
This URL pattern is later interpreted by DevTools command line handler in order
to automatically open the source's location in the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D174098
2023-05-12 11:33:27 +00:00
Alexandre Poirot 8615005586 Bug 1815845 - [devtools] Simplify code related to opening sources in the debugger. r=devtools-reviewers,bomsy
Most of the API exposed on Debugger panel object were actually related to view-source code.
The code related to getOriginalLocation could be greatly factorized with existing helpers
within the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D169327
2023-02-16 13:01:47 +00:00
Julian Descottes cd5ad4ca15 Bug 1808870 - [devtools] Remove the stylesheet actor r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Depends on D166144

Differential Revision: https://phabricator.services.mozilla.com/D166146
2023-01-17 08:06:15 +00:00
Julian Descottes 4af3e17578 Bug 1748112 - [devtools] Do not pass lineNumber = 0 to viewSource r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D165877
2023-01-05 09:25:58 +00:00
Alexandre Poirot 2835586738 Bug 1801695 - [devtools] Rename SourceMapService to SourceMapLoader. r=bomsy
Also rename a few symbols to better identify SourceMapURLService.

Differential Revision: https://phabricator.services.mozilla.com/D162969
2022-12-12 13:15:53 +00:00
Hubert Boma Manilla d65bf08f36 Bug 1785277 - [devtools] Add sourceActorId to location r=ochameau
This patch tries to cover a few things :-

1) The `location` object now also maintains an optional `sourceActorId` property

2) `selectSource` now takes an optional `sourceActor` argument which is used to
   augument the `location` object and passed to `selectLocation` then onto
   `loadSourceText` function to load the specific source text.

3) A new selector `getFirstSourceActorForGeneratedSource` to select the source actor to load the
source text.

4) `LoadSourceText`now always track the selected source actor (which should load the source text)
   each time a location is selected.

Differential Revision: https://phabricator.services.mozilla.com/D155952
2022-10-23 15:49:06 +00:00
Marian Laza 1f955c71b6 Backed out changeset b7cdb0cf84b6 (bug 1785277) for causing devtools failures on browser_dbg-quick-open.js. CLOSED TREE 2022-10-19 10:43:20 +03:00
Hubert Boma Manilla 50c3cd724c Bug 1785277 - [devtools] Add sourceActorId to location r=ochameau
This patch tries to cover a few things :-

1) The `location` object now also maintains an optional `sourceActorId` property

2) `selectSource` now takes an optional `sourceActor` argument which is used to
   augument the `location` object and passed to `selectLocation` then onto
   `loadSourceText` function to load the specific source text.

3) A new selector `getFirstSourceActorForGeneratedSource` to select the source actor to load the
source text.

4) `LoadSourceText`now always track the selected source actor (which should load the source text)
   each time a location is selected.

Differential Revision: https://phabricator.services.mozilla.com/D155952
2022-10-18 06:58:27 +00:00
Nicolas Chevobbe 02d12b9b33 Bug 1766602 - [devtools] Speedup jump to styleeditor from inspector. r=jdescottes.
In `viewSourceInStyleEditor`, we used to first load the styleeditor, and then
select the stylesheet and show the panel. This mean that when clicking on a location
from the rule view, there would be some delays before we show any feedback to the user.
Since the load promise for the panel only settles once we watched for all existing
stylesheets and loaded their content for each of them, it could take a while in
cases where we have lots of stylesheets, like in the BrowserToolbox.

So here we modify `viewSourceInStyleEditor` to directly select the styleeditor and
passing it a stylesheet that can be added right away, in case the panel wasn't
loaded yet, without waiting for the stylesheets to be watched.

We take this as an opportunity add a test when `viewSourceInStyleEditor` is called
with a stylesheet not used on the page, and check that it does open a view-source tab.

Differential Revision: https://phabricator.services.mozilla.com/D146540
2022-05-20 06:24:37 +00:00
Hubert Boma Manilla ceffb867aa Bug 1765817 - [devtools] Add getLocationSource selector to fetch source for a location r=nchevobbe
This cleanup helps support the subsequent work for breakpoints per url.

Depends on D146426

Differential Revision: https://phabricator.services.mozilla.com/D146427
2022-05-17 11:10:21 +00:00
Daisuke Akatsuka 0bddb3840d Bug 1664941: Connect style actor and stylesheet watcher. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90651
2020-10-29 06:26:20 +00:00
Logan Smyth d0d79dd650 Bug 1643180 - Part 7: Separate url-only file handling from url/line/column handling. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D78388
2020-06-05 22:20:57 +00:00
Logan Smyth 273f0a9fa7 Bug 1643180 - Part 5: Centralize viewSourceInStyleEditor's actor ID and sourcemap processing. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D78384
2020-06-05 22:19:46 +00:00
Logan Smyth 7e6da261ec Bug 1643180 - Part 4: Centralize viewSourceInDebugger's source ID and sourcemap processing. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D78383
2020-06-05 22:19:23 +00:00
Nicolas Chevobbe ce25c3f455 Bug 1519103 - Remove Scratchpad panel. r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D50583
2019-10-27 09:05:58 +00:00
chujun c6fa068ff8 Bug 1557138 Clicking logpoint location in console opens the logpoint editing panel in debugger r=nchevobbe,jlast
I pass `frame.origin` in `viewSourceInDebugger`. When `reason` is logpoint, run `openConditionalPanel`.

Differential Revision: https://phabricator.services.mozilla.com/D35624
2019-08-14 16:10:50 +00:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Brian Hackett a3b3fd2d4f Bug 1543753 - Don't view sources that can't be loaded in the debugger, r=loganfsmyth. 2019-05-15 07:52:42 -10:00
Oana Pop Rus 50e01669f5 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-28 19:41:57 +02:00
Brian Hackett cc5c402b0d Bug 1538397 - Don't use source actor for event listeners with mapped sources, r=ochameau. 2019-03-28 06:50:41 -06:00
Mellina Yonashiro b253301825 Bug 1532295 - Webconsole's onViewSourceInDebugger doesn't pass column number to debugger panel when opening a source. .
Pass on column from props.onViewSourceInDebugger (///devtools/client/shared/components/reps/reps.js:6844//) to
//devtools/client/webconsole/webconsole-wrapper.js:267// as **frame.column**

Differential Revision: https://phabricator.services.mozilla.com/D22372
2019-03-28 13:52:28 +00:00
Logan Smyth eb8be09703 Bug 1534342 - Fix O(n^2) perf issues in getSymbols. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D22997
2019-03-11 22:34:39 +00:00
Brian Hackett 4883790be1 Bug 1531826 Part 1 - View event handler sources by ID, r=ochameau. 2019-03-04 05:45:19 -10:00
Aaditya Arora a1c4e7f1bb Bug 1530612 - Pass CSS warning column through viewSouceInStyleEditor; r=nchevobbe.
Pass CSS warning column location through viewSourceInStyleEditor
so clicking on CSS warnings in console jumps to the right location in style editor

Differential Revision: https://phabricator.services.mozilla.com/D21682
2019-03-01 16:43:02 +00:00
Brian Hackett 5abbe24fb5 Bug 1447244 Part 8 - Generate source actors for internal source IDs on demand, r=lsmyth. 2019-02-21 09:42:14 -10:00
Brian Hackett fa5e9ef447 Bug 1447244 Part 7 - Devtools client changes for script source IDs, r=lsmyth. 2019-01-16 12:01:33 -10:00
Brian Hackett 6f6c9e6d26 Bug 1523421 - Always view source map original URLs in the debugger, r=jlast. 2019-01-28 12:18:56 -10:00
David Walsh 6e92c3796b Bug 1314057 - Remove new-debugger-frontend usage from webconsole tests r=davidwalsh 2018-09-14 10:47:49 -05:00
Narcis Beleuzu cbe7b0b012 Backed out 5 changesets (bug 1314057) for devtools failures on browser_browser_toolbox_debugger.js . CLOSED TREE
Backed out changeset 9bb3fd62313e (bug 1314057)
Backed out changeset cdb30006eb31 (bug 1314057)
Backed out changeset 7691cbfeac6a (bug 1314057)
Backed out changeset 1b274560201f (bug 1314057)
Backed out changeset 059a19d11454 (bug 1314057)
2018-09-17 07:29:31 +03:00
David Walsh 211173ae43 Bug 1314057 - Remove new-debugger-frontend usage from webconsole tests. r=jlast 2018-09-14 10:47:49 -05:00
Kris Maglione f2dba891af Bug 1484496: Part 5d - Convert devtools/ nsISimpleEnumerator users to use JS iteration. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D3732
2018-08-18 19:28:37 -07:00
Belén Albeza 54936cb5e6 Bug 1476235 - Add telemetry for opening a custom element definition in the debugger. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D2836
2018-08-08 15:30:17 +00:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Julian Descottes fd6c4d35a8 Bug 1451014 - Remove iterator to list toolboxes on gDevTools;r=ochameau
MozReview-Commit-ID: 5ZaePP4p5Eb
2018-04-06 12:41:43 +02:00
Alexandre Poirot 22e91d7acd 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
Brendan Dahl 5ef80eaf60 Bug 1418403 - Remove viewing source in a standalone window. r=jryans
Along with removing the view source standalone windows and prefs this patch:
1) Re-structures several of the view source tests that were only testing the old
standalone windows to now test view source in tab.
2) Adds support viewSourceUtils.viewSource() to open a browser window when there
aren't any open (for browser toolbox view source).
3) Cleans up some of the API for viewSourceUtils and removes the old deprecated
ways of calling it.

MozReview-Commit-ID: DI6sgZwbCf
2018-02-05 13:33:58 -08:00
Julian Descottes 99bcf6d7c1 Bug 1354672 - update debugger frontend 04/18/17;r=jdescottes
MozReview-Commit-ID: HI2NymoCLYR
2017-04-20 14:49:44 +02:00
Carsten "Tomcat" Book 146c23b5e9 Backed out changeset 26825d7a225d (bug 1354672) on developers request 2017-04-20 09:28:11 +02:00
Julian Descottes 569f1d9f93 Bug 1354672 - update debugger frontend 04/18/17;r=jdescottes
MozReview-Commit-ID: HI2NymoCLYR
2017-04-18 10:25:19 +02:00
James Long 3c46eb7990 Bug 1313921 - Don't select the debugger if it can't open a source. r=bgrins 2016-11-29 14:16:00 -05:00
James Long cc461e59df Bug 1315289 - Use correct API for opening a source in the debugger r=me 2016-11-07 13:10:03 -05:00
James Long ae07ee3f14 Bug 1313197 - open source in new tab if it doesn't exist in the debugger r=jlast 2016-11-01 11:22:14 -04:00
James Long 85910296e2 Bug 1303045 - pass the line to highlight in debugger in viewSourceInDebugger r=me 2016-09-16 10:59:35 -04:00
James Long a6cb39d188 Bug 1288511 - land new debugger frontend behind a pref r=jsantell 2016-08-05 09:27:41 -04:00
Philipp Kewisch 8b42287804 Bug 1279784 - Remove hardcoded navigator:browser in devtools. r=jryans 2016-06-28 11:03:11 +02:00
Sami Jaktholm bb5811c20d Bug 1230990 - Wait for the source text to finish loading before signaling that source has been shown in the debugger. r=ochameau
Currently viewSourceInDebugger() only waits for a source to be shown if it is
not the selected one. If the requested source is selected by default, it might
already be selected when the isLoading check is made. However, the actual
source text might still be loading since it is loaded asynchronously.

In this case the method does not wait for the source to be shown meaning the
method resolves before the source is ready in the debugger. This causes
browser_toolbox_view_source_01.js to fail intermittently with wrong
line number since it looks at the focused line BEFORE the source text has
loaded and the correct line is selected.

This changeset modifies the behavior of viewSourceInDebugger() to also wait for
source shown event if the source is already selected but still loading.

MozReview-Commit-ID: JvxjJ5Yt19a
2016-05-21 10:50:51 +03:00
Tom Tromey 8f1292bce5 Bug 1270994 - Fix ESLint errors in devtools/client/shared/*.js; r=jryans
MozReview-Commit-ID: 1od43gBnUq1
2016-05-19 08:35:45 -06:00
Tom Tromey 86974842a1 Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ
2016-05-17 13:07:55 -06:00
J. Ryan Stinnett 530b903fcf 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