Patch for blank frame.
authorTaejeong Lee <taejeong.lee@samsung.com>
Wed, 12 Dec 2012 03:01:08 +0000 (12:01 +0900)
committerTaejeong Lee <taejeong.lee@samsung.com>
Wed, 12 Dec 2012 04:05:29 +0000 (13:05 +0900)
 * A blank frame has "about:blank" uri. But, this uri loading is rejected on wrt action.
   so onload event related blank frame was not triggered. it was fixed.

[Issue#] TDIS-792
[Problem] onload event related blank frame was not triggered.
[Cause] "about:blank" uri loading was rejected on wrt action.
[Solution] resolved rejecting.

Change-Id: Ib2dce363c4c21173a0d65114e8f3048a6297652f

src/view/webkit/bundles/wrt-wk2-bundle.cpp

index 34ecd56..e859ecd 100644 (file)
@@ -80,6 +80,7 @@ const char * const SCHEME_HTTPS = "https";
 const char * const SCHEME_FILE = "file://";
 const char * const DATA_STRING = "data:";
 const char * const BASE64_STRING = ";base64,";
+const char * const BLANK_PAGE_URL = "about:blank";
 }
 
 Bundle::Bundle(WKBundleRef bundle) :
@@ -696,6 +697,12 @@ WKBundlePagePolicyAction Bundle::pageDecidePolicyForNavigationAction(
 
     LogInfo("Uri being checked: " << request_uri);
 
+    // exception uri
+    if( request_uri == BLANK_PAGE_URL )
+    {
+        return WKBundlePagePolicyActionUse;
+    }
+
     // get scheme string
     std::string request_scheme = getScheme(request_uri);