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

Issue 2517493002: Make printing PDF work from inside PDF extension. (Closed)

Created:
4 years, 1 month ago by EhsanK
Modified:
4 years, 1 month ago
Reviewers:
Lei Zhang, alexmos
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make printing PDF work from PDF extension. When clicking PDF extension's print button, the window suddenly disappears. This happens because PrintViewManager's |print_preview_rfh_| is never set to the main frame of the extension. This CL makes sure this happens when the renderer sends the corresponding RequestPrintPreview command. BUG=666432

Patch Set 1 #

Patch Set 2 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M chrome/browser/printing/print_view_manager.cc View 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (6 generated)
EhsanK
I am not sure if this is wrong, but it will fix the issue up ...
4 years, 1 month ago (2016-11-18 04:34:35 UTC) #5
Lei Zhang
On 2016/11/18 04:34:35, EhsanK wrote: > That being said, what I did here might be ...
4 years, 1 month ago (2016-11-21 07:07:36 UTC) #8
Lei Zhang
On 2016/11/21 07:07:36, Lei Zhang (Mostly OOO) wrote: > On 2016/11/18 04:34:35, EhsanK wrote: > ...
4 years, 1 month ago (2016-11-21 09:49:46 UTC) #9
EhsanK
4 years, 1 month ago (2016-11-21 16:33:11 UTC) #10
On 2016/11/21 09:49:46, Lei Zhang (Mostly OOO) wrote:
> On 2016/11/21 07:07:36, Lei Zhang (Mostly OOO) wrote:
> > On 2016/11/18 04:34:35, EhsanK wrote:
> > > That being said, what I did here might be wrong (I have a feeling it is).
I
> do
> > > not know this part of the code base very well. But I hope at least this
will
> > > expedite the process of finding the actual fix.
> > 
> > It actually works well for PDFs in my testing. It's "wrong" in that it only
> > handles PDFs and not other content like Flash. I don't know if there are any
> > other plugins that we can print that we are forgetting about.
> 
> Let me know how this looks: https://codereview.chromium.org/2518993002

Closing this CL in favor of thestig@'s CL above.

Powered by Google App Engine
This is Rietveld 408576698