Bug 17700

Summary: Webkit refuses to open plain/text files with non-ASCII characters inside browser window
Product: WebKit Reporter: jasneet <jasneet>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, jasneet, mitz, webkit
Priority: P2 Keywords: HasReduction, PlatformOnly
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
reduction none

Description jasneet 2008-03-06 17:12:15 PST
I Steps:
Go to
the attached reduction
Click on first link and observe the behavior
Click on second link and observe the behavior.

II Issue:
clicking the first link - the file is downloaded.
clicking the second link - the file opens directly in browser.

III Conclusion: The behavior is inconsistent. If the txt file is saved as ANSI with non-ASCII characters; Safari downloads the file. If the text file is saved as UTF8 or saved as ANSI with only English content; Safari opens the file directly in the browser.

IV Other browsers:
IE7: ok
FF: ok
Opera: not ok

V Nightly tested: 30628
Comment 1 jasneet 2008-03-06 17:13:00 PST
Created attachment 19577 [details]
reduction
Comment 2 Robert Blaut 2008-03-06 23:54:45 PST
Confirmed, but only on Windows. Webkit on Mac OS X 10.5 works as expected - opens both text files inside browser window.
Comment 3 Eric Seidel (no email) 2008-04-02 22:28:24 PDT
I seem to hit this all the time.  It's really annoying.