[BlackBerry] Should pass through an actual error code when calling notifyLoadFinished
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Apr 2013 17:55:21 +0000 (17:55 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Apr 2013 17:55:21 +0000 (17:55 +0000)
https://bugs.webkit.org/show_bug.cgi?id=114815

Patch by Ed Baker <edbaker@blackberry.com> on 2013-04-18
Reviewed by Rob Buis.

PR #318079

* WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
(WebCore::FrameLoaderClientBlackBerry::postProgressFinishedNotification):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@148685 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/blackberry/ChangeLog
Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp

index 5cca59e..9de7762 100644 (file)
@@ -1,3 +1,15 @@
+2013-04-18  Ed Baker  <edbaker@blackberry.com>
+
+        [BlackBerry] Should pass through an actual error code when calling notifyLoadFinished
+        https://bugs.webkit.org/show_bug.cgi?id=114815
+
+        Reviewed by Rob Buis.
+
+        PR #318079
+
+        * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
+        (WebCore::FrameLoaderClientBlackBerry::postProgressFinishedNotification):
+
 2013-04-18  Xuefei Ren  <xren@blackberry.com>
 
         remove build warning(unused parameter)
index 7a5a9b3..a1aac50 100644 (file)
@@ -901,8 +901,7 @@ void FrameLoaderClientBlackBerry::postProgressFinishedNotification()
     // we may need to call readyToRender now.
     readyToRender(false);
 
-    // FIXME: Send up a real status code.
-    m_webPagePrivate->m_client->notifyLoadFinished(m_loadError.isNull() ? 0 : -1);
+    m_webPagePrivate->m_client->notifyLoadFinished(m_loadError.isNull() ? 0 : m_loadError.errorCode());
 
     // Notify plugins that are waiting for the page to fully load before starting that
     // the load has completed.