DescriptionFix the case where the browser livelocks if we cannot open a file.
If one tries to upload a file that one doesn't have read access to,
the browser livelocks. It tries to read from the file, gets nothing
but spins forever because it knows that it hasn't finished reading.
To address this, firstly we add a check at stat() time to make sure
that we can read the file. However, this doesn't take care of the case
where the access() call was incorrect, or the permissions have changed
under us. In this case, we replace the missing file with NULs.
BUG=30850
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42152
Patch Set 1 #
Total comments: 14
Patch Set 2 : ... #Patch Set 3 : ... #
Total comments: 19
Patch Set 4 : ... #
Total comments: 22
Patch Set 5 : ... #Patch Set 6 : ... #
Total comments: 13
Patch Set 7 : ... #
Total comments: 7
Patch Set 8 : Uploading checkpoint. This is known to cause all uploads on Windows to be zero bytes long. #
Messages
Total messages: 14 (0 generated)
|