[Webkit-unassigned] [Bug 40209] New: [GTK] Enabling File Reader/Writer APIs
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jun 6 07:22:20 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=40209
Summary: [GTK] Enabling File Reader/Writer APIs
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Platform
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: joone at kldp.org
Created an attachment (id=57976)
--> (https://bugs.webkit.org/attachment.cgi?id=57976)
Proposed Patch
Enabling FileAPI for GTK Port causes build error.
Because there are 3 functions not implemented yet in FileSystemGtk.cpp
* CString fileSystemRepresentation(const String& path)
* PlatformFileHandle openFile(const String& path, FileOpenMode mode)
* int readFromFile(PlatformFileHandle handle, char* data, int length)
I copied these functions from other port and tweaked a bit.
However, it could not pass fast/files test case.
The problem is that fileBlob, the parameter of readAsBinaryString is null as follows,
#0 0x002c42d8 in WTF::RefPtr<WebCore::StringImpl>::operator! (this=0xc) at ../../JavaScriptCore/wtf/RefPtr.h:68
#1 0x002ccc27 in WebCore::String::length (this=0xc) at ../../JavaScriptCore/wtf/text/WTFString.h:123
#2 0x00ca4b6f in WebCore::String::utf8 (this=0xc) at ../../JavaScriptCore/wtf/text/WTFString.cpp:641
#3 0x005b19da in WebCore::FileReader::readAsBinaryString (this=0x85ab058, fileBlob=0x0) at ../../WebCore/html/FileReader.cpp:88
#4 0x00df4baf in WebCore::jsFileReaderPrototypeFunctionReadAsBinaryString (exec=0xb544e118) at DerivedSources/JSFileReader.cpp:390
Is there any idea for solving this problem?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list