• Eric Lawrence's avatar
    Log external handler invocations to the console · 89eb5791
    Eric Lawrence authored
    Previously, failing to invoke an external protocol handler ('foo://bar')
    would fail silently if the protocol was not registered or if the user
    gesture requirement was not met. This limitation made it difficult for
    web developers to troubleshoot such situations. This CL emits errors to
    the Developer Tools console when the protocol handler is not registered,
    is forbidden, or is temporarily blocked pending a user-gesture.
    Similarly, if an external handler is launched, an informational log
    entry is added.
    
    Bug: 1096610
    Change-Id: Ie562d0c030f138f7e5ac0a09576ba73a79de3971
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2252848Reviewed-by: default avatarMatt Giuca <mgiuca@chromium.org>
    Commit-Queue: Eric Lawrence [MSFT] <ericlaw@microsoft.com>
    Cr-Commit-Position: refs/heads/master@{#782007}
    89eb5791
external_protocol_handler_browsertest.cc 3.75 KB