Bug 153003 - Web Inspector: creating a gradient in the Visual sidebar causes a crash
Summary: Web Inspector: creating a gradient in the Visual sidebar causes a crash
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-01-11 21:25 PST by Devin Rousso
Modified: 2016-01-14 11:31 PST (History)
8 users (show)

See Also:


Attachments
Patch (1.89 KB, patch)
2016-01-11 21:28 PST, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2016-01-11 21:25:57 PST
* STEPS TO REPRODUCE
1. Go to <www.apple.com>
2. Inspect the <body>
3. In the Visual sidebar, go to Background > Style
4. Click the + button on the list editor and select "Linear Gradient" in the dropdown next to "Type"
5. Click the swatch element immediately to the right of the "Type" label (the gradient editor should open)
6. Click slightly underneath the gradient preview area to add a color stop

* Expected
Color stop is added to (previously empty) gradient

* Actual
Crashes
Comment 1 Devin Rousso 2016-01-11 21:28:40 PST
Created attachment 268744 [details]
Patch
Comment 2 BJ Burg 2016-01-11 22:56:03 PST
By crash, do you mean that WebCore crashed? We should also investigate fixing that, as invalid CSS from the inspector should never cause a segfault.
Comment 3 BJ Burg 2016-01-11 22:56:50 PST
Comment on attachment 268744 [details]
Patch

r=me
Comment 4 Devin Rousso 2016-01-12 00:38:14 PST
(In reply to comment #2)
> By crash, do you mean that WebCore crashed? We should also investigate
> fixing that, as invalid CSS from the inspector should never cause a segfault.

Oh no just Web Inspector crashes.  I get that "Uncaught Exception" page.  I figured that that was considered a "crash" for the Web Inspector.  Is there a better term for it?
Comment 5 BJ Burg 2016-01-12 10:12:48 PST
(In reply to comment #4)
> (In reply to comment #2)
> > By crash, do you mean that WebCore crashed? We should also investigate
> > fixing that, as invalid CSS from the inspector should never cause a segfault.
> 
> Oh no just Web Inspector crashes.  I get that "Uncaught Exception" page.  I
> figured that that was considered a "crash" for the Web Inspector.  Is there
> a better term for it?

That's an uncaught exception, and is less severe. The dialog only appears in engineering builds and can be dismissed.

A crash occurs when the Web Inspector or Safari window disappears completely and a crash report is collected. If that happens, you can see the stack trace dumped to stdout or added to the list in Console.app.
Comment 6 Devin Rousso 2016-01-12 10:30:10 PST
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #2)
> > > By crash, do you mean that WebCore crashed? We should also investigate
> > > fixing that, as invalid CSS from the inspector should never cause a segfault.
> > 
> > Oh no just Web Inspector crashes.  I get that "Uncaught Exception" page.  I
> > figured that that was considered a "crash" for the Web Inspector.  Is there
> > a better term for it?
> 
> That's an uncaught exception, and is less severe. The dialog only appears in
> engineering builds and can be dismissed.
> 
> A crash occurs when the Web Inspector or Safari window disappears completely
> and a crash report is collected. If that happens, you can see the stack
> trace dumped to stdout or added to the list in Console.app.

Ah OK that makes more sense.  I'll refer to it as such in the future.  Sorry for the confusion!
Comment 7 WebKit Commit Bot 2016-01-12 10:44:37 PST
Comment on attachment 268744 [details]
Patch

Clearing flags on attachment: 268744

Committed r194901: <http://trac.webkit.org/changeset/194901>
Comment 8 WebKit Commit Bot 2016-01-12 10:44:41 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2016-01-14 11:31:08 PST
<rdar://problem/24191708>