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

Issue 830433002: Navigation to relative fragments does not work correctly for OOP pdf. (Closed)

Created:
5 years, 12 months ago by Deepak
Modified:
5 years, 11 months ago
Reviewers:
Lei Zhang, raymes, gene, bo_xu1
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix for Navigation to relative fragments does not work correctly for OOP pdf case. When #XXX is already present in the url and same #XXX is href for navigation on selection href, then we should not add that already present in the url then don't add this href. BUG=447888 Committed: https://crrev.com/6313ce26ea190d5da88e4fe6473b693de37305e2 Cr-Commit-Position: refs/heads/master@{#312075}

Patch Set 1 #

Patch Set 2 : Improving patch. #

Patch Set 3 : Changing code for OOP case. #

Total comments: 4

Patch Set 4 : Addressing Reviewer's comments. #

Total comments: 1

Patch Set 5 : Improving patch. #

Patch Set 6 : Changes after taking all nameddest at load time. #

Total comments: 25

Patch Set 7 : Changes as per review comments. #

Patch Set 8 : Changes as per review comments. #

Total comments: 37

Patch Set 9 : Changes as per review comments. #

Patch Set 10 : changes as per review comments. #

Patch Set 11 : Fixing nameddest directory. #

Total comments: 31

Patch Set 12 : Changes as per review comments................. #

Patch Set 13 : Changes as per review comments. #

Patch Set 14 : Indentation fix. #

Total comments: 26

Patch Set 15 : Changes as per review comments. #

Patch Set 16 : changes done for thestig patch. #

Patch Set 17 : Changes as per review comments. #

Total comments: 26

Patch Set 18 : Changes as per review comments. #

Patch Set 19 : Changes as per review comments. #

Total comments: 5

Patch Set 20 : Changes as per review comments. #

Patch Set 21 : Changes as per review comments. #

Patch Set 22 : #

Patch Set 23 : Rebase code changes. #

Patch Set 24 : Fixing Build error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -67 lines) Patch
M chrome/browser/resources/pdf/open_pdf_params_parser.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +35 lines, -16 lines 0 comments Download
M chrome/browser/resources/pdf/pdf.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +73 lines, -13 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +17 lines, -38 lines 0 comments Download
M pdf/pdf_engine.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +2 lines, -0 lines 0 comments Download
M pdf/pdfium/pdfium_engine.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +2 lines, -0 lines 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (8 generated)
Deepak
PTAL at my changes. Thanks
5 years, 12 months ago (2014-12-26 13:44:41 UTC) #2
Lei Zhang
https://codereview.chromium.org/830433002/diff/40001/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc (right): https://codereview.chromium.org/830433002/diff/40001/pdf/out_of_process_instance.cc#newcode845 pdf/out_of_process_instance.cc:845: if (url_copy[url_copy.length() - 1] == 0) This looks like ...
5 years, 11 months ago (2015-01-06 02:13:16 UTC) #3
raymes
I think part of the problem here is that navigations aren't working at all from ...
5 years, 11 months ago (2015-01-06 03:43:25 UTC) #4
Deepak
Changes done and comments updated. PTAL. Thanks https://codereview.chromium.org/830433002/diff/40001/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc (right): https://codereview.chromium.org/830433002/diff/40001/pdf/out_of_process_instance.cc#newcode845 pdf/out_of_process_instance.cc:845: if (url_copy[url_copy.length() ...
5 years, 11 months ago (2015-01-06 05:38:22 UTC) #5
Lei Zhang
On 2015/01/06 05:38:22, Deepak wrote: > On 2015/01/06 02:13:16, Lei Zhang wrote: > > Why ...
5 years, 11 months ago (2015-01-06 23:16:37 UTC) #6
Deepak
On 2015/01/06 23:16:37, Lei Zhang wrote: > On 2015/01/06 05:38:22, Deepak wrote: > > On ...
5 years, 11 months ago (2015-01-07 03:53:13 UTC) #7
Lei Zhang
On 2015/01/07 03:53:13, Deepak wrote: > 2) open > http://examples.itextpdf.com/results/part1/chapter02/movie_links_1.pdf#US > here I have put ...
5 years, 11 months ago (2015-01-07 23:04:27 UTC) #8
Lei Zhang
https://codereview.chromium.org/830433002/diff/60001/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc (right): https://codereview.chromium.org/830433002/diff/60001/pdf/out_of_process_instance.cc#newcode854 pdf/out_of_process_instance.cc:854: found_idx = url_copy.find('#'); There's some weird problems with OOP ...
5 years, 11 months ago (2015-01-07 23:08:43 UTC) #9
raymes
I'm still digging into the navigation issues in OOP PDF, it's not fully fixed. On ...
5 years, 11 months ago (2015-01-07 23:20:57 UTC) #10
raymes
I had a closer look at this. thestig: problem is that when I moved some ...
5 years, 11 months ago (2015-01-08 00:47:24 UTC) #11
Deepak
On 2015/01/07 23:08:43, Lei Zhang wrote: > https://codereview.chromium.org/830433002/diff/60001/pdf/out_of_process_instance.cc > File pdf/out_of_process_instance.cc (right): > > https://codereview.chromium.org/830433002/diff/60001/pdf/out_of_process_instance.cc#newcode854 ...
5 years, 11 months ago (2015-01-08 03:53:14 UTC) #12
Deepak
can you please suggest way to get pagenumber from '#US' from open_pdf_params_parser.js file,as we can ...
5 years, 11 months ago (2015-01-08 07:21:01 UTC) #13
raymes
open_pdf_params_parser.js is supposed to know about named destinations as well, that hasn't been implemented yet ...
5 years, 11 months ago (2015-01-08 22:04:22 UTC) #14
Deepak
On 2015/01/08 22:04:22, raymes wrote: > open_pdf_params_parser.js is supposed to know about named destinations as ...
5 years, 11 months ago (2015-01-09 06:56:32 UTC) #15
Deepak
I have checked the implementation of https://codereview.chromium.org/830433002/. We need all the nameDests and their corresponding ...
5 years, 11 months ago (2015-01-09 13:23:27 UTC) #16
Deepak
@raymes & @gene I have made changes based on https://codereview.chromium.org/834703002/. so my changes should go ...
5 years, 11 months ago (2015-01-11 09:01:17 UTC) #19
Deepak
On 2015/01/11 09:01:17, Deepak wrote: > @raymes & @gene > I have made changes based ...
5 years, 11 months ago (2015-01-11 09:04:30 UTC) #20
Deepak
@raymes & @gene I have one query: currently getting nameddest from the url is happening ...
5 years, 11 months ago (2015-01-11 09:26:20 UTC) #21
raymes
Thanks Deepak! This needs a bunch of reworking but is on the right track. I'm ...
5 years, 11 months ago (2015-01-11 23:08:42 UTC) #22
Deepak
Thanks for review and sharing your thoughts. Changes done as suggested. PTAL at my changes. ...
5 years, 11 months ago (2015-01-12 09:21:44 UTC) #23
raymes
Thanks Deepak, this is getting closer :) We will also need a test for some ...
5 years, 11 months ago (2015-01-13 01:59:32 UTC) #24
Deepak
PTAL. Thanks https://codereview.chromium.org/830433002/diff/140001/chrome/browser/resources/pdf/open_pdf_params_parser.js File chrome/browser/resources/pdf/open_pdf_params_parser.js (right): https://codereview.chromium.org/830433002/diff/140001/chrome/browser/resources/pdf/open_pdf_params_parser.js#newcode14 chrome/browser/resources/pdf/open_pdf_params_parser.js:14: this.namedDest; On 2015/01/13 01:59:31, raymes wrote: > ...
5 years, 11 months ago (2015-01-13 08:29:08 UTC) #25
raymes
Thanks! https://codereview.chromium.org/830433002/diff/200001/chrome/browser/resources/pdf/open_pdf_params_parser.js File chrome/browser/resources/pdf/open_pdf_params_parser.js (right): https://codereview.chromium.org/830433002/diff/200001/chrome/browser/resources/pdf/open_pdf_params_parser.js#newcode14 chrome/browser/resources/pdf/open_pdf_params_parser.js:14: // This will have name of all the ...
5 years, 11 months ago (2015-01-14 00:19:01 UTC) #26
Deepak
window.open(url); usage is crashing, and I found issues about it is not working properly in ...
5 years, 11 months ago (2015-01-14 06:29:01 UTC) #27
Deepak
The crash is happening due to : DCHECK(new_contents); failure in WebContentsImpl* BrowserPluginGuest::CreateNewGuestWindow() as WebContentsImpl* new_contents ...
5 years, 11 months ago (2015-01-14 12:26:16 UTC) #28
raymes
Thanks! https://codereview.chromium.org/830433002/diff/200001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/830433002/diff/200001/chrome/browser/resources/pdf/pdf.js#newcode366 chrome/browser/resources/pdf/pdf.js:366: } What I mean is to move the ...
5 years, 11 months ago (2015-01-15 04:51:11 UTC) #29
Deepak
Except thestig change usage, other changes done as suggested. I will do changes once thestig ...
5 years, 11 months ago (2015-01-15 06:30:06 UTC) #30
Deepak
@raymes, I have done changes and verified with thestig patch. It is working as expected. ...
5 years, 11 months ago (2015-01-15 07:16:46 UTC) #31
raymes
Mostly nits now. Thanks! https://codereview.chromium.org/830433002/diff/320001/chrome/browser/resources/pdf/open_pdf_params_parser.js File chrome/browser/resources/pdf/open_pdf_params_parser.js (right): https://codereview.chromium.org/830433002/diff/320001/chrome/browser/resources/pdf/open_pdf_params_parser.js#newcode13 chrome/browser/resources/pdf/open_pdf_params_parser.js:13: this.urlParams = {}; let's remove ...
5 years, 11 months ago (2015-01-15 23:07:43 UTC) #32
raymes
https://codereview.chromium.org/830433002/diff/320001/chrome/browser/resources/pdf/open_pdf_params_parser.js File chrome/browser/resources/pdf/open_pdf_params_parser.js (right): https://codereview.chromium.org/830433002/diff/320001/chrome/browser/resources/pdf/open_pdf_params_parser.js#newcode67 chrome/browser/resources/pdf/open_pdf_params_parser.js:67: if ((paramTokens.length == 1) && (paramTokens[0].search('=') == -1)) { ...
5 years, 11 months ago (2015-01-15 23:08:37 UTC) #33
Deepak
Changes done as suggested. PTAL. Thanks https://codereview.chromium.org/830433002/diff/320001/chrome/browser/resources/pdf/open_pdf_params_parser.js File chrome/browser/resources/pdf/open_pdf_params_parser.js (right): https://codereview.chromium.org/830433002/diff/320001/chrome/browser/resources/pdf/open_pdf_params_parser.js#newcode13 chrome/browser/resources/pdf/open_pdf_params_parser.js:13: this.urlParams = {}; ...
5 years, 11 months ago (2015-01-16 04:39:21 UTC) #34
raymes
lgtm with the following comments https://codereview.chromium.org/830433002/diff/360001/chrome/browser/resources/pdf/open_pdf_params_parser.js File chrome/browser/resources/pdf/open_pdf_params_parser.js (right): https://codereview.chromium.org/830433002/diff/360001/chrome/browser/resources/pdf/open_pdf_params_parser.js#newcode60 chrome/browser/resources/pdf/open_pdf_params_parser.js:60: var urlParams = {}; ...
5 years, 11 months ago (2015-01-18 22:01:39 UTC) #35
raymes
Please add the following in followup CLs: 1) Refactoring which pulls navigate_ into a different ...
5 years, 11 months ago (2015-01-18 22:05:09 UTC) #36
raymes
And thanks for working on this!
5 years, 11 months ago (2015-01-18 22:06:29 UTC) #37
Deepak
Thanks for review. I have done changes as suggested, and tested, It is working as ...
5 years, 11 months ago (2015-01-19 03:54:03 UTC) #38
Deepak
On 2015/01/18 22:05:09, raymes wrote: > Please add the following in followup CLs: > 1) ...
5 years, 11 months ago (2015-01-19 03:56:07 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/830433002/380001
5 years, 11 months ago (2015-01-19 03:59:02 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/830433002/400001
5 years, 11 months ago (2015-01-19 04:08:19 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/115112) ios_rel_device_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ng/builds/2187) ios_rel_device_ninja_ng ...
5 years, 11 months ago (2015-01-19 04:10:53 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/830433002/450001
5 years, 11 months ago (2015-01-19 06:59:31 UTC) #48
commit-bot: I haz the power
Committed patchset #24 (id:450001)
5 years, 11 months ago (2015-01-19 07:03:50 UTC) #49
commit-bot: I haz the power
5 years, 11 months ago (2015-01-19 07:04:50 UTC) #50
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/6313ce26ea190d5da88e4fe6473b693de37305e2
Cr-Commit-Position: refs/heads/master@{#312075}

Powered by Google App Engine
This is Rietveld 408576698