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.
https://bugs.winehq.org/show_bug.cgi?id=52727
--- Comment #1 from Sergey Bychkow sergey.bychkow@gmail.com --- Really the problem is with pure browser, even without embedding:
$ wine iexplore.exe file://Z:/Users/..../test1.html
This shows different result on Wine and Windows.
File test1.html is:
<html> <body> <script> document.write('window.Precious: '); var obj1 = window.Precious; document.write(obj1); document.write('<br>');
document.write('window.external: '); var obj2 = window.external; document.write(obj2); document.write('<br>');
document.write('window.external.MyPrecious: '); var obj3 = window.external.MyPrecious; document.write(obj3); document.write('<br>');
document.write('End of script'); </script> </body> </html>
https://bugs.winehq.org/show_bug.cgi?id=52727
Sergey Bychkow sergey.bychkow@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS|Linux |Mac OS X
https://bugs.winehq.org/show_bug.cgi?id=52727
--- Comment #2 from Sergey Bychkow sergey.bychkow@gmail.com --- Created attachment 72109 --> https://bugs.winehq.org/attachment.cgi?id=72109 This script fails on access to the external object
https://bugs.winehq.org/show_bug.cgi?id=52727
--- Comment #3 from Sergey Bychkow sergey.bychkow@gmail.com --- Created attachment 72115 --> https://bugs.winehq.org/attachment.cgi?id=72115 IE browser on Windows behavior:
https://bugs.winehq.org/show_bug.cgi?id=52727
--- Comment #4 from Sergey Bychkow sergey.bychkow@gmail.com --- Created attachment 72116 --> https://bugs.winehq.org/attachment.cgi?id=72116 WINE browser behavior: