Don't abort the PDF stream if a navigation is intiated within the same page.
If a PDF file is loaded via a link click with a history.replacestate call in the pagehide/pageshow event for the main html page, we get a DidStartNavigation notification on the guest webcontents created for the EmbeddedObserver. Currently we abort the stream if it is a top level navigation. It seems like we should not abort the stream if the navigation is within the same page. The problem does not occur if the PDF is opened in a different tab or window Should fix the black PDF issues with M55. BUG=677580 TEST=Covered by browser test PDFExtensionTest.OpenPDFOnLinkClickWithReplaceState Review-Url: https://codereview.chromium.org/2611643004 Cr-Commit-Position: refs/heads/master@{#441857}
Showing
Please register or sign in to comment