Have the same problem in my case the reason was enable ENABLE_USER_SCRIPT_SANDBOXING (User Script Sandboxing enter image description here).
ENABLE_USER_SCRIPT_SANDBOXING
I turned off this flag and it fixed my problem