Commit 8a0f4e28 authored by raymes's avatar raymes Committed by Commit bot

Prevent the PDF iframe from being tab-focusable in print preview.

This is interfering slightly with tab ordering. The plugin never used to be tab
focusable.

BUG=455552

Review URL: https://codereview.chromium.org/889603005

Cr-Commit-Position: refs/heads/master@{#314962}
parent 16accd4c
......@@ -263,6 +263,8 @@ function PDFCreateOutOfProcessPlugin(src) {
iframe.setAttribute(
'src',
'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/index.html?' + src);
// Prevent the frame from being tab-focusable.
iframe.setAttribute('tabindex', '-1');
var client = new PDFScriptingAPI(window);
iframe.onload = function() {
client.setPlugin(iframe.contentWindow);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment