mshtml: Ignore attempts to set read only builtin properties in IE9+ mode.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-11-05 17:50:32 +01:00 committed by Alexandre Julliard
parent 86a72e055e
commit a1d04f704d
2 changed files with 9 additions and 0 deletions

View file

@ -1101,6 +1101,10 @@ static HRESULT builtin_propput(DispatchEx *This, func_info_t *func, DISPPARAMS *
}
if(!func->put_vtbl_off) {
if(dispex_compat_mode(This) >= COMPAT_MODE_IE9) {
WARN("No setter\n");
return S_OK;
}
FIXME("No setter\n");
return E_FAIL;
}

View file

@ -949,3 +949,8 @@ sync_test("preventExtensions", function() {
ok(Object.preventExtensions.length === 1, "Object.preventExtensions.length = " + Object.preventExtensions.length);
});
sync_test("head_setter", function() {
document.head = "";
ok(typeof(document.head) === "object", "typeof(document.head) = " + typeof(document.head));
});