Closed Bug 808527 Opened 12 years ago Closed 12 years ago

selectedBrowser frames appear when debugging chrome

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 19

People

(Reporter: past, Assigned: past)

Details

(Whiteboard: [chrome-debug])

Attachments

(1 file)

STR:
1) Open the page inspector on any page.
2) Open the Browser Debugger.
3) Set a breakpoint in the first line of the CssRuleView constructor.
4) Close and reopen the page inspector.
4) Step-in repeatedly and observe the additional get_selectedBrowser frames that appear on the stack.

The fix will probably be to cache and not evaluate selectedBrowser in BRA_preNest and BRA_postNest.
Attached patch Patch v1Splinter Review
As far as I can tell this is all that we can do. Suspending events and timeouts in the selected content window isn't of much use for chrome debugging, if we can't do the same for chrome windows.
Attachment #678317 - Flags: review?(rcampbell)
This patch makes me happy.
Comment on attachment 678317 [details] [diff] [review]
Patch v1

Me too.
Attachment #678317 - Flags: review?(rcampbell) → review+
https://hg.mozilla.org/mozilla-central/rev/8b22e64ff99e
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [chrome-debug][fixed-in-fx-team] → [chrome-debug]
Target Milestone: --- → Firefox 19
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: