Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OOP PDF: Use the stream's tab ID when interacting with chrome.tabs.
Previously, chrome.tabs API calls were not passed the tab ID and chrome.tabs event listeners did not filter by tab ID. This caused zooms from other tabs of the same domain to affect PDF zoom and the active tab at the time of PDF load to be switched to manual zoom and zoomed to the initial zoom for the PDF. This CL changes those calls and event handlers to only affect and be affected by the tab containing the PDF. BUG=418818 TEST=Run with --out-of-process-pdf. Open a PDF and another page from the same domain. Zooming the other page should not affect the PDF's zoom. Reload the PDF and focus the other page before the PDF load completes. The other page should not be zoomed when the PDF load completes and zooming the other page should function normally. Review URL: https://codereview.chromium.org/727623003 Cr-Commit-Position: refs/heads/master@{#304377}
- Loading branch information