
This change adds a new event to the `pdfViewerPrivate` extension API that listens for URL updates from the browser. If the URL contains a fragment with parsable PDF viewport parameters, then the PDF viewer will update the viewport accordingly. The PDF navigations are intercepted when coming from the Lens side panel if they match the current URL loaded in the live page and the PDF document helper exists for one of the RenderFrameHosts in the WebContents. Change-Id: I8cc3742670278371f298e5c79822bb362883ced7 Bug: b:383575917, 390023108 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6160067 Reviewed-by: Duncan Mercer <mercerd@google.com> Reviewed-by: John Lee <johntlee@chromium.org> Commit-Queue: Juan Mojica <juanmojica@google.com> Reviewed-by: Lei Zhang <thestig@chromium.org> Reviewed-by: Kelvin Jiang <kelvinjiang@chromium.org> Reviewed-by: Tim <tjudkins@chromium.org> Cr-Commit-Position: refs/heads/main@{#1406765}