Title: [138470] trunk/Source/WebKit/blackberry
Revision
138470
Author
[email protected]
Date
2012-12-25 18:29:59 -0800 (Tue, 25 Dec 2012)

Log Message

[BlackBerry] Need to initialize the onLine in the global
https://bugs.webkit.org/show_bug.cgi?id=105749

Reviewed by George Staikos.

The NetworkStatus is initialized to online in the constructor by default,
we need to update it correctly with the network status at startup.

* Api/BlackBerryGlobal.cpp:
(BlackBerry::WebKit::globalInitialize):

Modified Paths

Diff

Modified: trunk/Source/WebKit/blackberry/Api/BlackBerryGlobal.cpp (138469 => 138470)


--- trunk/Source/WebKit/blackberry/Api/BlackBerryGlobal.cpp	2012-12-26 02:15:15 UTC (rev 138469)
+++ trunk/Source/WebKit/blackberry/Api/BlackBerryGlobal.cpp	2012-12-26 02:29:59 UTC (rev 138470)
@@ -85,6 +85,7 @@
     BlackBerry::Platform::Settings* settings = BlackBerry::Platform::Settings::instance();
 
     ImageSource::setMaxPixelsPerDecodedImage(settings->maxPixelsPerDecodedImage());
+    updateOnlineStatus(settings->isNetworkAvailable());
 }
 
 void collectJavascriptGarbageNow()

Modified: trunk/Source/WebKit/blackberry/ChangeLog (138469 => 138470)


--- trunk/Source/WebKit/blackberry/ChangeLog	2012-12-26 02:15:15 UTC (rev 138469)
+++ trunk/Source/WebKit/blackberry/ChangeLog	2012-12-26 02:29:59 UTC (rev 138470)
@@ -1,3 +1,16 @@
+2012-12-25  Charles Wei  <[email protected]>
+
+        [BlackBerry] Need to initialize the onLine in the global
+        https://bugs.webkit.org/show_bug.cgi?id=105749
+
+        Reviewed by George Staikos.
+
+        The NetworkStatus is initialized to online in the constructor by default,
+        we need to update it correctly with the network status at startup.
+
+        * Api/BlackBerryGlobal.cpp:
+        (BlackBerry::WebKit::globalInitialize):
+
 2012-12-24  Jakob Petsovits  <[email protected]>
 
         [BlackBerry] Fix various RenderQueue bugs introduced by r138024.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to