Bug 40832 - [GTK] The url passed to the WebView during layout tests is invalid
Summary: [GTK] The url passed to the WebView during layout tests is invalid
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 40833
  Show dependency treegraph
 
Reported: 2010-06-18 07:59 PDT by Martin Robinson
Modified: 2010-06-24 15:07 PDT (History)
0 users

See Also:


Attachments
Patch for this issue + a small cleanup (5.96 KB, patch)
2010-06-18 09:07 PDT, Martin Robinson
xan.lopez: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Robinson 2010-06-18 07:59:53 PDT
Instead of passing file:///full/url/to/test.html DumpRenderTree passes file://relative/path/to/file.html.
Comment 1 Martin Robinson 2010-06-18 08:01:08 PDT
Further information: While the page loads fine, accessing the URI either via webkit_web_view_get_uri or webkit_web_frame_get_uri returns the original malformed URL.
Comment 2 Martin Robinson 2010-06-18 09:07:33 PDT
Created attachment 59118 [details]
Patch for this issue + a small cleanup
Comment 3 Xan Lopez 2010-06-24 13:40:32 PDT
Comment on attachment 59118 [details]
Patch for this issue + a small cleanup

>-    bool isSVGW3CTest = (gLayoutTestController->testPathOrURL().find("svg/W3C-SVG-1.1") != string::npos);
>+    bool isSVGW3CTest = (testURL.find("svg/W3C-SVG-1.1") != string::npos);

No need for that parenthesis.
Comment 4 Martin Robinson 2010-06-24 15:07:53 PDT
Committed r61790: <http://trac.webkit.org/changeset/61790>