https://bugs.winehq.org/show_bug.cgi?id=52727
Bug ID: 52727 Summary: Access to window.external in an embedded browser breaks javascript Product: Wine Version: 5.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ieframe Assignee: wine-bugs@winehq.org Reporter: sergey.bychkow@gmail.com Distribution: ---
I'm not sure that this is problem for ieframe, or shdocw, or gecko component, but when javascript in an embedded browser tries to access custom window.external object defined with an implementation of IDocHostUIHandler.GetExternal() then javascript fails to proceed. The call of GetExternal() function returns successfully.
A javascript code looks like:
{script} document.write('external: '); var obj2 = window.external; -- next lines won't execute on Wine, but work on Wndws document.write(obj2); document.write('<br>'); var obj3 = window.external.myProperty; {/script}
Embedding is done like in the article: https://delphidabbler.com/articles/article-22
TODO: Make isolated test case if information is not enough.