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

printToPDF doesn't do anything #11471

Closed
bridiver opened this issue Oct 12, 2017 · 12 comments · Fixed by #11531 or brave/muon#371
Closed

printToPDF doesn't do anything #11471

bridiver opened this issue Oct 12, 2017 · 12 comments · Fixed by #11531 or brave/muon#371

Comments

@bridiver
Copy link
Collaborator

This one doesn't have an easy STR because we only call it from the contribution statement.

@bridiver bridiver added the cr62 label Oct 12, 2017
@bridiver bridiver added this to the 0.19.x Release 2 (Beta Channel) milestone Oct 12, 2017
@bridiver bridiver self-assigned this Oct 12, 2017
@luixxiul luixxiul added the bug label Oct 12, 2017
@darkdh
Copy link
Member

darkdh commented Oct 12, 2017

@bridiver, we can use npm run add-simulated-payment-history to generated fake payment history.

bridiver added a commit to brave/muon that referenced this issue Oct 14, 2017
bridiver added a commit that referenced this issue Oct 14, 2017
bridiver added a commit that referenced this issue Oct 14, 2017
bridiver added a commit to brave/muon that referenced this issue Oct 14, 2017
bridiver added a commit that referenced this issue Oct 14, 2017
@LaurenWags
Copy link
Member

LaurenWags commented Oct 25, 2017

Verified using these steps:
Had a profile with 0.19.66 (packaged build) where payments were enabled, closed Brave.
Renamed profile to be brave-development.
Built 0.19.x from source.
Ran npm run add-simulated-payment-history.
Renamed brave-development back to brave.
Opened 0.19.66 (packaged build) again.
Went to about:preferences#payments.
Opened payment history and clicked on a link.
On the new tab that opened with the contribution statement, verified I was prompted to save my statement. Verified I could save a statement. Verified I could cancel saving a statement.

cc @bridiver @darkdh @kjozwiak for confirmation these steps are sufficient for testing.

@srirambv
Copy link
Collaborator

Verification fails on Windows
STR

  1. Clean install 0.19.66 and enable payments and close the browser
  2. Build from source and run npm run add-simulated-payments-history 50
  3. Copied the ledger-state.json from %appdata%/brave-development to %appdata%/brave
  4. Launch the browser, click on payment history button
  5. Click on any entry, opens a new tab with the contribution statement
  6. No save prompt shown for the contribution statement tab

@srirambv
Copy link
Collaborator

@bridiver @darkdh any steps that I missed?

@darkdh
Copy link
Member

darkdh commented Oct 25, 2017

@LaurenWags, @srirambv you are both right.
I just verified printToPDF doesn't work on Windows.

@srirambv
Copy link
Collaborator

@kjozwiak confirmed save prompt shown on Linux. Seems to be still an issue only on Windows

cc: @darkdh

@luixxiul
Copy link
Contributor

I also confirmed it worked for me on Debian.

@bbondy
Copy link
Member

bbondy commented Oct 26, 2017

Moving to hotfix 3

@bbondy
Copy link
Member

bbondy commented Oct 31, 2017

Moving to hotfix 4

@srirambv
Copy link
Collaborator

srirambv commented Nov 1, 2017

Works fine on 0.19.72 for Windows. Prompts save file option when opening the payment statement

@kjozwiak
Copy link
Member

kjozwiak commented Nov 1, 2017

@LaurenWags, can you double check and make sure this is working on macOS? I want to make sure the new fix hasn't regressed the other platforms as well. I'll check on Ubuntu.

@LaurenWags
Copy link
Member

Still works on MacOS @kjozwiak

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