mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb/HTML: Clone integrity policy when cloning policy container
Corresponds to:
3c6cb6c0c5
This commit is contained in:
parent
b3d9ffdfce
commit
c3d23a2487
Notes:
github-actions[bot]
2025-12-01 11:08:33 +00:00
Author: https://github.com/AtkinsSJ
Commit: c3d23a2487
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6960
1 changed files with 4 additions and 1 deletions
|
|
@ -85,7 +85,10 @@ GC::Ref<PolicyContainer> PolicyContainer::clone(GC::Heap& heap) const
|
|||
// 4. Set clone's referrer policy to policyContainer's referrer policy.
|
||||
clone->referrer_policy = referrer_policy;
|
||||
|
||||
// 5. Return clone.
|
||||
// 5. Set clone's integrity policy to a copy of policyContainer's integrity policy.
|
||||
clone->integrity_policy = integrity_policy;
|
||||
|
||||
// 6. Return clone.
|
||||
return clone;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue