summaryrefslogtreecommitdiffstats
path: root/ios/web
diff options
context:
space:
mode:
authorpkl <pkl@chromium.org>2015-10-19 18:03:42 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-20 01:04:20 +0000
commit56951cb94edd4aa9d3c32e67b121724612cdc11b (patch)
treedac4d94a797e30da3d2245f4f110dfe46af4bffb /ios/web
parentd939a4518a20a4ac4d88f006b1b3ab6d49642616 (diff)
downloadchromium_src-56951cb94edd4aa9d3c32e67b121724612cdc11b.zip
chromium_src-56951cb94edd4aa9d3c32e67b121724612cdc11b.tar.gz
chromium_src-56951cb94edd4aa9d3c32e67b121724612cdc11b.tar.bz2
Removed stale TODO for isStaticFileRequest.
The practice of allowing the loading of .{png,jpg,jpeg} files when User-Agent is not available seems safe in theory and no problems observed in practice. So, it's a good time to close out the bug and clean up the TODO. BUG=228603 Review URL: https://codereview.chromium.org/1411073002 Cr-Commit-Position: refs/heads/master@{#354942}
Diffstat (limited to 'ios/web')
-rw-r--r--ios/web/web_state/ui/crw_static_file_web_view.mm5
1 files changed, 1 insertions, 4 deletions
diff --git a/ios/web/web_state/ui/crw_static_file_web_view.mm b/ios/web/web_state/ui/crw_static_file_web_view.mm
index e40a0af..0a11041 100644
--- a/ios/web/web_state/ui/crw_static_file_web_view.mm
+++ b/ios/web/web_state/ui/crw_static_file_web_view.mm
@@ -74,11 +74,8 @@ NSString* const kStaticFileUserAgent = @"UIWebViewForStaticFileContent";
}
// If a request originated from another file:/// page, the User-Agent
- // will not be there. To be safe, check that the request is for image
+ // is not available. In this case, check that the request is for image
// resources only.
- // TODO(pkl): This current test to allow nil User-Agent and images to
- // be loaded. A more air-tight implementation should inline images as
- // "data" instead. See crbug.com/228603
NSString* suffix = [[request URL] pathExtension];
return [@[ @"png", @"jpg", @"jpeg" ] containsObject:[suffix lowercaseString]];
}