mshtml: Do not enumerate internal dynamic props.
commit8de5187d1b2391288afd31116dc40386642c9d92
authorGabriel Ivăncescu <gabrielopcode@gmail.com>
Mon, 10 Oct 2022 16:55:22 +0000 (10 19:55 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 10 Oct 2022 19:15:27 +0000 (10 21:15 +0200)
tree6f7fbef7691fac2809000ff4b9f21eb1fdf51da7
parent03c4a231c0e09c89c4bb5794e2b17ec95aab0d16
mshtml: Do not enumerate internal dynamic props.

Props allocated with dispex_get_dprop_ref or dispex_get_dynid are purely
internal to our implementation and must not be enumerated.

Note that in case of window, the props themselves become enumerable, but the
dynamic props must still be hidden, since it's the custom prop that refers
to it that must be enumerated (i.e. the DISPID must match with the custom
prop, not the underlying dynamic prop backing it, which would violate the
former DISPID obtained for the respective name).

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
dlls/mshtml/dispex.c
dlls/mshtml/htmlwindow.c
dlls/mshtml/tests/documentmode.js