Skip to content

responsePolicyContainer in "determine navigation params policy container" should be cloned for consistency #11060

@Lubrsi

Description

@Lubrsi

What is the issue with the HTML Standard?

In determine navigation params policy container, step 4 states:

If responsePolicyContainer is not null, then return responsePolicyContainer.

The other steps in this algorithm either return a clone of a policy container, or a brand new policy container. responsePolicyContainer should be cloned to be consistent with the other steps.

This was noticed when implementing this algorithm in Ladybird:
https://github.com/LadybirdBrowser/ladybird/blob/1843a54df77f1b118bed07d92cafad4fef616f09/Libraries/LibWeb/HTML/Navigable.cpp#L640-L643

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions