Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Unable to open private tab using keyboard shortcut from a PDF tab #4024

Closed
srirambv opened this issue Sep 15, 2016 · 12 comments
Closed

Unable to open private tab using keyboard shortcut from a PDF tab #4024

srirambv opened this issue Sep 15, 2016 · 12 comments

Comments

@srirambv
Copy link
Collaborator

srirambv commented Sep 15, 2016

Test plan

  1. Open any pdf: http://unec.edu.az/application/uploads/2014/12/pdf-sample.pdf
  2. To open a new private tab: Press Ctrl + Shift + P
  3. Result: Launches a new private tab.

Original issue description

Did you search for similar issues before submitting this one?
Yes

Describe the issue you encountered:
Unable to open private tab using keyboard shortcut from a PDF tab. When Ctrl+Shift+P is pressed it opens print dialogue instead of launching a private tab

Expected behavior:
Should open a new private tab

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    Windows 10 x64
  • Brave Version:
    0.12.1 RC1
  • Steps to reproduce:
    1. Open any pdf in a tab
    2. Press Ctrl+Shift+P to open a new private tab
    3. Launches print dialogue instead of opening a new private tab
  • Screenshot if needed:
  • Any related issues:
@z-no
Copy link

z-no commented Feb 16, 2017

Also seeing this on mac osX El Capitan, for brave v 0.13.4

@srirambv
Copy link
Collaborator Author

+1 from #11112

@sergio-rojasa
Copy link

I would like to work on this issue

@bsclifton
Copy link
Member

@sergiorojasa awesome! Go for it 😄 I've assigned the issue to myself so that nobody will grab it. Let us know if you need any help

@bsclifton bsclifton self-assigned this Jan 24, 2018
@sergio-rojasa
Copy link

sergio-rojasa commented Jan 26, 2018

I found the newPrivateTab keyboard shortcut in app/common/commonMenu.js
and I reproduced the issue on my computer, but I not sure if the issue is in brave/pdf.js repository or brave/browser-laptop repository because when the browser loads a pdf the pdf.js extension logic is loads

@sergio-rojasa
Copy link

sergio-rojasa commented Jan 29, 2018

I found out when a user press ctrl+shift+p the pdf chrome extension code execute the print method.

@sergio-rojasa
Copy link

sergio-rojasa commented Jan 30, 2018

@bsclifton on line 273 - 278 is where the code executes the print command Click to view the pdf.js repository pdf_print_service.js

@sergio-rojasa
Copy link

sergio-rojasa commented Jan 30, 2018

@bsclifton I was not sure how to do the pull request for this issue, on this repository or brave/pdf.js repository so I did a pull request on brave/pdf.js repository.

@diracdeltas
Copy link
Member

this will be fixed whenever brave/pdf.js#4 is merged into master and @bsclifton does a pdf.js release :).

@NejcZdovc
Copy link
Contributor

@bsclifton should we add to any milestone this one?

@bsclifton
Copy link
Member

@NejcZdovc good catch- yes... we are fixing this with 0.22.x release 3. Will set accordingly

@btlechowski
Copy link
Contributor

btlechowski commented May 8, 2018

Verified on Ubuntu 17.10 x64

  • 0.22.703 903b8d0
  • libchromiumcontent 66.0.3359.139
  • muon: 6.0.8

Verified with macOS 10.12.6 using

  • 0.22.703 903b8d0
  • muon 6.0.8
  • libchromiumcontent 66.0.3359.139

Verified on Windows x64

  • 0.22.703 903b8d0
  • libchromiumcontent 66.0.3359.139
  • muon: 6.0.8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.