diff --git a/Libraries/LibWeb/HTML/Storage.cpp b/Libraries/LibWeb/HTML/Storage.cpp index 6cf537b2e7f..c5d1a04f967 100644 --- a/Libraries/LibWeb/HTML/Storage.cpp +++ b/Libraries/LibWeb/HTML/Storage.cpp @@ -28,7 +28,6 @@ Storage::Storage(JS::Realm& realm) .has_indexed_property_setter = true, .has_named_property_setter = true, .has_named_property_deleter = true, - .has_legacy_override_built_ins_interface_extended_attribute = true, .indexed_property_setter_has_identifier = true, .named_property_setter_has_identifier = true, .named_property_deleter_has_identifier = true, diff --git a/Tests/LibWeb/Text/expected/HTML/storage-does-not-have-legacy-override-builtins-flag.txt b/Tests/LibWeb/Text/expected/HTML/storage-does-not-have-legacy-override-builtins-flag.txt new file mode 100644 index 00000000000..0a45f632ceb --- /dev/null +++ b/Tests/LibWeb/Text/expected/HTML/storage-does-not-have-legacy-override-builtins-flag.txt @@ -0,0 +1,10 @@ +key should still be native: 'function key() { [native code] }' +key's stringified function was added to storage: 'function () { println(`FAIL: Overriden ${functionName} was called`); }' +getItem should still be native: 'function getItem() { [native code] }' +getItem's stringified function was added to storage: 'function () { println(`FAIL: Overriden ${functionName} was called`); }' +setItem should still be native: 'function setItem() { [native code] }' +setItem's stringified function was added to storage: 'function () { println(`FAIL: Overriden ${functionName} was called`); }' +removeItem should still be native: 'function removeItem() { [native code] }' +removeItem's stringified function was added to storage: 'function () { println(`FAIL: Overriden ${functionName} was called`); }' +clear should still be native: 'function clear() { [native code] }' +clear's stringified function was added to storage: 'function () { println(`FAIL: Overriden ${functionName} was called`); }' diff --git a/Tests/LibWeb/Text/input/HTML/storage-does-not-have-legacy-override-builtins-flag.html b/Tests/LibWeb/Text/input/HTML/storage-does-not-have-legacy-override-builtins-flag.html new file mode 100644 index 00000000000..c1435cff819 --- /dev/null +++ b/Tests/LibWeb/Text/input/HTML/storage-does-not-have-legacy-override-builtins-flag.html @@ -0,0 +1,14 @@ + + +