Skip to content

Conversation

Lightning00Blade
Copy link
Contributor

@Lightning00Blade Lightning00Blade commented Mar 6, 2024

Splitting from #628. As I think this make sense regardless of the outcome of that PR.
Motivation here is that the algorithms for both empty cases become no-op if the lists are empty -
For events:
Update the event map
Step 5 -> Step 7.1.1 is looped over a empty list.
For Contexts:
Update the event map
Step 5 -> Step 8.3.2 is looped over a empty list.

The part about contexts: [] becomes consistent with addPreloadScript and addInterception as they both fail on empty list.


Preview | Diff

@Lightning00Blade Lightning00Blade requested a review from OrKoN March 6, 2024 10:19
Copy link
Contributor

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM could you please add tests to WPT?

@Lightning00Blade
Copy link
Contributor Author

Waiting for another vendor to approve and I will create a PR before merging this.

Copy link
Contributor

@whimboo whimboo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, makes sense to me. Such a call with empty items would be a no-op.

@Lightning00Blade
Copy link
Contributor Author

Opened - web-platform-tests/wpt#44985

github-actions bot added a commit that referenced this pull request Mar 7, 2024
SHA: a676958
Reason: push, by Lightning00Blade

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
OrKoN pushed a commit that referenced this pull request Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants