Closed Bug 1917805 Opened 2 months ago Closed 1 month ago

[wdspec] Add more wdspec tests for cached stylesheets (including link, import,...)

Categories

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

task
Points:
2

Tracking

(firefox132 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

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

Attachments

(1 file)

With the initial support for cached stylesheet network events, we are probably missing events when the stylesheet is loaded via @import.
We should add a test case for this.

We should also add a test for subsequent loads of the same stylesheet in the same page (eg a page with 3 identical <link> or @import rules)

The initial Firefox support for network events for cached stylesheets fails in 2 known cases:

  • when the stylesheet is loaded via @import (no event emitted)
  • when the stylesheet is duplicated in several link tags (too many events emitted)

New tests are added to cover those use cases, which should all be fixed by Bug 1916960 on Firefox side.
All the added tests already pass on Chrome canary.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Blocks: 1919708
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/26bbaffc6022 [wdspec] Add cached stylesheet network tests @import and duplicated stylesheets r=webdriver-reviewers,arai,whimboo
See Also: → 1919784
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/48275 for changes under testing/web-platform/tests
Upstream PR was closed without merging
Points: --- → 2
Priority: -- → P3
Whiteboard: [webdriver:m12]

(In reply to Web Platform Test Sync Bot [:wpt-sync] (Matrix: #interop:mozilla.org) from comment #4)

Created web-platform-tests PR
https://github.com/web-platform-tests/wpt/pull/48275 for changes under
testing/web-platform/tests

Julian, can you please take a look at the PR? There are failures that prevent the merge.

Flags: needinfo?(jdescottes)
Upstream PR was closed without merging
Upstream PR was closed without merging
Upstream PR merged by moz-wptsync-bot
Whiteboard: [webdriver:m12] → [webdriver:m12], [wptsync upstream]
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4854e6966768 [wpt PR 48275] - [Gecko Bug 1917805] [wdspec] Add cached stylesheet network tests @import and duplicated stylesheets, a=testonly
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: