Bug 40832

Summary: [GTK] The url passed to the WebView during layout tests is invalid
Product: WebKit Reporter: Martin Robinson <mrobinson>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 40833    
Attachments:
Description Flags
Patch for this issue + a small cleanup xan.lopez: review+

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>