Commit Graph
95 Commits
Author SHA1 Message Date
Peter Marshall 266ab2ecb8 [l10n] Update another round of descriptions
Bug: 1163928
Change-Id: Ieb30026912c17f7f366c04be91a371b07e634ef2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2697610
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Auto-Submit: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-02-17 07:56:09 +00:00
Vidal Guillermo Diazleal Ortega 83edb474b3 [Loc] Migrate Sources to Localization V2
- Migrate sources to use Localization V2 APIs.
- Removed sources grdps

Tested with en-XL.json
https://imgur.com/a/vDrfTAv

Bug: 1136655
Change-Id: I01d4fcdc3f115e9edb3fae933c7d5c6b9ffb77c0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2692743
Commit-Queue: Vidal Diazleal <vidorteg@microsoft.com>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
2021-02-16 19:14:49 +00:00
Andres Olivares 4c49efae5e [module.json extensions] @Sources.NavigatorView
Bug: 1134103
Change-Id: Id094b082a0e03d609dda49775f284a21a85fa9f5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2691509
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-02-12 23:24:30 +00:00
Andres Olivares 55a674e37b [module.json extensions] @Elements.MarkerDecorator
Bug: 1134103
Change-Id: I22853ec55c30125951a02a87983c58036a48af15
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2688204
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-02-12 20:58:09 +00:00
Andres Olivares 63503c98a4 [module.json extensions] Add support for @UI.ContextFlavorListener
Bug: 1134103
Change-Id: Iaecb61d6784077c6b1579b0ed1daecef7bc693cd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2686287
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2021-02-10 20:37:59 +00:00
Jan Scheffler c607ddc675 [JSDOC2TS]: Migrate browser_debugger
Bug: chromium:1158760
Change-Id: I560080dd52581c10bc19b17736e9e378533f0042
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2686653
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-02-10 20:22:49 +00:00
Andres Olivares 3953d2d184 [module.json extensions] @UI.ContextMenu.Provider pt. 1
Bug: 1134103
Change-Id: Icd78d701ed7f5e2b64c5f99dc732391bdda427f2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2678203
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-02-08 14:00:04 +00:00
Jack Franklin 49a9481a74 Lint color usage in background and border-* properties.
The list of CSS properties we check for colors wasn't thorough and
didn't include `border-left/right/top/bottom` or `background` on its
own. This CL fixes that and disables the rule for any current
violations.

Bug: 1152736
Change-Id: Ic732d653fdfab0462a04dc891bcece1f44e5d471
No-Presubmit: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2676157
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
2021-02-05 15:39:39 +00:00
Tim van der Lippe 5c423509db Remove i18n/module.json
R=andoli@chromium.org

Bug: 1127902
Change-Id: I700e6d5fc8941ef54d4af10af01989ddf62165cc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2676144
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
2021-02-05 10:48:08 +00:00
Andres Olivares f5d9ca2065 [module.json extensions] Correct view command prompt
The command prompt for showing the sources.eventListenerBreakpoints
view was mistakenly set as 'Show Elements' when it should have been
'Show Event Listener Breakpoints'.

Bug: 1134103
Change-Id: I3650e2cd1d609da305f9ae2a159970d4f995ae8e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2668480
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-02-03 14:38:56 +00:00
Jack Franklin 8064d3ba7a Lint against non-theme-color variables
This CL turns on the use_theme_colors stylelint rule which enforces that
any colors use variables defined in our codebase.

There are many, many violations, unsurprisingly (about 1500), so for now
I have disabled every single violation. The goal of the dark mode
migration will be in part to remove all violations of this rule.

Additionally, new code going forwards should adhere to the rule and not
add the comment to disable the warning.

Bug: 1152736
Change-Id: I51372724ea51485daef3d4f75b7d3f60a7c8016f
No-Presubmit: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2671323
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2021-02-03 11:02:09 +00:00
Christy Chen 7a2ead3d36 [Loc] Migrate browser_debugger to localization V2
Migrate brwoser_debugger
Tested with en-XL: https://imgur.com/a/61y0spd


Bug: 1136655
Change-Id: Ie9a831313a8d47a3b370b2248948a65881ab6685
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2667107
Commit-Queue: Christy Chen <chrche@microsoft.com>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
2021-02-02 13:37:58 +00:00
Andres Olivares f138902e8f Change commandPrompt type to LocalizedString in ViewRegistration
Bug: 1169065, 1134103
Change-Id: If647a6f51309f87f3da8a895c96db463494554d3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2642909
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-25 18:00:55 +00:00
Andres Olivares 83e37a7ccd [module.json extensions] migrate remaining views in browser_debuger
3 views where remaining from the browser_debugger migration because they
depend on sources. Because duplication of view ids would occur if such
views were migrated into sources-meta.ts they are kept in
browser_debugger-meta.ts.

Bug: 1134103
Change-Id: I2b1a353043a3cb9a880882dd429f55ad5bf567ab
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2631964
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-21 17:58:19 +00:00
Andres Olivares 4ce36a5a37 [module.json extensions] Wrap localizable fields in anonymous functions
To be able to localize extensions' strings at declaration using the i18n
v2 model in meta files, we opt to wrap such fields in callbacks as the
i18n API cannot be invoked directly at declaration because it hasn't
been configured by the time the meta files are loaded.

Bug: 1134103
Change-Id: I432f3854f724b8c5b94993ce3ddd469f657c1014
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2635820
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-18 19:04:06 +00:00
Tim van der Lippe 05149e9772 Remove ls from legacy-defs
This adds all missing imports for `ls` to all files. After this change,
all usages of `ls` will now properly be resolved to a LocalizedString
rather than a normal string.

R=jacktfranklin@chromium.org

No-Presubmit: True
Change-Id: Icf6d8c3b8bea1f9e66f4b6b58e4ae4c7f99e6f9c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2629554
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-01-15 12:53:50 +00:00
Tim van der Lippe bcd6b5c3ff Inline and remove isEnterKey
R=szuend@chromium.org

Bug: 1050549
Change-Id: I7242fa3b0c2a69d2e4b4dd7c642ba09a5f4dc9bf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2624713
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-13 13:02:42 +00:00
Andres Olivares 2747dbfdaa [module.json extensions] Add 'localizableTitle' field to ViewRegistration interface
Views that contain a defined location can be shown using the Command
Menu. The command added for this purpose follows the shape 'Show 
<ViewTitle>'. Because these commands are localized, a localizable 
version of each view's title should also be provided. 

This CL adds the field 'localizableTitle' for this purpose while keeping
the original 'title' field with the localized string, since it is still
needed to provide the string value to the GRDP system.

Finally, commands added to show migrated views are updated to follow the
same shape as they do for the legacy ones.

Bug: 1134103
Change-Id: I47aedf2ca4c35ed38c0b9be14969946e582afc7d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2590524
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-12-16 16:15:45 +00:00
Tim van der Lippe d946df0c9c Add missing return types to function/method definitions
We will be turning on an ESLint rule to enforce the specification
of a return type in a follow-up CL.

R=jacktfranklin@chromium.org

Bug: 1057042
Change-Id: I56f67cf3fdafa0a867e8837f4d30d52ed1595351
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2587740
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-12-14 15:01:46 +00:00
Mathias Bynens a29c01ddf5 [Dark Mode]: migrate browser_debugger/domBreakpointsSidebarPane.css
Bug: chromium:1152736
Change-Id: I65be158488188cb2f6bd4ce30d387ba426886e65
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2571113
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2020-12-03 12:27:23 +00:00
Andres Olivares 7b9af18e2c Add ViewRegistration.ts
Refactor ViewManager.js typedefs and methods introduced for
migrating to a new JavaScript-based extension registration,
into a dedicated TypeScript file.

Bug: 1134103
Change-Id: If0cd5d505e204576285e610a32f403489c92a89f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2567981
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-12-02 17:02:07 +00:00
Tim van der Lippe e4d64e7ae0 Remove unrestricted from comments that include other annotations
For all comments that contained both the unrestricted annotation
and any other potential annotation, remove only the unrestricted
annotation.

R=szuend@chromium.org

No-Presubmit: True
Bug: 1011811
Change-Id: I27dd67f657cdb1a9233d768eea81cabe2591f5f7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2569759
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2020-12-02 15:31:52 +00:00
Tim van der Lippe 08ecb1751c [module.json extensions] browser_debugger views
R=andoli@chromium.org

Bug: 1134103
Change-Id: I6751bbf874b4e42b4650398d8d5c121e748fed6e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2565573
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-12-01 13:20:55 +00:00
Michael Liao 97404598b1 [Sources- Accessibility]: Fix keyboard navigation for breakpoint sidebar
Issue:
- breakpoints are not keyboard accessible in the sources sidebar pane

Changes:
- automatically selects the first breakpoint so that the breakpoint list is enter tabbable
- change DOM breakpoints to match focus patterns as JS and XHR breakpoints
- fix indexing for JS breakpoints when toggling on/off

GIFs:

Broken keyboard nav: https://imgur.com/EzmZaLu
Fixed keyboard nav: https://imgur.com/AmT8q2j

Broken breakpoint toggle focus: https://imgur.com/nhJH65W
Fixed breakpoint toggle focus: https://imgur.com/i4DNaHO

Bug: 1147743
Change-Id: I6351b8e8b3a4f395c88c61cfe135d97423bea33d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2531637
Commit-Queue: Michael Liao <michael.liao@microsoft.com>
Reviewed-by: Jack Lynch <jalyn@microsoft.com>
Reviewed-by: Songtao Xia <soxia@microsoft.com>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2020-11-30 18:28:31 +00:00
Sigurd Schneider 2e6a44e9d2 Remove DebugBreak twin definition mirroring protocol inlined enum
Bug: chromium:1153099, chromium:1142804
Change-Id: Ie5725eeb042a1a4f35b724594ec8fcd91aa8a8d2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2562339
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Alfonso Castaño <alcastano@google.com>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2020-11-26 14:53:23 +00:00
Tim van der Lippe 7dcef88d8b Remove skip_compilation from module.json files
R=aerotwist@chromium.org

Bug: 1011811
Change-Id: I4c4fd280adb4f5f7b327239d08d80b2cb98b203b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2560248
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-11-25 13:19:08 +00:00
Alfonso Castaño 13dcbd22d4 Breakpoint on Trusted Type violation (Devtools)
This CL introduces a categorized sidebar pane to set breakpoints on Trusted Type violations.

DISABLE_THIRD_PARTY_CHECK=protocol change
https://docs.google.com/document/d/1rlRtq_Ai0leS9sqlRvoOL5RNc1BR6Q1yAVvLLJFasMA/
Screenshot: https://i.imgur.com/8Aythwz.png
Bug: chromium:1142804
Change-Id: I3e14e35165f1b157da922f534be52a10df9178ab
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2517571
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Alfonso Castaño <alcastano@google.com>
2020-11-19 11:55:14 +00:00
Alfonso Castaño 6729bed0d4 Introduce abstract class for categorized breakpoints
This CL introduces a new abstract class CategorizedBreakpointsSidebarPane.
For the moment it is only used in EventListener but in follow-up CL a new child class will be introduced.

DISABLE_THIRD_PARTY_CHECK=protocol change
Follow-up CL: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2517571
Bug: chromium:1142804
Change-Id: I88b984cf08bb3f1ae758ef2efd3463814e70aedb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2529160
Commit-Queue: Alfonso Castaño <alcastano@google.com>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
2020-11-13 13:37:45 +00:00
Tim van der Lippe 8af45cda3d Use TypeScript-authored files in browser_debugger/
R=aerotwist@chromium.org

Bug: 1011811
Change-Id: I142d23f4cc04c88bef81b9cdb6dd13d26db2f9a9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2520820
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-11-05 13:36:01 +00:00
Christy Chen 2e411e2f84 [Loc] Migrate coverage to Loc V2
- Migrate coverage panel to use LocV2 apis.
- Removed unused grdps

Tested with en-XL.json
https://imgur.com/a/61yoUNo

Bug: 1136655
Change-Id: Ie5de60d4e62a1496f9642d8eeed0e326727f17d3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2504408
Commit-Queue: Christy Chen <chrche@microsoft.com>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Vidal Diazleal <vidorteg@microsoft.com>
2020-11-03 17:06:17 +00:00
Jack Franklin 71519f8efb Introduce enableLegacyPatching flag for CSS patching
As part of the dark mode migration we are adding
`enableLegacyPatching:true` to all call sites of `appendStyle` (and
related methods). If a user passes `false` for that flag, no CSS colour
patching will occur.

This CL is therefore a no-op from a user's perspective as we pass `true`
on every call to maintain existing behaviour, but once we start
migrating we will turn the option to `false`. Long term, once all code
is migrated and the old patching is removed, we will remove this flag
entirely once again.

Bug: 1122511
Change-Id: I76b818e83b7d5ee0175e1548759373f53481e0ab
No-Presubmit: True
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2516345
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-11-03 14:11:46 +00:00
Alex Rudenko a6d022c44c Enable TypeScript for XHRBreakpointsSidebarPane.js
Bug: 1011811
Change-Id: I95568c8a47412254d0c588ef5df210dbea2ac2fe
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2494802
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2020-10-23 09:38:02 +00:00
Yang Guo ef36cec5b9 Apply governance change
DISABLE_THIRD_PARTY_CHECK=no code changes
R=bmeurer@chromium.org

Change-Id: I2477c36f5ef2494ccae3efae3f1aee942f365fec
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2489420
Auto-Submit: Yang Guo <yangguo@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
2020-10-21 07:54:15 +00:00
Tim van der Lippe 46e1bcace9 Remove pre_generates_legacy from module.json files
This was a temporary flag used during the build_release_applications
to GN migration.

R=aerotwist@chromium.org

Bug: 1131500
Change-Id: I8a772bcc4bee31dbd3270bf7ef62d8c97941024a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2484716
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-10-19 16:12:09 +00:00
Tim van der Lippe ead1fa43d0 Move remaining legacy files to GN
R=aerotwist@chromium.org

Bug: 1131500
Change-Id: Ibb247dd02a5032604824517be4276c4b83c8fc8c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2479140
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-10-19 09:25:50 +00:00
Sigurd Schneider 5a5b735963 Improve template types in Target/SDKModel
The Target.model method's type can be improved to convey the type of
the result (based on the constructor argument). This CL does just that.
This unlocks more checking down the line. The CL also alters the types
of the observeModel(s) methods, but in a weaker way, as closure is
apparently not able to instantiate the template correctly for method
invocations.

Bug: chromium:1011811
Change-Id: Ic466cfd946c30f3fcfb4ce24a8a0e1bc542e7d3f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2445776
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-10-05 12:21:48 +00:00
Michael Liao e7d3fb574c [Elements]: Fixing SR issue for DOM Breakpoints
Issue:
- Accessibility is improperly implemented for DOM breakpoint checkboxes
- aria-hidden = true is being put on the parent element that contains the label and the checkbox which blocks the SR from announcing "check"/"uncheck"
    - the intention is to hide the label

Changes:
- Moving aria-hidden=true from the parent element of the checkbox and checkbox label to just the checkbox label

Bug: 1130800
Change-Id: If9942336138a357700ae94d09d24fbb239e733fb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2422270
Reviewed-by: Jack Lynch <jalyn@microsoft.com>
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
Reviewed-by: Jose Leal <joselea@microsoft.com>
Commit-Queue: Michael Liao <michael.liao@microsoft.com>
2020-10-01 23:40:40 +00:00
Jack Franklin 536a31d8c4 Migrate DOMBreakpointsSidebarPane to TypeScript
Bug: 1011811
Change-Id: Ibfd0fc79847eb505e128b954a9d03f762fd1eee1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2431424
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-09-25 13:41:08 +00:00
Jack Franklin 830dfc1262 Migrate EventListenerBreakpointsSidebarPane to TS
Bug: 1011811
Change-Id: I1559628f538d74470aec9ad7f1bc9e7b24f3b8fc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2429770
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-09-25 13:20:48 +00:00
Jack Franklin a3c271e494 Migrate ObjectEventListenersSidebarPane to TS.
Bug: 1011811
Change-Id: I751037f8fb18cd406f77a268923b960699cb1754
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2429767
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-09-25 10:58:17 +00:00
Tim van der Lippe cac65d4fa0 Remove skip_rollup
This was a temporary flag as part of the devtools_entrypoint migration.
Since that migration has concluded, we can now remove all references
to it and clean up `build_release_applications.py`.

R=jacktfranklin@chromium.org,aerotwist@chromium.org

Bug: 1101738
Change-Id: I3ef9ec1a99bc9fc1758532124db22b3b4b1a5e2a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2391140
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-09-08 15:44:09 +00:00
Tim van der Lippe 321dcca8b2 [globals] self.SDK.domDebuggerManager
R=aerotwist@chromium.org

Bug: 1058320
Change-Id: I523b32d769c6e240ce678e6657a66cd54e2c4c8d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2391244
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-09-08 13:17:19 +00:00
Tim van der Lippe 207e2f9fdc Migrate browser_debugger to devtools_entrypoint
R=jacktfranklin@chromium.org

Bug: 1101738
Change-Id: I2baadadc23f935725272bdb73f256b6827f58f57
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2390620
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-09-02 15:05:20 +00:00
Michael Liao 867fe2fbf0 [Accessibility - XHR Breakpoints]: Set accessible name for text input
Issue:
- MAS 4.2.1 - Object Information violation
- Text input for XHR/fetch breakpoint in sources pane does not have an accessible name

Changes:
- Adding accessible name of "URL Breakpoint" to text input

Bug: 1120103
Change-Id: I56bbd776f13a57d3211b574c740e346a87fc0048
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2368373
Commit-Queue: Michael Liao <michael.liao@microsoft.com>
Reviewed-by: Songtao Xia <soxia@microsoft.com>
Reviewed-by: Vidal Diazleal <vidorteg@microsoft.com>
2020-08-24 19:34:06 +00:00
Peter Marshall 9a3d85fa0b css: Use :focus-visible instead of our custom data-keyboard-focus
https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible

:focus-visible is basically the exact same functionality as the custom
data-keyboard-focus attribute that devtools maintains. This CL converts
all of our uses of data-keyboard-focus in CSS to use :focus-visible.

This has no intended behaviour change although it's possible there are
small differences in our implementation vs. the web platform one, so
this might cause some regression with focus styles for keyboard
interaction.

I tested a few of these manually to verify they still do the same thing.

The CSS linter was unhappy about the ordering of some rules due to
specificity-ordering checks, so there is some re-ordering too.

A follow-up CL will remove our implementation of data-keyboard-focus.

Change-Id: Ifc273f7d82e16ea07e24ed2d1faa6f794a12501d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2352236
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Kalon Hinds <kahinds@microsoft.com>
Reviewed-by: Jack Lynch <jalyn@microsoft.com>
Reviewed-by: Brandon Goddard <brgoddar@microsoft.com>
2020-08-24 07:58:42 +00:00
Tim van der Lippe d1a00aacb9 [globals] self.UI.context
R=jacktfranklin@chromium.org

Bug: 1058320
Change-Id: Icc1d806782e7624fff02e719670a2cca59070ddd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2364594
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-08-19 16:24:38 +00:00
Brandon Goddard 02b64b9591 Elements: Remove Event Listener Pane focus override
This CL fixes an apparent focus issue in the Elements Event Listener
sidebar pane. When the event listener tree outline was made
keyboard accessible, it was given focus by default when navigating
to the event listener pane from a mouse click.
However, since the tree was not keyboard
focused or marked focus-visible, it appears that the Event Listener
tab is still focus.

The fix removes the focus method from the widget, which causes focus
to remain on the tabbed pane header, which was the previous behavior.

This does not change the keyboard navigation, as keyboard only users
would still use arrows to nav the Event Listener
tab pane and then tab into it. This is the same behavior as the
Styles pane.

Before video in the bug
After: https://imgur.com/2g7W9MC

Bug: 1114604
Change-Id: I103dccef37bfe605e6093bb0f0d4104e3670da14
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2351165
Reviewed-by: Jack Lynch <jalyn@microsoft.com>
Reviewed-by: Jose Leal <joselea@microsoft.com>
Commit-Queue: Brandon Goddard <brgoddar@microsoft.com>
2020-08-14 16:53:21 +00:00
Sigurd Schneider 965b1ffc56 Revert "Migrate browser_debugger to devtools_entrypoint"
This reverts commit 8419f16834.

Reason for revert: Doesn't compile:
https://ci.chromium.org/p/devtools-frontend/builders/ci/DevTools%20Linux/2171

Original change's description:
> Migrate browser_debugger to devtools_entrypoint
> 
> Bug: 1101738
> Change-Id: Ia5a5b8a6fff3607d787df23d31264552c55267bf
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2335069
> Commit-Queue: Paul Lewis <aerotwist@chromium.org>
> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>

TBR=aerotwist@chromium.org,jacktfranklin@chromium.org

Change-Id: I60f22d4cd485b3b555ce8e476d58bb01abccbff9
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1101738
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2336718
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2020-08-04 13:01:15 +00:00
Paul Lewis 8419f16834 Migrate browser_debugger to devtools_entrypoint
Bug: 1101738
Change-Id: Ia5a5b8a6fff3607d787df23d31264552c55267bf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2335069
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-08-04 12:04:53 +00:00
Tim van der Lippe 1b2c52bbfa Remove tvanderlippe@ as explicit OWNER from several front_end subfolders
As part of the initial seeding of the OWNERS, the automated scripts added
myself as OWNERS to pretty much every single folder in `front_end/`. This
is an artifact of the widespread infrastructure I have done, with in
particular the ES Modules migration that touched every single file in
DevTools.

In the past few weeks, several times I have received CLs were I was asked
to perform a domain review on the feature in question. Most of the time,
I have no knowledge of that particular feature.

To reduce confusion and roundtrips asking for different domain reviewers,
I removed myself as explicit OWNERS of these files. Note that I can still
use my INFRA_OWNERS to land changes, but as usual these are infra-only.
E.g. these will include the larger refactorings that span multiple features,
but not a single feature in particular.

I have kept myself OWNERS of folders that are part of the core
architecture of DevTools, as I am comfortable reviewing these as domain
reviewer.

R=yangguo@chromium.org,aerotwist@chromium.org

Change-Id: Ib1be70b97c5395498795b4b28ce7001731305d41
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2282516
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>
2020-07-06 12:36:21 +00:00