Title: [96195] trunk/Source/WebKit/efl
Revision
96195
Author
[email protected]
Date
2011-09-28 00:12:40 -0700 (Wed, 28 Sep 2011)

Log Message

[EFL] URL of resources are not decoded.
https://bugs.webkit.org/show_bug.cgi?id=66540

Patch by Grzegorz Czajkowski <[email protected]> on 2011-09-28
Reviewed by Ryosuke Niwa.

Fix ewk_frame_resources_location_get which was returning the encoded URL of resources.
As a result characters for instance, %20 occurred. For now returned strings are decoded.

* ewk/ewk_frame.cpp:
(ewk_frame_resources_location_get):

Modified Paths

Diff

Modified: trunk/Source/WebKit/efl/ChangeLog (96194 => 96195)


--- trunk/Source/WebKit/efl/ChangeLog	2011-09-28 07:02:42 UTC (rev 96194)
+++ trunk/Source/WebKit/efl/ChangeLog	2011-09-28 07:12:40 UTC (rev 96195)
@@ -1,3 +1,16 @@
+2011-09-28  Grzegorz Czajkowski  <[email protected]>
+
+        [EFL] URL of resources are not decoded.
+        https://bugs.webkit.org/show_bug.cgi?id=66540
+
+        Reviewed by Ryosuke Niwa.
+
+        Fix ewk_frame_resources_location_get which was returning the encoded URL of resources.
+        As a result characters for instance, %20 occurred. For now returned strings are decoded.
+
+        * ewk/ewk_frame.cpp:
+        (ewk_frame_resources_location_get):
+
 2011-09-27  Raphael Kubo da Costa  <[email protected]>
 
         [EFL] Make ewk_view emit the "load,document,finished" signal.

Modified: trunk/Source/WebKit/efl/ewk/ewk_frame.cpp (96194 => 96195)


--- trunk/Source/WebKit/efl/ewk/ewk_frame.cpp	2011-09-28 07:02:42 UTC (rev 96194)
+++ trunk/Source/WebKit/efl/ewk/ewk_frame.cpp	2011-09-28 07:12:40 UTC (rev 96195)
@@ -1558,7 +1558,7 @@
         if (!imageElement || imageElement->src().isNull() || imageElement->src().isEmpty())
             continue;
 
-        WTF::String imageLocation = imageElement->src().string();
+        WTF::String imageLocation = WebCore::decodeURLEscapeSequences(imageElement->src().string());
         // Look for duplicated location.
         Eina_List* listIterator = 0;
         void* data = ""

Modified: trunk/Source/WebKit/efl/ewk/ewk_frame.h (96194 => 96195)


--- trunk/Source/WebKit/efl/ewk/ewk_frame.h	2011-09-28 07:02:42 UTC (rev 96194)
+++ trunk/Source/WebKit/efl/ewk/ewk_frame.h	2011-09-28 07:12:40 UTC (rev 96195)
@@ -794,7 +794,7 @@
  *
  * It's part of HTML saving feature. Currently only locations of images are supported.
  * An application might find these values in frame source and
- * replace them to the local paths. Values are not duplicated.
+ * replace them to the local paths. Values are not duplicated and they are decoded.
  *
  * @param o frame smart object to get the resources list
  * @return @c Eina_List with location of resources on success, or @c 0 on failure,
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to