Bug 60735

Summary: Crash when a plug-in tries to load a resource from the application cache
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal CC: danilo, yong.li.webkit
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mitz: review+

Anders Carlsson
Reported 2011-05-12 16:05:52 PDT
Crash when a plug-in tries to load a resource from the application cache
Attachments
Patch (5.43 KB, patch)
2011-05-12 16:40 PDT, Anders Carlsson
mitz: review+
Anders Carlsson
Comment 1 2011-05-12 16:40:36 PDT
mitz
Comment 2 2011-05-12 16:44:28 PDT
Comment on attachment 93364 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=93364&action=review > Source/WebCore/ChangeLog:11 > + This lead to the plug-in stream loader canceling the load, something which the application typo: lead > Source/WebCore/loader/DocumentLoader.cpp:601 > + > + // Calling ResourceLoader::didReceiveResponse can end up cancelling the load, > + // so we need to check if the loader has reached its terminal state. > + if (loader->reachedTerminalState()) > + return; > + > + // Calling ResourceLoader::didReceiveData can end up cancelling the load, > + // so we need to check if the loader has reached its terminal state. > loader->didReceiveData(data->data(), data->size(), data->size(), true); > + if (loader->reachedTerminalState()) The inconsistent way you order the comments is weird and inconsistent.
Anders Carlsson
Comment 3 2011-05-12 16:45:41 PDT
Yong Li
Comment 4 2011-06-09 11:37:13 PDT
Can we assume the http status code is always 200 when resource is loaded from app cache? A status code other than 200 may cause unexpected problems
Note You need to log in before you can comment on or make changes to this bug.