Commit Graph
28 Commits
Author SHA1 Message Date
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
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
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
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
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
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
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
Christy Chen d05ba96196 [A11y] fix DOM breakpoint checkbox not announced by screen reader
When tabbing into the DOM bp sidebar, the screen reader wont announce the checkbox status because the focus is on the listItem.
This CL makes makes focus to be on the checkbox element.

Gif with NVDA screen reader
https://imgur.com/F0F8Rbq

Bug:963183
Change-Id: I1e793bf962fcc21c6c9ebe4e7dd4d44c160a522b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2228805
Reviewed-by: Jack Lynch <jalyn@microsoft.com>
Reviewed-by: Songtao Xia <soxia@microsoft.com>
Commit-Queue: Christy Chen <chrche@microsoft.com>
2020-06-08 22:04:38 +00:00
Tim van der Lippe f49e23286b Replace single class invocations of createElementWithClass
This applies the following replacement to the codebase:

(\S+) = createElementWithClass\('(\w+)', '([^'\s]+)'\);

to

$1 = document.createElement('$2');\n$1.classList.add('$3');

R=aerotwist@chromium.org

No-Presubmit: true
Bug: 1011811, 1077215
Change-Id: I0d76b39f1ed8cd4a44f18f94e398db934ba4b09c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2176112
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-05-01 16:54:52 +00:00
Tim van der Lippe 6ab9f46701 Replace simple invocations of createElementWithClass
This applies the following replacement to the codebase:

(\S+) = createElementWithClass\('(\w+)'\)

to

$1 = document.createElement('$2')

R=aerotwist@chromium.org

Bug: 1077215, 1011811
Change-Id: I719bc90097273a9f735ee7fc9828edb6405c27e8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2173376
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-05-01 16:34:51 +00:00
Paul Lewis 75c7d0decc [global] Remaps self.UI.viewManager
Moves self.UI.viewManager to an instance() method.

Bug: 1058320
Change-Id: I0c444101da59ba9eba4745d1dc551bb8906a0a4f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107624
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-03-19 12:39:32 +00:00
Paul Lewis daac106699 [global] Remaps self.SDK.targetManager
This CL changes references to self.SDK.targetManager (the global
instance of SDK.SDKModel.TargetManager) over to
SDK.SDKModel.TargetManager.instance(). To keep both TypeScript and
Closure happy we must make a method on the TargetManager class itself,
since it only allows private constructors to be accessed by static
methods on the class.

Bug: 1058320
Change-Id: I6ca35024c21cf24254fd6273138a1ab3e163ee00
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2088092
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-05 14:58:03 +00:00
Tim van der Lippe c02a97ca2c Fix imports for Common.Event typedef
All references now use the fully qualified
"Common.EventTarget.EventTargetEvent". It renames it to
"EventTargetEvent" to prevent a name-clash with the native "Event" type.

Bug: 1006759
Change-Id: I13fcdfd613041da146d741a0d1f785bfc905a7a8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2056481
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-02-14 15:21:06 +00:00
Tim van der Lippe 046db888bd Migrate browser_debugger/ to import cross-module
Bug: 1006759
Change-Id: Ieb8297fbffd90b47816591e0cc7e8367770e01fc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2054162
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-02-13 14:24:49 +00:00
Paul Lewis d990734442 [Global] Update refs to UI.context
Bug: 1006759
Change-Id: I4a405fb1d80f6a384a311a3482c37f943238b73f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2019137
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-01-24 14:25:48 +00:00
Paul Lewis 50993696be [Global] Update refs to UI.viewManager & UI.zoomManager
Bug: 1006759
Change-Id: Iebf11153861850acbbfef9f40e3552d1be9a6460
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2016760
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-01-23 15:45:11 +00:00
Paul Lewis 4ae5f4f5ce [Global] Update refs to SDK.targetManager
Bug: 1006759
Change-Id: I0686ef929b89e75c2ea8a731c593d955eca85935
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2015119
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-01-23 10:56:40 +00:00
Paul Lewis 2a4f9fe07d Migrates browser_debugger to ESM internally
Bug: 1006759
Change-Id: Iae67cbad44cfebe3ceb4353f32d9e2e4024b41bf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1991631
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-01-09 16:21:21 +00:00
Jack Lynch 8a344769f6 Improve keyboard/screenreader experience in DOM breakpoints
Currently, there is no intuitive way to navigate the DOM breakpoints
pane by keyboard. This change refactors the DOM breakpoints pane to use
UI.ListControl to manage keyboard navigation, in response to feedback
here [3] about code duplication. Using ListControl also makes it easier
to manage an accessible description on breakpoint elements so that
screen reader users are informed about the checked state of breakpoints
and whether the page is currently paused on them.

Focusing the list items, before/after:
https://gyazo.com/5edc75de0c0e9d7f968f49e114cec324
https://gyazo.com/c3efc3322783f3505bc4dde3edabbf13

This CL breaks a web test, so [1] must be merged first to disable it.
[2] Fixes and reenables it.

[1] https://chromium-review.googlesource.com/c/chromium/src/+/1893960
[2] https://chromium-review.googlesource.com/c/chromium/src/+/1644461
[3] https://chromium-review.googlesource.com/c/chromium/src/+/1644461/14/third_party/blink/renderer/devtools/front_end/browser_debugger/DOMBreakpointsSidebarPane.js#141

Bug: 963183
Change-Id: I41e2e8b73baa7ae3e6169163785e245493ab4ba7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1889352
Commit-Queue: Jack Lynch <jalyn@microsoft.com>
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
2019-12-12 03:34:36 +00:00
Paul Lewis 7f7a92088c Migrates browser_debugger/ to esm
Bug: 1006759
Change-Id: I6fd8ea8fb749bf1231b481a8b311f0370fe9e401
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1934217
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2019-11-26 16:26:56 +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
Junyi Xiao 14a06c1ce0 DevTools: aXe core linting for DOM breakpoints in Elements.
Added DOM breakpoint accessibility testing.  Slightly
modified the structure of the DOM Breakpoints list DOM (but
didn't alter its display) for more specificity in the CSS.

The test here is a little bit more involved than most of the
tests in the Elements pane, primarily because the process of
launching the DOM breakpoints list and creating them is a
bit more involved than other components of the tool.

Bug: 963183
Change-Id: I2543331f81d1ba96a7a0ddb6ca31dba214a1761a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1683826
Commit-Queue: Junyi Xiao <juxiao@microsoft.com>
Reviewed-by: Erik Luo <luoe@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#693957}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 06042315a66654aaa9a200f4b32179334f021518
2019-09-05 22:13:19 +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