Commit Graph
16 Commits
Author SHA1 Message Date
Christy Chen 3e5de8a135 [Loc] Migrate components to Localization V2
Bug: 1136655
Change-Id: I69678b0f06027cd0b4b3715d959a41fa592a60bb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2585954
Commit-Queue: Christy Chen <chrche@microsoft.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2020-12-11 19:25:57 +00:00
Tim van der Lippe 3c7eedcd60 Remove all definitions of usesObjectNotation
This was a temporary method, used during the migration to use
objects in dispatcher callbacks. Since all dispatchers now receive
the event as an object, we can remove these temporary methods.

R=aerotwist@chromium.org

Fixed: 1138492
Bug: 1011811
Change-Id: Ib7fbfae567ebc9b2be0a5d760458e5b0c7edc12e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2484723
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-10-20 10:59:51 +00:00
Andres Olivares b055d47b4a [ts] Typecheck components/TargetDetachedDialog.js with TypeScript
Bug: chromium:1011811
Change-Id: Iba8aa2cebd098120299b52b490556d8a6abb1999
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2434995
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-10-17 17:43:49 +00:00
Simon Zünd 700b12b147 Migrate 'front_end/components' to 'devtools_entrypoint'
R=aerotwist@chromium.org

Bug: chromium:1101738
Change-Id: Ieb5134f468e0679d5e559287469998c99a2d9818
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2317311
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-07-24 14:51:53 +00:00
Patrick Brosset e65aaac861 Enable the no-return-assign ESLint rule
This rule disallows assigning a value in a return statement.
It also works in one-liner arrow functions.

For instance, a => a = 2 will trigger a warning.
This is to avoid cases where you actually meant to compare a to 2, not
assign the value 2 (maybe you wanted to return a boolean in a filter
callback).
These sorts of issues can easily pass review and cause weird problems
that are hard to track down later.

The rule is enabled in this CL, and all warnings are fixed with this CL.

More info about the rule: https://eslint.org/docs/rules/no-return-assign

Bug: 1093379
Change-Id: I38b98ea59ecaedc83a7f69073b17980808f9a3bf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2242761
Reviewed-by: Patrick Brosset <patrick.brosset@microsoft.com>
Reviewed-by: Jose Leal <joselea@microsoft.com>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Patrick Brosset <patrick.brosset@microsoft.com>
2020-06-22 08:34:42 +00:00
Yury Semikhatsky 8e61a29bd9 Auto resume all targets reloaded after crash
Since DevTools front-end is auto pausing all targets on start
it is responsible for resuming them. One of the scenarios
when a target has to be resumed is when it's reloaded after
crash. This is the case e.g. for service workers whose life
cycle looks like this:
1) Target.targetCreated (a new version of sw is created and started)
2) Inspector.targetCrashed (when the worker is stopped)
3) Inspector.targetReloadedAfterCrash (when the sw restarts)
4) Target.targetDestroyed (when the version of sw is stopped and replaced by a new one)
Events 2 and 3 are optional and may repeat multiple times if the
worker is stopped/restarted.

In such cases we don't want to show the crash dialog but are still
obliged to resume the target.

Bug: 1085150
Change-Id: Idb36b50bbeb09632cd8f1480d2f36b24387b7f2e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2213550
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Yury Semikhatsky <yurys@chromium.org>
2020-05-25 23:55:50 +00:00
Tim van der Lippe 42fa3ce18f Remove unused global references from sdk-legacy.js
R=aerotwist@chromium.org

Bug: 1064958
Change-Id: Ia4b1a337ca753fb76ed6c780614dfe45b4c32c83
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2123485
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-03-27 14:57:22 +00:00
Tim van der Lippe 27fb9424a6 Migrate components/ to import cross-module
Bug: 1006759
Change-Id: Ie8da4f9a25e5aa6d0068dddc23b42e7aa908ec6d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2017508
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-01-24 10:20:38 +00:00
Tim van der Lippe 5d1c0dd1f6 Migrate components/ to ESM internally
Bug: 1006759
Change-Id: I1b7ad16f09ef1c7fe3a404f073953baf739ec8e1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1991513
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-01-10 12:37:57 +00:00
Tim van der Lippe 20b29c2646 Enforce newlines at end of files
Trying to upload a CL with missing newlines at the end of files fails with the following warning:

These files should end in one (and only one) newline character:

Update the ESLint config to let the linter fix these errors.

Change-Id: Ia858b5864a1dc43144e0c6d81dedbf46376c2b8d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1897679
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
2019-11-04 15:02:44 +00:00
Tim van der Lippe 6db3920903 Migrate components/ to ESM
Bug: 1006759
Change-Id: Ifa7e245a9bbdfc02a5885efb6907e488afdca6e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1847912
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#704189}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6a275c8489110bacc08ec22496de42c01159e1a4
2019-10-09 14:50:54 +00:00
Tim van der Lippe 1d6e57a0e3 Always add braces to single-line if-statements
The Chromium/Google style guides does not enforce curly braces for
single-line if-statements, but does strongly recommend doing so. Adding
braces will improve code readability, by visually separating code
blocks. This will also prevent issues where accidental additions are
pushed to the "else"-clause instead of in the if-block.

This CL also updates the presubmit `eslint` to run the fix with the
correct configuration. It will now fix all issues it can fix.

Change-Id: I4b616f21a99393f168dec743c0bcbdc7f5db04a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1821526
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Jeff Fisher <jeffish@microsoft.com>
Cr-Original-Commit-Position: refs/heads/master@{#701070}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7e0bdbe2d7f9fc2386bfaefda3cc29c66ccc18f9
2019-09-30 11:55:34 +00:00
Joey Arhar a6abfa2519 [DevTools] Do not debug worker shadow pages
This change breaks pausing on start when inspecting a shared worker that
gets reloaded. More detail here: crbug.com/987024

Bug: 882467
Change-Id: I074b547996fd7f11d835fcebfdae32a4f7063a9f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636110
Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#685152}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5dc1be4c957563e073c462b39a934f23d02461d0
2019-08-08 12:23:00 +00:00
Mandy Chen 8d86b6fe0d DevTools: Localize strings that are currently not localized
Localize strings that show up in the debugger pane and remote debugging
window.

Before vs after (they should look the same):
https://imgur.com/a/qkGngVT

Bug: 941561
Change-Id: Id4530b016812c15502fcdb3f71d454038edc2f34
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1656708
Reviewed-by: Alexei Filippov <alph@chromium.org>
Commit-Queue: Mandy Chen <mandy.chen@microsoft.com>
Cr-Original-Commit-Position: refs/heads/master@{#668982}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: eebd0a695881c7da3f87194bd9f105e41ec5bdc3
2019-06-13 22:25:41 +00:00
Ingvar Stepanyan fde1d88b3d Restore use of Inspector capability
There was a regression since http://crrev.com/ffe776a where Inspector capability was introduced.

Now devtools frontend expects Inspector domain to be present on any targets and crashes if it's missing.

This commit restores usage of capability, adding it to targets that support it to best of my knowledge.

R=dgozman@chromium.org, lushnikov@chromium.org

Change-Id: I6eab098ef12d5212c65cc65f0d49f619aaf4edd3
Reviewed-on: https://chromium-review.googlesource.com/1042709
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#558447}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e60fb1f327ca3a14bdc424984c17ddca99857f32
2018-05-14 20:34:02 +00:00
Blink Reformat 4c46d0969f The Great Blink mv for source files, part 2.
Move and rename files.

NOAUTOREVERT=true
NOPRESUBMIT=true
NOTREECHECKS=true
Bug: 768828
TBR=darin@chromium.org
NOTRY=true

Change-Id: I66d3b155808bc5bdbf237b80208e1e552bcf7f28
Reviewed-on: https://chromium-review.googlesource.com/1001153
Reviewed-by: Blink Reformat <blink-reformat@chromium.org>
Commit-Queue: Blink Reformat <blink-reformat@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#549061}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0aee4434a4dba42a42abaea9bfbc0cd196a63bc1
2018-04-07 15:32:37 +00:00