commit | 630f1690aac12a8a96b9e4edccae8718834c3a68 | [log] [tgz] |
---|---|---|
author | Eugene But <eugenebut@google.com> | Tue Dec 11 02:11:07 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Dec 11 02:11:07 2018 |
tree | 4f6fa28c49150c6523c364acf9f6833bd45eea37 | |
parent | 8eed09b1ff9a59c6cc6e0386aa40dddffdcefe3a [diff] |
Fix external file presentation. This bug is a regression, because ios/web started presenting error pages if hasControllerForURL: returns NO and the URL is not a WebUI URL. ios/web change was a reasonable change, but BVC did not follow API contract and returned NO from hasControllerForURL: even if controller existed. Return YES from hasControllerForURL: for kChromeUIExternalFileHost if NativeController actually exists. This change enforces existing API constract for CRWNativeContentProvider. EG tests do not have good infrastructure to write end-to-end test for external URLs. BVC is also not testable, so this CL does not include tests. Bug: 902271 Change-Id: I81c08b439460bcbf81f0e7234f9cdbe57938e6fe Reviewed-on: https://chromium-review.googlesource.com/c/1370931 Commit-Queue: Eugene But <eugenebut@chromium.org> Reviewed-by: Kurt Horimoto <kkhorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#615384}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .