Closed Bug 1682497 Opened 4 years ago Closed 10 months ago

Integers not accepted in print range ranges

Categories

(Testing :: geckodriver, defect, P2)

Default
defect

Tracking

(firefox118 fixed)

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: jgraham, Assigned: miteshgulecha, Mentored)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [webdriver:m8][webdriver:external][lang=rust][wptsync upstream])

Attachments

(2 files, 1 obsolete file)

Per the spec we should be able to define page ranges as ["1-2", 4, "6-" ] using a mixture of integers and strings. But the WebDriver crate defines the relevant type as Vec<String>. This should probably be changed to:

enum PageRange {
  SinglePage(u64),
  Range(String)
}

[...]
page_ranges: Vec<PageRange>

with the necessary annotations so serde picks the variant based on the type.

Severity: -- → S3
Priority: -- → P3

This is blocking a P2 bug so it should be P2 as well.

Priority: P3 → P2
Mentor: hskupin
Whiteboard: [lang=rust]

Hi, I would like work on it.

Assignee: nobody → miteshgulecha
Status: NEW → ASSIGNED
Attachment #9342034 - Attachment description: WIP: Bug 1682497 - Added Page Range for Integers → Bug 1682497 - Added Page Range for Integers

Depends on D182624

Attachment #9344492 - Attachment is obsolete: true
Attachment #9342034 - Attachment description: Bug 1682497 - Added Page Range for Integers → Bug 1682497 - Updated files to avoid conflicts
Attachment #9342034 - Attachment description: Bug 1682497 - Updated files to avoid conflicts → Bug 1682497 - Added Page Range for Integers
Attachment #9342034 - Attachment description: Bug 1682497 - Added Page Range for Integers → Bug 1682497 - [geckodriver] Added Page Range for Integers
Attachment #9348924 - Attachment description: Bug 1682497 - Added test for integer in page range → Bug 1682497 - [wdspec] Updated WebDriver classic print tests for integer value in page range
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b713d85d3c3a
[geckodriver] Added Page Range for Integers r=webdriver-reviewers,whimboo
https://hg.mozilla.org/integration/autoland/rev/f23fa8420e5a
[wdspec] Updated WebDriver classic print tests for integer value in page range r=webdriver-reviewers,whimboo
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/41553 for changes under testing/web-platform/tests
Whiteboard: [lang=rust] → [lang=rust], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot
Whiteboard: [lang=rust], [wptsync upstream] → [webdriver:m8][webdriver:external][lang=rust][wptsync upstream]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: