Closed Bug 1861737 Opened 1 year ago Closed 2 months ago

Add support for "format" argument to browsingContext.captureScreenshot

Categories

(Remote Protocol :: WebDriver BiDi, task, P2)

task

Tracking

(firefox135 fixed)

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: whimboo, Assigned: ldebeasi)

References

(Blocks 1 open bug)

Details

(Whiteboard: [webdriver:m14][webdriver:external][wptsync upstream][webdriver:relnote])

Attachments

(2 files)

Via https://github.com/w3c/webdriver-bidi/pull/561 the format argument has been added to browsingContext.captureScreenshot. Tests will be synced via bug 1861653.

We should add this argument and support for all the image formats that we can support.

The related part of the HTML spec is at:
https://html.spec.whatwg.org/multipage/canvas.html#a-serialisation-of-the-bitmap-as-a-file

Points: --- → 2
Priority: -- → P2
Whiteboard: [webdriver:backlog]
Assignee: nobody → ldebeasi
Status: NEW → ASSIGNED
Attachment #9435265 - Attachment description: Bug 1861737 - Support image format and quality options on browsingContext.captureScreenshot r=whimboo → Bug 1861737 - [webdriver-bidi] Support "format" argument in the "browsingContext.captureScreenshot" command.
Attachment #9438449 - Attachment description: Bug 1861737 add tests for invalid types and values with captureScreenshot r=whimboo → Bug 1861737 - [wdspec] Add tests for invalid types and values for the "format" argument in the "browsingContext.captureScreenshot" command.
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b1f9cbc68dc4 [webdriver-bidi] Support "format" argument in the "browsingContext.captureScreenshot" command. r=whimboo,webdriver-reviewers https://hg.mozilla.org/integration/autoland/rev/34c0ad83ab4e [wdspec] Add tests for invalid types and values for the "format" argument in the "browsingContext.captureScreenshot" command. r=whimboo,webdriver-reviewers
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/49732 for changes under testing/web-platform/tests
Whiteboard: [webdriver:backlog] → [webdriver:backlog], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
Upstream PR merged by moz-wptsync-bot

Liam, thanks a lot for working on this new feature which will now be released in Firefox 135 early in February. Even through it was a bit more complicated (including the issues with hg) we hope you enjoyed and learned a lot. If you have further interests please let us know. Thanks!

Flags: needinfo?(ldebeasi)

Yeah this was great! I learned a lot. I'd be happy to help on anything else you may need.

Flags: needinfo?(ldebeasi)

(In reply to Liam DeBeasi from comment #8)

Yeah this was great! I learned a lot. I'd be happy to help on anything else you may need.

Wonderful! Given that you already improved a lot I wonder if bug 1860955 might be a good thing for you to work on? Note that it would also require an update to the Python tests, if you don't mind that.

Flags: needinfo?(ldebeasi)
Points: 2 → ---
Whiteboard: [webdriver:backlog], [wptsync upstream] → [webdriver:m14], [wptsync upstream]
Whiteboard: [webdriver:m14], [wptsync upstream] → [webdriver:m14][webdriver:external][wptsync upstream]

Hey there! Sorry, I thought I had replied already, but I guess not. Working on https://bugzilla.mozilla.org/show_bug.cgi?id=1860955 sounds good to me. I'm getting back up to speed post-holidays, so I'll take a look at this soon.

Flags: needinfo?(ldebeasi)
Whiteboard: [webdriver:m14][webdriver:external][wptsync upstream] → [webdriver:m14][webdriver:external][wptsync upstream][webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: