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

Issue 1561883004: Run ChromeVox PDF extractor within Chrome's PDF extension (Closed)

Created:
4 years, 11 months ago by dmazzoni
Modified:
4 years, 11 months ago
Reviewers:
raymes, David Tseng
CC:
chromium-reviews, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Run ChromeVox PDF extractor within Chrome's PDF extension Previously it ran on the pdf page, outside of the extension. By running inside the extension it works with local files again. BUG=574918, 520422 Committed: https://crrev.com/ceb0e8fda9c584873757779437948e929a95b3c9 Cr-Commit-Position: refs/heads/master@{#368172}

Patch Set 1 #

Patch Set 2 : Fix in ChromeVox by injecting into extension instead #

Total comments: 6

Patch Set 3 : Address feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -33 lines) Patch
M chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js View 1 2 4 chunks +24 lines, -33 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 20 (8 generated)
dmazzoni
4 years, 11 months ago (2016-01-06 20:28:58 UTC) #2
raymes
Hey Dominic, I think this would re-open a security hole fixed in https://code.google.com/p/chromium/issues/detail?id=520422 . I ...
4 years, 11 months ago (2016-01-06 23:02:32 UTC) #3
dmazzoni
Yeah, I remember that bug but I trusted that ChromeVox would still work and didn't ...
4 years, 11 months ago (2016-01-06 23:50:07 UTC) #5
raymes
Ahh ok :) Before digging in, I'm confused why we see this working and you ...
4 years, 11 months ago (2016-01-06 23:59:38 UTC) #6
raymes
On 2016/01/06 23:50:07, dmazzoni wrote: > Yeah, I remember that bug but I trusted that ...
4 years, 11 months ago (2016-01-07 02:29:22 UTC) #7
dmazzoni
OK, fixed within ChromeVox now. David, could you review?
4 years, 11 months ago (2016-01-07 20:41:07 UTC) #9
dmazzoni
Updated change description.
4 years, 11 months ago (2016-01-07 20:42:24 UTC) #11
David Tseng
lgtm https://codereview.chromium.org/1561883004/diff/20001/chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js File chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js (left): https://codereview.chromium.org/1561883004/diff/20001/chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js#oldcode13 chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js:13: /** Mention that this gets injected into the ...
4 years, 11 months ago (2016-01-07 21:28:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1561883004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1561883004/40001
4 years, 11 months ago (2016-01-07 21:41:58 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-07 22:13:31 UTC) #17
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/ceb0e8fda9c584873757779437948e929a95b3c9 Cr-Commit-Position: refs/heads/master@{#368172}
4 years, 11 months ago (2016-01-07 22:14:17 UTC) #19
dmazzoni
4 years, 11 months ago (2016-01-08 04:41:18 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/1561883004/diff/20001/chrome/browser/resource...
File
chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js
(left):

https://codereview.chromium.org/1561883004/diff/20001/chrome/browser/resource...
chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js:13:
/**
On 2016/01/07 21:28:05, David Tseng wrote:
> Mention that this gets injected into the PDF plugin directly.

Done, though to clarify, it gets injected into the extension, which wraps the
plug-in. The extension itself is wrapped by another page which is where we used
to run this code.

https://codereview.chromium.org/1561883004/diff/20001/chrome/browser/resource...
File
chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js
(right):

https://codereview.chromium.org/1561883004/diff/20001/chrome/browser/resource...
chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js:50:
'embed[type="application/x-google-chrome-pdf"]');
On 2016/01/07 21:28:05, David Tseng wrote:
> Does this change depend on specific versions of the PDF plugin/major Chrome
> version?

Not that I know of, this has been stable for a while.

https://codereview.chromium.org/1561883004/diff/20001/chrome/browser/resource...
chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js:82:
cvox.ChromeVox.navigationManager.reset();
On 2016/01/07 21:28:05, David Tseng wrote:
> How does this work if we're running in the PDF plugin's context?

It's the context of the extension.

Powered by Google App Engine
This is Rietveld 408576698