Bug 80220

Summary: [Qt][WK2] Crashing the web-process may cause the UI process to crash
Product: WebKit Reporter: Noam Rosenthal <noam>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: yael
Priority: P2 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Noam Rosenthal 2012-03-04 08:34:58 PST
That is because TextureMapperShaderManager gets deleted when its ref from TextureMapperGL is deleted.
We need to make the correct context current before releasing the shaders.
Comment 1 Yael 2012-03-04 17:33:10 PST
Can you add steps to reproduce the problem?
I enabled frame flattening in MiniBrowser and went to sites like http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe, which crash the web process when frame flattening is on. However, I was able to load a new url and continue browsing after the web process crash.
thanks!
Comment 2 Noam Rosenthal 2012-03-04 17:49:50 PST
(In reply to comment #1)
> Can you add steps to reproduce the problem?
> I enabled frame flattening in MiniBrowser and went to sites like http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe, which crash the web process when frame flattening is on. However, I was able to load a new url and continue browsing after the web process crash.
> thanks!

Not sure; It might be only happening on Mac.
Comment 3 Yael 2012-03-04 17:53:48 PST
(In reply to comment #2)
> (In reply to comment #1)
> > Can you add steps to reproduce the problem?
> > I enabled frame flattening in MiniBrowser and went to sites like http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe, which crash the web process when frame flattening is on. However, I was able to load a new url and continue browsing after the web process crash.
> > thanks!
> 
> Not sure; It might be only happening on Mac.

I can post a patch tomorrow, do you mind helping me test it?
Comment 4 Noam Rosenthal 2012-03-04 18:00:22 PST
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > Can you add steps to reproduce the problem?
> > > I enabled frame flattening in MiniBrowser and went to sites like http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe, which crash the web process when frame flattening is on. However, I was able to load a new url and continue browsing after the web process crash.
> > > thanks!
> > 
> > Not sure; It might be only happening on Mac.
> 
> I can post a patch tomorrow, do you mind helping me test it?

Might not be necessary. I have a new patch for threaded-rendering that fixes this as a side effect :)
Comment 5 Yael 2012-03-04 18:07:37 PST
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > (In reply to comment #1)
> > > > Can you add steps to reproduce the problem?
> > > > I enabled frame flattening in MiniBrowser and went to sites like http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe, which crash the web process when frame flattening is on. However, I was able to load a new url and continue browsing after the web process crash.
> > > > thanks!
> > > 
> > > Not sure; It might be only happening on Mac.
> > 
> > I can post a patch tomorrow, do you mind helping me test it?
> 
> Might not be necessary. I have a new patch for threaded-rendering that fixes this as a side effect :)

Great, thanks :)
Comment 6 Yael 2012-04-10 06:08:24 PDT
Noam, is this still an issue?