+2007-11-05 Mark Rowe <mrowe@apple.com>
+
+ Reviewed by Alp Toker.
+
+ Fix http://bugs.webkit.org/show_bug.cgi?id=15842
+ Bug 15842: [Gtk] about:blank doesn't work
+
+ * WebCoreSupport/FrameLoaderClientGtk.cpp:
+ (WebKit::FrameLoaderClient::finishedLoading): Set the encoding on the frame loader to
+ get work done that is normally done when the first bit of data is received, even in the
+ case of a document with no data (like about:blank).
+
2007-11-03 Alp Toker <alp@atoker.com>
Reviewed by Mark Rowe.
void FrameLoaderClient::clearUnarchivingState(DocumentLoader*) { notImplemented(); }
void FrameLoaderClient::willChangeTitle(DocumentLoader*) { notImplemented(); }
void FrameLoaderClient::didChangeTitle(DocumentLoader *l) { setTitle(l->title(), l->URL()); }
-void FrameLoaderClient::finishedLoading(DocumentLoader*) { notImplemented(); }
void FrameLoaderClient::finalSetupForReplace(DocumentLoader*) { notImplemented(); }
void FrameLoaderClient::setDefersLoading(bool) { notImplemented(); }
bool FrameLoaderClient::isArchiveLoadPending(ResourceLoader*) const { notImplemented(); return false; }
bool FrameLoaderClient::representationExistsForURLScheme(const String&) const { notImplemented(); return false; }
String FrameLoaderClient::generatedMIMETypeForURLScheme(const String&) const { notImplemented(); return String(); }
+void FrameLoaderClient::finishedLoading(DocumentLoader* documentLoader)
+{
+ ASSERT(documentLoader->frame());
+ // Setting the encoding on the frame loader is our way to get work done that is normally done
+ // when the first bit of data is received, even for the case of a document with no data (like about:blank).
+ String encoding = documentLoader->overrideEncoding();
+ bool userChosen = !encoding.isNull();
+ if (encoding.isNull())
+ encoding = documentLoader->response().textEncodingName();
+ documentLoader->frameLoader()->setEncoding(encoding, userChosen);
+}
+
+
void FrameLoaderClient::provisionalLoadStarted()
{
notImplemented();