Changeset 33491 in webkit
- Timestamp:
- May 15, 2008 10:22:44 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r33486 r33491 1 2008-05-15 Alexey Proskuryakov <ap@webkit.org> 2 3 Reviewed by Dan Bernstein. 4 5 https://bugs.webkit.org/show_bug.cgi?id=10707 6 DumpRenderTree should not be able to access non-local resources 7 8 * fast/doctypes/resources/TestDoctype.js: 9 * svg/custom/loadevents-capturing.svg: 10 * svg/custom/loadevents-externalresourcesrequired-displaynone.svg: 11 * svg/custom/loadevents-externalresourcesrequired.svg: 12 * svg/custom/loadevents-normal-displaynone.svg: 13 * svg/custom/loadevents-normal.svg: 14 1 15 2008-05-15 Alexey Proskuryakov <ap@webkit.org> 2 16 -
trunk/LayoutTests/fast/doctypes/resources/TestDoctype.js
r30431 r33491 7 7 { 8 8 var div = doc.createElement('div'); 9 div.innerHTML = "<img src=' http://www.google.com/intl/en_ALL/images/logo.gif' style='background-color: green; width: 100px; height: 100px'><br><img src='http://www.google.com/intl/en_ALL/images/logo.gif' style='background-color: green; width: 100px; height: 100px'>";9 div.innerHTML = "<img src='' style='background-color: green; width: 100px; height: 100px'><br><img src='' style='background-color: green; width: 100px; height: 100px'>"; 10 10 doc.body.appendChild(div); 11 11 var hasQuirk = doc.defaultView.getComputedStyle(div, "").getPropertyValue("height") == "200px"; -
trunk/LayoutTests/svg/custom/loadevents-capturing.svg
r32738 r33491 29 29 </script> 30 30 <g> 31 <image externalResourcesRequired="false" id="image" width="100" height="100" xlink:href=" http://trac.webkit.org/projects/webkit/browser/trunk/LayoutTests/svg/custom/resources/green-checker.png?format=raw" />31 <image externalResourcesRequired="false" id="image" width="100" height="100" xlink:href="resources/green-checker.png" /> 32 32 <text y="130" x="20">This tests that load dispatching works when there are no</text> 33 33 <text y="150" x="20">direct listeners, but there are capturing event listeners on an ancestor. Bug 16447</text> -
trunk/LayoutTests/svg/custom/loadevents-externalresourcesrequired-displaynone.svg
r32738 r33491 24 24 </script> 25 25 <g onload="reportLoadEvent(this)"> 26 <image display="none" externalResourcesRequired="true" id="image" onload="reportLoadEvent(this)" width="100" height="100" xlink:href=" http://trac.webkit.org/projects/webkit/browser/trunk/LayoutTests/svg/custom/resources/green-checker.png?format=raw" />26 <image display="none" externalResourcesRequired="true" id="image" onload="reportLoadEvent(this)" width="100" height="100" xlink:href="resources/green-checker.png" /> 27 27 <text y="130" x="20">This tests load dispatching order with externalResourcesRequired and an image that does not render(display=none). Bug 16447</text> 28 28 <text y="150" x="20" id="console" onload="reportLoadEvent(this)"/> -
trunk/LayoutTests/svg/custom/loadevents-externalresourcesrequired.svg
r32738 r33491 24 24 </script> 25 25 <g onload="reportLoadEvent(this)"> 26 <image externalResourcesRequired="true" id="image" onload="reportLoadEvent(this)" width="100" height="100" xlink:href=" http://trac.webkit.org/projects/webkit/browser/trunk/LayoutTests/svg/custom/resources/green-checker.png?format=raw" />26 <image externalResourcesRequired="true" id="image" onload="reportLoadEvent(this)" width="100" height="100" xlink:href="resources/green-checker.png" /> 27 27 <text y="130" x="20">This tests load dispatching order with externalResourcesRequired. Bug 16447</text> 28 28 <text y="150" x="20" id="console" onload="reportLoadEvent(this)"/> -
trunk/LayoutTests/svg/custom/loadevents-normal-displaynone.svg
r32738 r33491 24 24 </script> 25 25 <g onload="reportLoadEvent(this)"> 26 <image display="none" externalResourcesRequired="false" id="image" onload="reportLoadEvent(this)" width="100" height="100" xlink:href=" http://trac.webkit.org/projects/webkit/browser/trunk/LayoutTests/svg/custom/resources/green-checker.png?format=raw" />26 <image display="none" externalResourcesRequired="false" id="image" onload="reportLoadEvent(this)" width="100" height="100" xlink:href="resources/green-checker.png" /> 27 27 <text y="130" x="20">This tests normal load dispatching order and an image that does not render(display=none). Bug 16447</text> 28 28 <text y="150" x="20" id="console" onload="reportLoadEvent(this)"/> -
trunk/LayoutTests/svg/custom/loadevents-normal.svg
r32738 r33491 24 24 </script> 25 25 <g onload="reportLoadEvent(this)"> 26 <image externalResourcesRequired="false" id="image" onload="reportLoadEvent(this)" width="100" height="100" xlink:href=" http://trac.webkit.org/projects/webkit/browser/trunk/LayoutTests/svg/custom/resources/green-checker.png?format=raw" />26 <image externalResourcesRequired="false" id="image" onload="reportLoadEvent(this)" width="100" height="100" xlink:href="resources/green-checker.png" /> 27 27 <text y="130" x="20">This tests normal load dispatching order. Bug 16447</text> 28 28 <text y="150" x="20" id="console" onload="reportLoadEvent(this)"/> -
trunk/WebKitTools/ChangeLog
r33489 r33491 1 2008-05-15 Alexey Proskuryakov <ap@webkit.org> 2 3 Reviewed by Dan Bernstein. 4 5 https://bugs.webkit.org/show_bug.cgi?id=10707 6 DumpRenderTree should not be able to access non-local resources 7 8 * DumpRenderTree/mac/ResourceLoadDelegate.mm: 9 (-[ResourceLoadDelegate webView:resource:willSendRequest:redirectResponse:fromDataSource:]): 10 Block them, and complain. 11 1 12 2008-05-15 Kevin Ollivier <kevino@theolliviers.com> 2 13 -
trunk/WebKitTools/DumpRenderTree/mac/ResourceLoadDelegate.mm
r30895 r33491 120 120 NSString *string = [NSString stringWithFormat:@"%@ - willSendRequest %@ redirectResponse %@", identifier, [newRequest _drt_descriptionSuitableForTestResult], 121 121 [redirectResponse _drt_descriptionSuitableForTestResult]]; 122 printf 122 printf("%s\n", [string UTF8String]); 123 123 } 124 125 if (disallowedURLs && CFSetContainsValue(disallowedURLs, [newRequest URL])) 124 125 NSURL *url = [newRequest URL]; 126 NSString *host = [url host]; 127 if (host 128 && (NSOrderedSame == [[url scheme] caseInsensitiveCompare:@"http"] || NSOrderedSame == [[url scheme] caseInsensitiveCompare:@"https"]) 129 && NSOrderedSame != [host compare:@"127.0.0.1"] 130 && NSOrderedSame != [host compare:@"255.255.255.255"] // used in some tests that expect to get back an error 131 && NSOrderedSame != [host caseInsensitiveCompare:@"localhost"]) { 132 fprintf(stderr, "Blocked access to external URL %s\n", [[url absoluteString] cStringUsingEncoding:NSUTF8StringEncoding]); 133 return nil; 134 } 135 136 if (disallowedURLs && CFSetContainsValue(disallowedURLs, url)) 126 137 return nil; 127 138
Note: See TracChangeset
for help on using the changeset viewer.