diff options
author | Linus Groh <mail@linusgroh.de> | 2022-08-23 17:44:31 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-23 17:44:39 +0100 |
commit | 61e18c681baacca25dffadeab688730402b6c443 (patch) | |
tree | c30a3c5e4332925acedea8e4bd3b89b90cd77d24 /Userland/Libraries/LibC | |
parent | 00470ee59a855c48491787a3ba9fa0c7d35ee0fd (diff) | |
download | serenity-61e18c681baacca25dffadeab688730402b6c443.zip |
LibWeb: Restore realm retrieval from 'this' in activate_event_handler()
Removing the FIXME'd code in b99cc7d was a bit too eager, and relying on
the main thread VM's current realm only works when JS is being executed.
Restore a simplified version of the old code to determine the realm this
time instead of the global object, following the assumptions already
made in get_current_value_of_event_handler() regarding what kind of
event target 'this' can be.
Diffstat (limited to 'Userland/Libraries/LibC')
0 files changed, 0 insertions, 0 deletions