Closed Bug 1723137 Opened 4 years ago Closed 3 years ago

Create a shared module for PDF creation

Categories

(Remote Protocol :: Agent, enhancement, P3)

enhancement

Tracking

(firefox101 fixed)

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: whimboo, Assigned: Sasha)

References

Details

Attachments

(1 file)

Now that Marionette lives under /remote we should combine the individual PDF implementations for Marionette and CDP into a shared module like /remote/shared/PDF.js. This would allow us to more easily implement the feature for WebDriver BiDi at a later time.

We should probably take the implementation from:
https://searchfox.org/mozilla-central/source/remote/marionette/print.js

Also the following extra work would be needed:

  • Use IOUtils.readUTF8() instead of String.fromCharCode()
  • As best also create some basic wdspec tests under webdriver/tests/print

(In reply to Henrik Skupin (:whimboo) [⌚️UTC+1] from comment #0)

  • Use IOUtils.readUTF8() instead of String.fromCharCode()

Actually in our case we don't have to read from a file, but have a string with the PDF generated data. So this cannot be used.

Depends on: 1719124
Depends on: 1723145
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/deb8b0330528 Create a shared module for PDF creation. r=whimboo,webdriver-reviewers
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: