summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-02-14 22:05:31 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-15 01:31:03 +0100
commit24d5ca4a9d1514bc061407150e658c03d428f24e (patch)
treef3b08b6d44a1a3dcfc627b4f4b1997789fb64f46 /Meta
parent75dd4fbd16cfa7abe161caed8a628c781953cd88 (diff)
downloadserenity-24d5ca4a9d1514bc061407150e658c03d428f24e.zip
LibWeb: Remove non-standard ReturnNullIfCrossOrigin IDL attribute
This is no longer needed as BrowsingContextContainer::content_document() now does the right thing, and HTMLIFrameElement.contentDocument is the only user of this attribute. Let's not invent our own mechanisms for things that are important to get right, like same origin comparisons.
Diffstat (limited to 'Meta')
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp
index 6de6ed238b..0e308e9c9e 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp
@@ -3894,13 +3894,6 @@ JS_DEFINE_NATIVE_FUNCTION(@prototype_class@::@attribute.getter_callback@)
auto* impl = TRY(impl_from(vm, global_object));
)~~~");
- if (attribute.extended_attributes.contains("ReturnNullIfCrossOrigin")) {
- attribute_generator.append(R"~~~(
- if (!impl->may_access_from_origin(static_cast<WindowObject&>(global_object).origin()))
- return JS::js_null();
-)~~~");
- }
-
if (attribute.extended_attributes.contains("Reflect")) {
if (attribute.type->name != "boolean") {
attribute_generator.append(R"~~~(