Fix for error page text break due to word break style being break all
authorpraveen.ks <praveen.ks@samsung.com>
Sat, 27 Apr 2013 02:13:48 +0000 (11:13 +0900)
committerpraveen.ks <praveen.ks@samsung.com>
Sat, 4 May 2013 07:40:08 +0000 (16:40 +0900)
[Title] Fix for error page text break
[Issue#] P130425-7080
[Problem] Error page text after "Web page not available" breaks at any character
[Cause] It is due to <p> before error text tag having style attribute set to word-break:break-all
[Solution] Remmove style attribute from <p> tag and apply it to the <a> tag for link present in error text
[Developer] Praveen (praveen.ks@samsung.com)

Source/WebKit2/UIProcess/API/efl/ewk_error.cpp
Source/WebKit2/UIProcess/efl/htmlfiles/errorPage.html [changed mode: 0644->0755]

index 8607718..dfc190f 100755 (executable)
@@ -194,7 +194,7 @@ void ewk_error_load_error_page(Ewk_Error* error, WKPageRef page)
     }
 #endif
 
-    String urlLink = String::format("<a href=%s>%s</a>", static_cast<const char*>(error->url), static_cast<const char*>(error->url));
+    String urlLink = String::format("<a style=word-break:break-all href=%s>%s</a>", static_cast<const char*>(error->url), static_cast<const char*>(error->url));
     char errorMessage[1280] = {0x00, };
 
 #if ENABLE(TIZEN_WEBKIT2_TEXT_TRANSLATION)
old mode 100644 (file)
new mode 100755 (executable)
index 138f57c..94a5432
@@ -39,7 +39,7 @@ font-size:70%%;
 <div id=errorMsg>
 <script type='text/javascript'>
 <!--errorMessage-->
-document.write("<p style=word-break:break-all>%errorMessage%</p>");
+document.write("<p>%errorMessage%</p>");
 <!--errorCause-->
 document.write("<p><ul><li><strong>%errorCause%</strong></ul></br>");
 <!--errorSuggestions-->