Mandoline: fix the issue of same-URL navigation.
Sometimes, typing the same URL as the current one into the omnibox doesn't load the page again (but loses the previous load).
This is actually caused by three bugs:
- The identity used for application instance registration and lookup are actually constructed differently. So the application manager is confused. In some cases, it creates/registers multiple instances under the same identity.
- HTMLDocumentApplicationDelegate doesn't retain the application while waiting for URL load completion. So if there is no other HTMLDocumentOOPIF instances are alive, the app will be shutdown.
- When an app for "about:blank" already exists, it is reused and we end up in HTMLDocumentApplicationDelegate::ConfigureIncomingConnection(), trying to fetch the URL. We cannot fetch the URL using mojo::URLLoader because it is not an actual Web resource.
BUG=524539
Review URL: https://codereview.chromium.org/
1313253002
Cr-Commit-Position: refs/heads/master@{#345694}