RESOLVED FIXED 151319
A window with a hung tab waits 5s before closing
https://bugs.webkit.org/show_bug.cgi?id=151319
Summary A window with a hung tab waits 5s before closing
Geoffrey Garen
Reported 2015-11-16 12:18:15 PST
A window with a hung tab waits 5s before closing
Attachments
Patch (2.15 KB, patch)
2015-11-16 13:23 PST, Geoffrey Garen
no flags
Geoffrey Garen
Comment 1 2015-11-16 13:23:43 PST
Anders Carlsson
Comment 2 2015-11-16 15:45:41 PST
Comment on attachment 265607 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=265607&action=review > Source/WebKit2/UIProcess/WebPageProxy.cpp:867 > + // Close without delay if the process allows it. Our goal is to terminate > + // the process, so we check a per-process status bit. > + if (m_process->isSuddenTerminationEnabled()) > + return true; Don't you also want to check that the process has one page?
Geoffrey Garen
Comment 3 2015-11-16 19:32:08 PST
> > Source/WebKit2/UIProcess/WebPageProxy.cpp:867 > > + // Close without delay if the process allows it. Our goal is to terminate > > + // the process, so we check a per-process status bit. > > + if (m_process->isSuddenTerminationEnabled()) > > + return true; > > Don't you also want to check that the process has one page? I don't think we need to. Returning true here just means that we skip the tryClose message and go straight to close. That should be safe even if there's another page in the process. (WKWebView always does this.) Skipping the tryClose message in a process with more than one page is a tiny optimization -- but I mostly did it because it is simpler this way.
Geoffrey Garen
Comment 4 2015-11-17 13:25:01 PST
Comment on attachment 265607 [details] Patch cq+
WebKit Commit Bot
Comment 5 2015-11-17 13:32:01 PST
Comment on attachment 265607 [details] Patch Clearing flags on attachment: 265607 Committed r192528: <http://trac.webkit.org/changeset/192528>
WebKit Commit Bot
Comment 6 2015-11-17 13:32:04 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.