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

Issue 915853004: Fix for PDFs with lots of named destinations take a long time to load. (Closed)

Created:
5 years, 10 months ago by raymes
Modified:
5 years, 9 months ago
Reviewers:
Sam McNally
CC:
chromium-reviews, arv+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix for PDFs with lots of named destinations take a long time to load. When PDF have lots of named destinations then as we are fetching all the named destinations at load time, so this will increase loading time. This is a workaround so that we will get named destination whenever it is required by passing message from page to plugin. BUG=457457 patch from issue 918953002 at patchset 80001 (http://crrev.com/918953002#ps80001)

Patch Set 1 #

Patch Set 2 : #

Total comments: 14

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -127 lines) Patch
M chrome/browser/resources/pdf/navigator.js View 1 2 1 chunk +16 lines, -6 lines 0 comments Download
M chrome/browser/resources/pdf/open_pdf_params_parser.js View 1 2 4 chunks +43 lines, -19 lines 0 comments Download
M chrome/browser/resources/pdf/pdf.js View 1 2 5 chunks +42 lines, -20 lines 0 comments Download
M chrome/test/data/pdf/navigator_test.js View 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/test/data/pdf/params_parser_test.js View 1 2 1 chunk +56 lines, -39 lines 1 comment Download
M pdf/out_of_process_instance.cc View 1 2 3 chunks +15 lines, -11 lines 0 comments Download
M pdf/pdf_engine.h View 1 chunk +0 lines, -1 line 0 comments Download
M pdf/pdfium/pdfium_engine.h View 1 chunk +0 lines, -1 line 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 chunk +0 lines, -27 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
raymes
5 years, 10 months ago (2015-02-17 02:19:40 UTC) #2
Sam McNally
https://codereview.chromium.org/915853004/diff/20001/chrome/browser/resources/pdf/navigator.js File chrome/browser/resources/pdf/navigator.js (right): https://codereview.chromium.org/915853004/diff/20001/chrome/browser/resources/pdf/navigator.js#newcode77 chrome/browser/resources/pdf/navigator.js:77: this.paramsParser_.getViewportFromUrlParams(url, Wrap before url https://codereview.chromium.org/915853004/diff/20001/chrome/browser/resources/pdf/navigator.js#newcode85 chrome/browser/resources/pdf/navigator.js:85: * param {Object} ...
5 years, 10 months ago (2015-02-17 03:36:20 UTC) #3
raymes
https://codereview.chromium.org/915853004/diff/20001/chrome/browser/resources/pdf/navigator.js File chrome/browser/resources/pdf/navigator.js (right): https://codereview.chromium.org/915853004/diff/20001/chrome/browser/resources/pdf/navigator.js#newcode77 chrome/browser/resources/pdf/navigator.js:77: this.paramsParser_.getViewportFromUrlParams(url, On 2015/02/17 03:36:20, Sam McNally wrote: > Wrap ...
5 years, 10 months ago (2015-02-17 04:32:05 UTC) #4
Sam McNally
LGTM https://codereview.chromium.org/915853004/diff/40001/chrome/test/data/pdf/params_parser_test.js File chrome/test/data/pdf/params_parser_test.js (right): https://codereview.chromium.org/915853004/diff/40001/chrome/test/data/pdf/params_parser_test.js#newcode59 chrome/test/data/pdf/params_parser_test.js:59: chrome.test.assertEq(viewportPosition.position, 22); s/position/page/
5 years, 10 months ago (2015-02-17 05:55:38 UTC) #5
Deepak
5 years, 10 months ago (2015-02-17 09:10:39 UTC) #6
On 2015/02/17 05:55:38, Sam McNally wrote:
> LGTM
> 
>
https://codereview.chromium.org/915853004/diff/40001/chrome/test/data/pdf/par...
> File chrome/test/data/pdf/params_parser_test.js (right):
> 
>
https://codereview.chromium.org/915853004/diff/40001/chrome/test/data/pdf/par...
> chrome/test/data/pdf/params_parser_test.js:59:
> chrome.test.assertEq(viewportPosition.position, 22);
> s/position/page/

@sam 
As per raymes 
I have updated all changes at https://codereview.chromium.org/918953002/.
PTAL at that patch.

Powered by Google App Engine
This is Rietveld 408576698