Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Issue 2568903002: PDF viewer: Specify tabId when navigating with chrome.tabs.update. (Closed)

Created:
4 years ago by Kevin McNee
Modified:
4 years ago
Reviewers:
raymes
CC:
chromium-reviews, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PDF viewer: Specify tabId when navigating with chrome.tabs.update. Currently, the use of chrome.tabs.update to navigate defaults to using the selected tab. If another tab is selected before the navigation is performed, this other tab will be navigated instead of the PDF viewer's tab. We pass the viewer's tabId to chrome.tabs.update to ensure the correct tab is navigated. BUG=672563 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/cf2bc970b5ee619700cc1f334b4c2145cf0a5ab5 Cr-Commit-Position: refs/heads/master@{#438563}

Patch Set 1 #

Patch Set 2 : Add test. #

Total comments: 6

Patch Set 3 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -7 lines) Patch
M chrome/browser/pdf/pdf_extension_test.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/resources/pdf/navigator.js View 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/resources/pdf/pdf.js View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
Kevin McNee
raymes@: Here's the fix for navigating the correct tab.
4 years ago (2016-12-12 18:40:21 UTC) #3
raymes
Thanks Kevin! We should also add a test. Have a look in pdf_extension_test.cc. This does ...
4 years ago (2016-12-13 00:59:06 UTC) #8
Kevin McNee
On 2016/12/13 00:59:06, raymes wrote: > Thanks Kevin! > > We should also add a ...
4 years ago (2016-12-13 21:38:21 UTC) #9
raymes
lgtm, thank you! https://codereview.chromium.org/2568903002/diff/20001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2568903002/diff/20001/chrome/browser/pdf/pdf_extension_test.cc#newcode909 chrome/browser/pdf/pdf_extension_test.cc:909: IN_PROC_BROWSER_TEST_F(PDFExtensionTest, NavigationOnCorrectTab) { nit: You may ...
4 years ago (2016-12-14 01:43:28 UTC) #14
Kevin McNee
https://codereview.chromium.org/2568903002/diff/20001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2568903002/diff/20001/chrome/browser/pdf/pdf_extension_test.cc#newcode909 chrome/browser/pdf/pdf_extension_test.cc:909: IN_PROC_BROWSER_TEST_F(PDFExtensionTest, NavigationOnCorrectTab) { On 2016/12/14 01:43:28, raymes wrote: > ...
4 years ago (2016-12-14 16:03:33 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2568903002/40001
4 years ago (2016-12-14 16:05:26 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-14 18:58:28 UTC) #21
commit-bot: I haz the power
4 years ago (2016-12-14 19:02:38 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cf2bc970b5ee619700cc1f334b4c2145cf0a5ab5
Cr-Commit-Position: refs/heads/master@{#438563}

Powered by Google App Engine
This is Rietveld 408576698