• Ting Shao's avatar
    [Service Worker] Add console message for aborted preload request · 06f028f7
    Ting Shao authored
    When a navigation preload request is aborted, no console message is
    sent to the service worker. That's because the "unsanitized_message"
    field of blink::WebServiceWorkerError is not set.
    
    When Sending the message to console, prefer the unsanitized one if
    avaiable. Update service worker browser test to cover this change.
    
    Bug: 877870
    Test: content_browsertests  -gtest_filter=ServiceWorkerNavigationPreloadTest.CanceledByInterceptor
    Change-Id: Icad28ce1a9feb40b729bc2504d9c9adb33593a0a
    Reviewed-on: https://chromium-review.googlesource.com/1235376
    Commit-Queue: Leon Han <leon.han@intel.com>
    Reviewed-by: default avatarMatt Falkenhagen <falken@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#593823}
    06f028f7
AUTHORS 37.5 KB