Bug 44943

Summary: Web Inspector: browser crashes on attempt to evaluate "alert(1)" while staying on a breakpoint
Product: WebKit Reporter: Yury Semikhatsky <yurys>
Component: Web Inspector (Deprecated)Assignee: Yury Semikhatsky <yurys>
Status: RESOLVED FIXED    
Severity: Normal CC: bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, podivilov, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch joepeck: review+

Description Yury Semikhatsky 2010-08-31 04:48:12 PDT
Web Inspector: browser crashes on attempt to evaluate "alert(1)" while staying on a breakpoint. In fact the crash happens on any action that requires active dom objects to be suspended.
Comment 1 Yury Semikhatsky 2010-08-31 04:50:37 PDT
Created attachment 66034 [details]
Patch
Comment 2 Pavel Podivilov 2010-08-31 04:56:06 PDT
(In reply to comment #1)
> Created an attachment (id=66034) [details]
> Patch

Could you please use new test harness (inspector-test2.js)?
Comment 3 Yury Semikhatsky 2010-09-02 07:02:20 PDT
Created attachment 66366 [details]
Patch
Comment 4 Joseph Pecoraro 2010-09-03 10:50:59 PDT
Comment on attachment 66366 [details]
Patch

> diff --git LayoutTests/inspector/debugger-suspend-active-dom-objects-expected.txt
> +Debugger was enabled.
> +Set timer for test function.
> +Script execution paused.
> +Shown alert while staying on a breakpoint
> +Script execution resumed.
> +Debugger was disabled.

Middle line is the only one with a period. Maybe add a period?
I had to have some comment in my review! =)


> +    setTimeout("void 0", 0); // Create a timer that will be suspended on a breakpoint.

I didn't know that `void` could be used like this. I thought it
needed parens. But, this is valid, so it can be left this way. Cool.


r=me as long as you ran LayoutTests and nothing else failed.
Comment 5 Yury Semikhatsky 2010-09-06 22:58:15 PDT
66813(In reply to comment #4)
> (From update of attachment 66366 [details])
> > diff --git LayoutTests/inspector/debugger-suspend-active-dom-objects-expected.txt
> > +Debugger was enabled.
> > +Set timer for test function.
> > +Script execution paused.
> > +Shown alert while staying on a breakpoint
> > +Script execution resumed.
> > +Debugger was disabled.
> 
> Middle line is the only one with a period. Maybe add a period?
> I had to have some comment in my review! =)
> 
Done.

Committed r66813.