We need to add it to avoid NULL pointer dereference. http://crbug.com/147592
Created attachment 163284 [details] Patch
Created attachment 163285 [details] build fix
Comment on attachment 163285 [details] build fix Why does the patch have no tests?
We know we hit renderer crash here and I believe this patch will fix it. But, I could not reproduce it locally nor reduce it to simple test case.
(In reply to comment #4) > But, I could not reproduce it locally nor reduce it to simple test case. ChangeLog should have such information.
Created attachment 163323 [details] add test
(In reply to comment #5) > (In reply to comment #4) > > But, I could not reproduce it locally nor reduce it to simple test case. > > ChangeLog should have such information. I see. I'll do it next time. Now, I added a regression test for it. WebKit crashes on the test without my fix. Could you take a look again?
Comment on attachment 163323 [details] add test View in context: https://bugs.webkit.org/attachment.cgi?id=163323&action=review > LayoutTests/fast/filesystem/workers/detached-frame-crash.html:6 > +if (window.testRunner) { > + testRunner.dumpAsText(); We use 4-space indentation in JavaScript code too.
Created attachment 163339 [details] fix style
Comment on attachment 163323 [details] add test View in context: https://bugs.webkit.org/attachment.cgi?id=163323&action=review >> LayoutTests/fast/filesystem/workers/detached-frame-crash.html:6 >> + testRunner.dumpAsText(); > > We use 4-space indentation in JavaScript code too. Done
Comment on attachment 163339 [details] fix style View in context: https://bugs.webkit.org/attachment.cgi?id=163339&action=review > Source/WebKit/chromium/src/WebWorkerClientImpl.cpp:214 > + callbacks->didFail(WebFileErrorAbort); Can you confirm this failure in the test?
(In reply to comment #11) > (From update of attachment 163339 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=163339&action=review > > > Source/WebKit/chromium/src/WebWorkerClientImpl.cpp:214 > > + callbacks->didFail(WebFileErrorAbort); > > Can you confirm this failure in the test? I couldn't. I think there is no way to propagate error message outside from a worker on detached frame.
Created attachment 163513 [details] simplify test
Comment on attachment 163513 [details] simplify test rubber stamped
Comment on attachment 163513 [details] simplify test Clearing flags on attachment: 163513 Committed r128263: <http://trac.webkit.org/changeset/128263>
All reviewed patches have been landed. Closing bug.
One of the tests added here, fast/filesystem/workers/detached-frame-crash.html, has been flaky in debug builds on Win/Linux since it was added. See flakiness dashboard: http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fast%2Ffilesystem%2Fworkers%2Fdetached-frame-crash.html Please take a look.
Opened bug 96524 to track flakiness.