Closed Bug 1026547 Opened 11 years ago Closed 11 years ago

Show chrome source on about: pages in the debugger

Categories

(DevTools :: Debugger, defect)

29 Branch
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1085446

People

(Reporter: glind, Unassigned)

Details

(Whiteboard: [chrome-debug])

Use case: debugging `about:newtab`. Reproduce: - Aurora 32 - `about:newtab` - open debugger Expected: debugger should see: http://mxr.mozilla.org/mozilla-central/source/browser/base/content/newtab/newTab.js as a source. Observed: Debugger states: "no sources". Inspector has access to objects in the page from that script, including `gSearch`. Suggested previous solution of "use the browser debugger" doesn't seem to work for this. The browser debugger debugs `browser.xul`.
If you reload, does the source show up? If so, this is a duplicate of bug 944258.
No. "waiting for sources" briefly displays, then "This page has no sources". I think it's pretty reproducible, if you want to try it.
Can repro on Nightly 33 as well.
Whiteboard: [chrome-debug]
In my opinion all scripts included by about: pages should be available in the debugger if an about: page is loaded.
The reason debugging about: pages doesn't work (see _allowSource in script.js) is that the debugger would end up running with debuggee frames on the stack. Since Shu recently made that a workable situation, maybe we could now revisit this. That said, I can debug newTab.js using browser debugger just fine. For example I can set a breakpoint in Page_init() that gets triggered when I hide/show the thumbnails.
Summary: enh: show chrome source on about: pages → Show chrome source on about: pages in the debugger
Bug 1085446 fixes this.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.