Bug 86454 - [BlackBerry] Networking - Can't load empty local main resource
Summary: [BlackBerry] Networking - Can't load empty local main resource
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit BlackBerry (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-15 01:43 PDT by Sean Wang
Modified: 2012-05-17 06:53 PDT (History)
6 users (show)

See Also:


Attachments
Patch (2.60 KB, patch)
2012-05-15 01:58 PDT, Sean Wang
xuewen.ok: commit-queue-
Details | Formatted Diff | Diff
Patch (2.69 KB, patch)
2012-05-15 02:15 PDT, Sean Wang
no flags Details | Formatted Diff | Diff
Patch (2.82 KB, patch)
2012-05-15 03:44 PDT, Sean Wang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Wang 2012-05-15 01:43:04 PDT
When loading a html whose length is 0, the browser show a dialog "The network is unavailable. Plese try again later.
How to reproduce:
1) telnet to the blaceberry device, and touch a empty file using the "touch empty.html" command.
2) load the new created file using "file:///path-to-empty.html"
3) the error dialog will be observed.

The browser should can load an empty file and not return a error.
Comment 1 Sean Wang 2012-05-15 01:58:54 PDT
Created attachment 141894 [details]
Patch
Comment 2 WebKit Review Bot 2012-05-15 02:00:51 PDT
Attachment 141894 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/ChangeLog:10:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Sean Wang 2012-05-15 02:01:17 PDT
Comment on attachment 141894 [details]
Patch

obsolete this patch, I didn't remove the "No new tests. (OOPS!)"
Comment 4 Sean Wang 2012-05-15 02:15:50 PDT
Created attachment 141897 [details]
Patch
Comment 5 WebKit Review Bot 2012-05-15 02:19:17 PDT
Attachment 141897 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/ChangeLog:10:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Sean Wang 2012-05-15 03:44:04 PDT
Created attachment 141910 [details]
Patch

Correct change log
Comment 7 Joe Mason 2012-05-15 08:29:36 PDT
I would prefer to fix this in the platform layer and have an empty file return a Is it curl that's status of 0 (equivalent to HTTP 200) to webkit before the close, rather than special-casing it in webkit.
Comment 8 Sean Wang 2012-05-15 09:16:15 PDT
(In reply to comment #7)
> I would prefer to fix this in the platform layer and have an empty file return a Is it curl that's status of 0 (equivalent to HTTP 200) to webkit before the close, rather than special-casing it in webkit.

OK, then let's close this bug.
Comment 9 Rob Buis 2012-05-17 06:53:22 PDT
Comment on attachment 141910 [details]
Patch

Clearing review flag, bug is invalid.