703 Commits
Author SHA1 Message Date
hawkgs 8dd102ba42 refactor(devtools): remove unused permissions
Remove `scripting` and `activeTab` permissions since
it appears that they are no longer used by the extension.

(cherry picked from commit 3d2581a77c)
2026-11-09 18:00:28 +00:00
Naveed Khan 7e5d14cda9 fix(devtools): merge transfer state into a null-prototype object
The transfer state backend merges the per-root `ɵgetTransferState` results
into a plain object literal with `Object.assign`. A key such as `__proto__`
assigns through the inherited setter, dropping the entry and reparenting the
merged object. Use a null-prototype object as the merge target so the key is
kept as an ordinary entry.

(cherry picked from commit ad9058ad87)
2026-10-20 07:43:33 +00:00
Shuaib Hasan Akib 519d4469b5 refactor(devtools): import rxjs operators from the rxjs entry point
Since RxJS 7.2, all operators are exported from the main `rxjs` entry
point, and RxJS recommends importing them from there. `rxjs/operators`
is only kept for backward compatibility and is expected to be removed in
a future major version.

Switch the remaining `rxjs/operators` imports in devtools to `rxjs`,
merging them into the existing `rxjs` import where there is one. Unlike
the framework packages, which still support RxJS 6 through their peer
dependency range, devtools is bundled with the repository's RxJS 7, so
this is safe.

No runtime or bundle size changes: both entry points expose the same
tree-shakable operators.

(cherry picked from commit a36155d9ef)
2026-10-02 13:45:39 +00:00
Andrew Scott c404420d1f fix(devtools): use MouseEvent for mouseover and mouseout listeners in tree visualizer
In @types/d3-selection >= 3.0.12, listener callbacks for mouseover and mouseout
events are strongly typed to receive MouseEvent. Because PointerEvent is a
subtype of MouseEvent, typing the listener parameter as PointerEvent causes
a TypeScript compilation error.

Update nodeMouseoverListeners and nodeMouseoutListeners in GraphRenderer and the
corresponding D3 event handlers in TreeVisualizer to use MouseEvent.

(cherry picked from commit 03795a9f5d)
2026-09-29 22:36:02 +00:00
hawkgs 8a88d629a9 refactor(devtools): add onValue to the backend config
Add an `onValue` method to the config that emits immediately
the current value and then listen for changes similarly to `onChange`.

(cherry picked from commit 4086dad0c6)
2026-09-28 18:59:00 +00:00
Aleksander Bodurri 2ce1058fea fix(devtools): recurse correctly when finding hydration error nodes
findErrorNodesForHydrationOverlay recursed into
findNodesForHydrationOverlay, which stops descending at the first node
with any hydration status. Mismatched nodes nested under a hydrated or
skipped node were therefore never found and never highlighted on the
page. Recurse into the error-node finder itself so nested mismatches
are highlighted.

(cherry picked from commit 3eaae88e5d)
2026-09-28 18:41:36 +00:00
Angular Robot 4545d66ecf build: update cross-repo angular dependencies
See associated pull request for more information.
2026-09-24 06:43:30 -07:00
Alan Agius c5ad7f649f test(devtools): assert on eval spy in chrome-application-operations spec
Avoid asserting on chrome.devtools.inspectedWindow.eval directly via
Jasmine matchers, as TypeScript picks up the 3-argument overload
signature from @types/chrome, causing a TS2554 compilation error when
only 2 arguments are provided. Instead, assert directly on the
evalSpy instance.

(cherry picked from commit c0c5d452c3)
2026-09-22 21:00:56 +00:00
Alan Agius 06ffb35fb1 release: bump Angular DevTools version to 1.21.1 2026-09-16 15:17:31 +02:00
Georgi Serev 1750003024 fix(devtools): make tab buttons visually accessible on small viewports
Reuse breadcrumbs scroll behavior (in the form of a reusable component)
for the main tabs bar.
2026-09-16 15:05:53 +02:00
Edu e02c4d89bc fix(devtools): harden message sender validation and expand property shape tests
Explicitly validate sender.origin and sender.url, guard against non-object
or missing sender properties, and add comprehensive unit test coverage
for all optional property permutations of chrome.runtime.MessageSender.
2026-09-16 14:56:37 +02:00
Edu 11838e481a fix(devtools): validate message sender and detach debugger in BreakpointManager
Ensure runtime messages for setting and querying signal breakpoints
originate strictly from the extension's internal DevTools panel context,
preventing untrusted web pages or content scripts from triggering debugger
attachments or placing breakpoints.

- Validate sender.id, sender.tab (must be undefined), and sender.url.
- Validate tabId to ensure it is a positive integer.
- Detach chrome.debugger when all breakpoints on a tab are removed.
- Namespace scriptMap by tabId to prevent cross-tab script collisions.
- Add unit test suite in breakpoint_manager.spec.ts.
2026-09-16 14:56:37 +02:00
Georgi Serev fe94aae034 refactor(devtools): introduce a global backend config
- Unify the multiple scattered feature-specific flags into a single
global backend config
- Fix initial settings data exchange between the fe and be on prod
2026-09-16 14:12:42 +02:00
Alan Agius 29f9dd5e77 refactor(devtools): update angular optimization plugin for JavaScriptTransformer API
Update createEsbuildAngularOptimizePlugin to use the new options object signature for JavaScriptTransformer.transformFile, and update the @angular/build dependency to 22.2.0-next.7.
2026-09-10 15:06:43 -07:00
Edu ef09d108f2 fix(devtools): safely handle foreign root elements in feature detection
Prevent Angular DevTools from crashing when elements matching [ng-version] in the DOM do not belong to the host application (such as third-party custom elements or browser extensions). ng.getComponent returns null for these elements, which previously caused ng.getDirectiveMetadata to throw.
2026-09-09 22:26:00 +02:00
Angular Robot 25317c3837 build: update dependency cypress to v16
See associated pull request for more information.
2026-09-09 16:33:56 +02:00
Kam d6d51a0ef8 test(devtools): run the orphaned app component spec
`app.component.spec.ts` has been in the tree since the initial DevTools commit
in 2020, but no revision of `shell-browser/src/app/BUILD.bazel` has ever listed
it, and that file has no globs. Two of the three specs in the directory are
wired up; this one has never run.

It could not run as written. The setup declared `AppComponent` and imported
`RouterModule.forRoot([])`, neither of which applies now that the component is
standalone and injects `MessageBus` and `DEEP_LINK_INSTANCE_ID`.

It now stubs the `chrome.devtools` surface that `ngOnInit` reads and covers
both lifecycle hooks: the listeners registered on init, the two performance
track emits, the three guards on the deep link listener, and the listeners
removed on destroy.

Follow-up to #70570, which fixed the same problem in ng-devtools-backend.
2026-09-09 16:11:01 +02:00
hawkgs 635ef1bd80 refactor(devtools): contain hydration overlays functionality on the be
Move the refresh mechanism of the hydration overlays to the backend,
delegating only the feature toggling to the frontend.
2026-09-09 16:10:25 +02:00
Kam 3dfc855381 test(devtools): run the orphaned supported-apis spec
`supported-apis.spec.ts` was added in #60585, in a commit that also edited the
`ts_test_library` three lines below the `srcs` it was left out of. No revision
of that BUILD file has ever listed it, so it has not run since March 2025. The
target goes from 12 specs to 14.

Wiring it up alone would not have worked. Every `*IsSupported` helper calls
`ngDebugClient()`, which throws when `window.ng` is undefined, and the old
`expect(supported).toBeTruthy()` set no `ng` at all. It now stubs `ng` and
checks the flag set and that each flag tracks its own debug API.

`ng-debug-api.spec.ts` adds an `[ng-version]` root and did not remove it, which
`getAppRoots()` then picks up in the other file under jasmine's random
ordering, so it now clears the DOM in its own `afterEach`.

`glob` matches the sibling `directive-forest/component-tree` target and keeps
the next spec in this directory from being dropped the same way.
2026-09-04 07:46:46 -07:00
hawkgs 00ec65546b refactor(devtools): fix signal details UI
Fix different action buttons and value preview container size.
2026-09-01 09:33:35 -07:00
Matthieu Riegler 9cf7b44f7c build: remove explicit strict options
Those options are enabled by default, they don't need to be explicit.
2026-08-31 13:17:00 -07:00
Kam ad22e89d4d refactor(devtools): point the .gitignore comment at live GitHub docs
help.github.com/ignore-files/ 404s since GitHub retired that domain.
2026-08-27 13:44:43 -07:00
hawkgs c1ac4b750a refactor(devtools): convert remaining console calls to the custom log
Convert the remaining calls introduced by the #70254.
2026-08-26 15:38:33 -07:00
Alan Agius 1d0945fa32 release: bump Angular DevTools version to 1.21.0 2026-08-26 09:56:48 +02:00
hawkgs 07605ba793 feat(devtools): implement CD analyzer (#70254)
Implement component highlighting on change detection cycles along with embedding
the component-specific data to the directive/component tree explorer.

Closes #59057

PR Close #70254
2026-08-25 10:35:42 -07:00
hawkgs 82882fae51 refactor(devtools): add TTL and outline style to the highlighting mechanism (#70254)
Add the ability to automatically destroy created highlights by a provided TTL;
Add the option for outline style of the highlight overlays;
Add `prefer-inset` label position;

PR Close #70254
2026-08-25 10:35:42 -07:00
Georgi Serev 1371c946aa refactor(devtools): use a custom logger and error
Use a custom logger that prefixes the messages with `[Angular DevTools]`;
Add ability for dev-only log messages;
Add Angular-DevTools-specific `Error`;
2026-08-25 09:55:04 -07:00
Cameron Smick 82a767535e feat(devtools): add "Watch signal" button to signal-details component
Add a "Watch signal" button to the signal-details component to allow users to "watch" changes to the associated signal.
2026-08-24 15:35:44 -07:00
Aleksander Bodurri 434acc506e refactor(devtools): update profiler instruction text for clearing recordings
I suspect this text used to be correct but became outdated after UI changes. These is no "refresh" button.
2026-08-24 10:34:37 -07:00
Doug Parker d609cf6e09 release: bump Angular DevTools version to 1.20.0 2026-08-19 13:22:03 -07:00