https://bugs.winehq.org/show_bug.cgi?id=53927
Bug ID: 53927 Summary: script56.chm help file pages not functioning properly due to wine missing beforeprint and afterprint html events Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: mshtml Assignee: wine-bugs@winehq.org Reporter: dimaki@rocketmail.com Distribution: ---
script56.chm is a Microsoft HTML help file for Microsoft Windows Script Technologies. It can be downloaded online as a standalone and is also included with various windows scripting editors and IDEs such as VbsEdit.
Most of the webpages that make up the chm file make use of beforeprint and afterprint html events. I was able to determine that Wine's lack of support for these results in certain functionality not working on these pages.
A reproducible example would go as follows. Run the script56.chm file with the command "wine hh script56.chm". Go to the "Abs Function" page(or one of many others) in the help file. You will see that the Remarks, Requirements, and See Also sections are hidden instead of visible like on native. Hitting the + sign does not expand the sections as expected on native. Also, hitting the Print button on the top bar does not modify the page as expected.
https://bugs.winehq.org/show_bug.cgi?id=53927
Dmitry Kislyuk dimaki@rocketmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gabrielopcode@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=53927
Gabriel Ivăncescu gabrielopcode@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED Assignee|wine-bugs@winehq.org |gabrielopcode@gmail.com
--- Comment #1 from Gabriel Ivăncescu gabrielopcode@gmail.com --- Did a quick look on these events. We are using wine-gecko to print, and gecko seems to support them already. They're generic events as well, so the implementation is pretty trivial.
The problem is that I actually ran into more issues. This unveiled a pretty serious issue where all gecko events were never dispatched by us if the target was the window. Also, during "afterprint" event handler it wants location.reload() implemented (which makes sense since it reloads the page, "beforeprint" changes its layout).
There also seems to be an issue with load event called too much, which will need more investigation.
https://bugs.winehq.org/show_bug.cgi?id=53927
Dmitry Kislyuk dimaki@rocketmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |0e71100e56165b0ebbd7bc1ed3b | |c3832aec13985
--- Comment #2 from Dmitry Kislyuk dimaki@rocketmail.com --- Beforeprint and afterprint events as well as other fixes are now in git. I can confirm that issues I saw when filing this bug are now fixed.
Thank you Gabriel for the fixes! https://gitlab.winehq.org/wine/wine/-/commit/0e71100e56165b0ebbd7bc1ed3bc383... https://gitlab.winehq.org/wine/wine/-/commit/2865a5f1137aa90e5ed30fa9f4d71f5... https://gitlab.winehq.org/wine/wine/-/commit/144479afa1f85adae8e872cd755c71f...
https://bugs.winehq.org/show_bug.cgi?id=53927
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.0-rc1.