Bug 59169

Summary: Minimize synchronous calls during loading
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: HTML EditingAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.6   
Attachments:
Description Flags
proposed patch mjs: review+

Alexey Proskuryakov
Reported 2011-04-21 20:18:21 PDT
r84526 added synchronous calls to web process to discard marked text when selection changes. The code was structured so that the same call was made when navigating to a new page, which is obviously unnecessary, as everything in Editor best reset anyway. Unfortunately, CoreIPC delivers sync and async calls out of order while serving a sync call in other direction, causing havoc, freezes and crashes as the UI process got confused about web process state. So, we should minimize sync calls, especially when we know that something else is happening in the web process.
Attachments
proposed patch (1.69 KB, patch)
2011-04-21 20:22 PDT, Alexey Proskuryakov
mjs: review+
Alexey Proskuryakov
Comment 1 2011-04-21 20:22:30 PDT
Created attachment 90659 [details] proposed patch
Alexey Proskuryakov
Comment 2 2011-04-21 21:26:45 PDT
Note You need to log in before you can comment on or make changes to this bug.