Bug 51475 - Web Inspector: [Chromium] can't set a breakpoint in a garbage collected script
Summary: Web Inspector: [Chromium] can't set a breakpoint in a garbage collected script
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Pavel Podivilov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-22 09:34 PST by Mikhail Naganov
Modified: 2011-02-03 07:39 PST (History)
10 users (show)

See Also:


Attachments
Repro page (139 bytes, text/html)
2010-12-22 09:34 PST, Mikhail Naganov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Naganov 2010-12-22 09:34:19 PST
Created attachment 77226 [details]
Repro page

The initial problem is reproducible both on latest WebKit (r74228) and Chromium (10.0.620.0 (69946)), breakpoint setting behavior differs.

Load the repro page in browser, open Inspector (or DevTools), switch to "Scripts" panel -- observe that scripts list is empty. Reload the page -- script will appear.

Now, if you try to set a breakpoint on the script body, it is impossible in Chromium, and behaves strangely in Safari: breakpoint is set, but can't be removed by clicking on the gutter, until you close Inspector and open it again.
Comment 1 Pavel Podivilov 2010-12-23 04:50:32 PST
Safari bug is a duplicate of this one https://bugs.webkit.org/show_bug.cgi?id=51243, fixed in r74261.
Comment 2 Pavel Podivilov 2011-02-03 07:39:20 PST
Fixed by http://trac.webkit.org/changeset/77489.