|
|
Customers GenoPro version: 2.5.3.9
Last Login: Sunday, July 25, 2021
Posts: 34,
Visits: 275
|
I'm using the very latest version of Chrome on both Windows 7 & 10. I like Chrome because it has good support for SVGs ... and it's much faster and user-friendly than Firefox!
Today, I went to look at some previous web reports I'd produced and the tree diagrams will no longer appear (pop-up?) in a sub-window. I can open them in another tab but not in the main tab! [It still works fine with Firefox.] I suspect I've changed something in my Chrome settings or something has changed in the latest version of Chrome! Does anybody have any suggestions?
Tags:
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 16 seconds ago
Posts: 3,423,
Visits: 26,470
|
I assume you are generating and viewing this report locally via a 'file://' URL. Previously I have managed to find work-arounds to enable a frame-based report to be viewed in this way, overcoming modern browsers 'same origin' security policy. Maybe Google have now blocked one of the few work-arounds. The frames are produced correctly but the problem is in inter-frame communication to tell the frames to 'unhide' themselves by manipulating the framesets row/column settings.
Chrome seems to think that it is a security risk to allow one frame to communicate with another when they reside in the same local folder but not when then they are on a remote server !!! If you press F12 to open the developer tools you will see the error message 'Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null').' WTF? I feel that I am fighting a losing battle in continuing to patch the Narrative Report to run in this way. The real solution according to the Chrome team is to view your reports via a web browser using http: scheme and not file:. So the options are to publish to a remote web server such as familytrees.genopro.com or install a web server locally on your PC ( or LAN). If you are technically minded and have Windows Professional/Ultimate then you could use IIS but I would recommend either mongoose or nginx. My preference is for the later. I will try and put together a 'How To' for installing and using nginx soon.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Customers GenoPro version: 2.5.3.9
Last Login: Sunday, July 25, 2021
Posts: 34,
Visits: 275
|
Thanks. Yes, the message was as you predicted:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null'). However, there was also a previous message: SVG's SMIL animations (<animate>, <set>, etc.) are deprecated and will be removed. Please use CSS animations or Web animations instead. It looks as if Chrome has changed recently and I'll have to revert to Firefox! I often send web reports to other (very non-technical) people, so I can't be asking them to install a local web server! Unfortunately, Firefox has become too techie-driven, so I'd switched away from it for simple work.
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 16 seconds ago
Posts: 3,423,
Visits: 26,470
|
Mongoose is very easy to use and is tiny. You can place it in the report folder and send it with your report. The recipients will then just need to start mongoose. It will run up as a web server and then launch their default browser to open default.htm, i.e. the Narrative Report. .
The down side is that if they then close the browser, mongoose continues to run and can only be closed by right-clicking its icon in the windows system tray and choosing exit. Multiple copies of mongoose will run if they run mongoose again without closing the previous one. To access the report again without closing and restarting mongoose they will need to type localhost:8080/ in their browser's address bar Mongoose is free for private use and is available for Windows, Mac OS and Linux.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|