mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Implement HTMLIFrameElement.referrerPolicy
This commit is contained in:
parent
1aa58b6d8c
commit
64eadab181
Notes:
sideshowbarker
2024-07-17 07:08:37 +09:00
Author: https://github.com/jamierocks
Commit: 64eadab181
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/23
2 changed files with 3 additions and 3 deletions
|
@ -133,8 +133,8 @@ void HTMLIFrameElement::process_the_iframe_attributes(bool initial_insertion)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: 4. Let referrerPolicy be the current state of element's referrerpolicy content attribute.
|
// 4. Let referrerPolicy be the current state of element's referrerpolicy content attribute.
|
||||||
auto referrer_policy = ReferrerPolicy::ReferrerPolicy::EmptyString;
|
auto referrer_policy = ReferrerPolicy::from_string(get_attribute_value(HTML::AttributeNames::referrerpolicy)).value_or(ReferrerPolicy::ReferrerPolicy::EmptyString);
|
||||||
|
|
||||||
// 5. Set element's current navigation was lazy loaded boolean to false.
|
// 5. Set element's current navigation was lazy loaded boolean to false.
|
||||||
set_current_navigation_was_lazy_loaded(false);
|
set_current_navigation_was_lazy_loaded(false);
|
||||||
|
|
|
@ -16,7 +16,7 @@ interface HTMLIFrameElement : HTMLElement {
|
||||||
[CEReactions, Reflect=allowfullscreen] attribute boolean allowFullscreen;
|
[CEReactions, Reflect=allowfullscreen] attribute boolean allowFullscreen;
|
||||||
[CEReactions, Reflect] attribute DOMString width;
|
[CEReactions, Reflect] attribute DOMString width;
|
||||||
[CEReactions, Reflect] attribute DOMString height;
|
[CEReactions, Reflect] attribute DOMString height;
|
||||||
[FIXME, CEReactions] attribute DOMString referrerPolicy;
|
[CEReactions, Reflect=referrerpolicy, Enumerated=ReferrerPolicy] attribute DOMString referrerPolicy;
|
||||||
[CEReactions, Enumerated=LazyLoadingAttribute, Reflect] attribute DOMString loading;
|
[CEReactions, Enumerated=LazyLoadingAttribute, Reflect] attribute DOMString loading;
|
||||||
readonly attribute Document? contentDocument;
|
readonly attribute Document? contentDocument;
|
||||||
readonly attribute WindowProxy? contentWindow;
|
readonly attribute WindowProxy? contentWindow;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue