New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 613295 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Devtools unable to debug the context for some content scripts

Project Member Reported by rbyers@chromium.org, May 19 2016

Issue description

Chrome Version       : 52.0.2739.0

What steps will reproduce the problem?
1. Install the password alert extension
2. After awhile try inspecting each of your tabs and look for one where devtools DOESN'T list a context for the content script for the top frame.
3. Set a keypress event breakpoint, click on the main frame (to give it focus) and hit a key

What is the expected result?
Since the password alert content script is apparently not running in the main frame, expect it not to break (or if it does break - show me what code is running and what context it's in).

What happens instead of that?
Debugger breaks but can't generate a stacktrace!  See attached screenshot.  Recording a timeline shows that the content script is infact getting invoked.

It looks like you can also reproduce this by opening a simple page (without any iframes) and immediately inspecting it.  Context list shows only "top" but if you break on keypress you get the same experience of stopping _somewhere_ but without any stack.
 

Comment 1 by rbyers@chromium.org, May 19 2016

Screenshot from 2016-05-19 16:39:44.png
80.4 KB View Download

Comment 2 by rbyers@chromium.org, May 19 2016

Summary: Devtools unable to debug the context for some content scripts (was: Content scripts sometimes don't show up in the list of contexts in chrome devtools)
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)
Status: Started (was: Assigned)
Note: I'm able to reproduce it only when debug_devtools flag is set to false.
Labels: Hotlist-Polish
Status: WontFix (was: Started)
I'm not able to reproduce it in current stable and ToT with the same scenario which works before.
A few CLs that improves how we handle cases where script was collected before devtools shown were landed and probably fixed this.
Feel free to reopen if it's still a problem.

Sign in to add a comment