Adding a caution, the above is just a guess based on my reading of the code since I can not recreate this issue on a Mac inside a debugger.
Perhaps, in Misc/Utility.cpp in SDeleteFile, we simply check the return code from remove and if needed delay/sleep a small amount of time and then try the delete one more time before giving up hoping that during the sleep BV's webkit thread finishes loading in its resources.
Alternatively, we could force BV to switch to CV during deletes and then switch back afterwards?
|