Update initiatorType and destination to null/"" for top level document loads
Categories
(Remote Protocol :: WebDriver BiDi, defect, P2)
Tracking
(firefox134 fixed, firefox135 fixed)
People
(Reporter: jdescottes, Assigned: jdescottes)
References
(Blocks 3 open bugs)
Details
(Whiteboard: [webdriver:m14][wptsync upstream][webdriver:relnote])
Attachments
(6 files)
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details | Review |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
See more details in https://bugzilla.mozilla.org/show_bug.cgi?id=1933250
While discussing the underlying issue with initiatorType/destination for top level document loads, it probably makes sense to detect top level loads on the BiDi side and return the expected values for them.
The HTML spec says that if the navigable container is null the request should be emitted without any destination/initiatorType, so let's set default values in this case.
Assignee | ||
Comment 1•2 months ago
|
||
The platform API currently returns values for initiatorType and destination
for top level document loads, but according to the HTML spec they should be null / empty.
The implementation in WebDriver BiDi NetworkRequest wrapper is updated to handle this
edge case.
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Assignee | ||
Comment 2•2 months ago
|
||
Depends on D230174
Update current expectations for top level document loads in our wdspec tests
Assignee | ||
Comment 3•2 months ago
|
||
Depends on D230175
Add new test request in initiatorType / destination tests to check iframe document loads.
Assignee | ||
Updated•2 months ago
|
Assignee | ||
Updated•2 months ago
|
Assignee | ||
Updated•2 months ago
|
Comment 6•2 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2a0a1e8d0eee
https://hg.mozilla.org/mozilla-central/rev/4c947cf102e0
https://hg.mozilla.org/mozilla-central/rev/04f9bd3ee9b6
Assignee | ||
Comment 8•2 months ago
|
||
Comment on attachment 9439824 [details]
Bug 1933331 - [bidi] Update initiatorType and destination for top level document loads
Beta/Release Uplift Approval Request
- User impact if declined/Reason for urgency: The information provided by two fields of the BiDi network events is incorrect for top level document loads.
This is one of the blockers for Cypress to migrate from CDP to WebDriver BiDi, so the earliest we can provide them with a working feature, the better. - Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Simple change, WebDriver BiDi only, unit tested.
- String changes made/needed:
- Is Android affected?: No
Updated•2 months ago
|
Updated•2 months ago
|
Comment 10•2 months ago
|
||
Backed out from beta for causing WD test_destination_initiator related failures.
Assignee | ||
Comment 11•2 months ago
|
||
Ah sorry, I thought the test patches would be also considered for uplift here, at least D230175 is necessary here.
Comment 12•2 months ago
|
||
You need to request uplift on all the patches you want uplifted.
Assignee | ||
Comment 13•2 months ago
|
||
(In reply to Pascal Chevrel:pascalc from comment #12)
You need to request uplift on all the patches you want uplifted.
Thanks for clarifying!
I used to do that systematically, but I think at some point I was told that it was not necessary to do it?
Checking other recent uplifts I requested:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1922390
- https://bugzilla.mozilla.org/show_bug.cgi?id=1880477
All patches were uplifted even if the request was only on the first one.
I'll make sure to flag all patches from now on, but might be worth discussing with other release owners to make sure the policy/process is the same from one release to another?
Assignee | ||
Comment 14•2 months ago
|
||
It also seems I can't request uplift for the other patches (maybe because 1 was already accepted?).
I can only select +
in the approval-mozilla-beta
dropdown, and it doesn't seem to do anything.
Assignee | ||
Comment 15•2 months ago
|
||
The platform API currently returns values for initiatorType and destination
for top level document loads, but according to the HTML spec they should be null / empty.
The implementation in WebDriver BiDi NetworkRequest wrapper is updated to handle this
edge case.
Original Revision: https://phabricator.services.mozilla.com/D230174
Updated•2 months ago
|
Assignee | ||
Comment 16•2 months ago
|
||
Update current expectations for top level document loads in our wdspec tests
Original Revision: https://phabricator.services.mozilla.com/D230175
Updated•2 months ago
|
Assignee | ||
Comment 17•2 months ago
|
||
Add new test request in initiatorType / destination tests to check iframe document loads.
Original Revision: https://phabricator.services.mozilla.com/D230178
Updated•2 months ago
|
Assignee | ||
Comment 18•2 months ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #14)
It also seems I can't request uplift for the other patches (maybe because 1 was already accepted?).
I can only select+
in theapproval-mozilla-beta
dropdown, and it doesn't seem to do anything.
Ok so looks like this is because I'm still using bugzilla for uplift requests while I should not. I was mostly away when this was introduced last year, so I completely missed this change and kept using bugzilla. Might be good to have a warning on bugzilla UI ?
Comment 19•2 months ago
|
||
beta Uplift Approval Request
- User impact if declined: The information provided by two fields of the BiDi network events is incorrect for top level document loads. This is one of the blockers for Cypress to migrate from CDP to WebDriver BiDi, so the earliest we can provide them with a working feature, the better.
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: --
- Risk associated with taking this patch: Low
- Explanation of risk level: Simple change, WebDriver BiDi only, unit tested.
- String changes made/needed: None
- Is Android affected?: no
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Comment 20•2 months ago
|
||
uplift |
Updated•2 months ago
|
Updated•2 months ago
|
Updated•1 month ago
|
Description
•