Closed Bug 1904379 Opened 11 days ago Closed 8 days ago

network.continueRequest does not support multiple values for the same header name

Categories

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

defect
Points:
2

Tracking

(firefox129 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

(Whiteboard: [webdriver:m11], [wptsync upstream])

Attachments

(2 files)

The BiDi spec for continueRequest does not restrict headers to a single value per name.
It should be possible to set multiple values for a single header name.

Technically setting nameA:value1 + nameA:value2 is equivalent to nameA:value1, value2, so we should support that.
At the moment Firefox will only set nameA:value2

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

I spotted this issue while looking at puppeteer tests for provideResponse. I used merge=false when calling the APIs to setRequestHeaders for network.continueRequest, but in theory we should support multiple header values.

Points: --- → 2
Priority: -- → P2
Whiteboard: [webdriver:m11]
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/42e5bcd525ef
[bidi] Support setting multiple values for single header name in continueRequest r=webdriver-reviewers,whimboo
https://hg.mozilla.org/integration/autoland/rev/192ebf2a6aff
[wdspec] Add test for multiple header values with bidi network.continueRequest r=webdriver-reviewers,whimboo
Regressions: 1904867

Backed out for causing failures in cookies.py

Flags: needinfo?(jdescottes)

For scenarios where we have both a cookie header and cookies parameters we actually should NOT merge.

Flags: needinfo?(jdescottes)
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a7726ece8e7f
[bidi] Support setting multiple values for single header name in continueRequest r=webdriver-reviewers,whimboo
https://hg.mozilla.org/integration/autoland/rev/d08a4c993db0
[wdspec] Add test for multiple header values with bidi network.continueRequest r=webdriver-reviewers,whimboo
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/46912 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m11] → [webdriver:m11], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: