Orange-OpenSource / Orange-Confort-plus

The target of Orange Confort+ functionalities is to enhance user experience on web sites, which are already accessible, or still accessible. Orange Confort+ provides these services : Typography - user may change: font size, space between words, characters and lines, font-face to Open Dislexic Layout: cancel layout, text align left, numbering list items, modify navigation links appereance, disply a reading ruler Colors : Modify foreground/background colors Behavior: direct access to main content on page load, automatic selection of page clickable elements with a user defined delay, page scrolling on simple user on hover. Be careful, Orange Confort+ does not improve the accessibility level of a web site: blocking points still stay blocking points, with or without Orange Confort+.
https://confort-plus.orange.com/
GNU General Public License v2.0
42 stars 25 forks source link

Failed to read named property 'contentDocument' #231

Closed RavanH closed 4 months ago

RavanH commented 4 months ago

Hi, working the latest script into a dev site, I'm getting this error:

DOMException: Failed to read a named property 'contentDocument' from 'Window': Blocked a frame with origin "https://dev.xxxxx.com" from accessing a cross-origin frame. at Object.setCSS (https://dev.xxxxx.com/serveur/js/toolbar.min.js?ver=5:6:856366) at Object.loadTheToolbar (https://dev.xxxxx.com/serveur/js/toolbar.min.js?ver=5:6:862932) at Object.firstInitToolbar (https://dev.xxxxx.com/serveur/js/toolbar.min.js?ver=5:6:862778) at init (https://dev.xxxxx.com/serveur/js/toolbar.min.js?ver=5:6:861798)

The toolbar works, but any script that is added after the toolbar.min.js, is failing...

This error occurs on Chrome 125.0.6422.141 (on Linux)

ffoodd commented 4 months ago

Hi there, I removed one of three occurrences for contentDocument that was useless and ensured to log errors in the console when possible.

However there's more chance that you're encountered a Same-Origin issue and there's nothing Confort+ can do with that. But it should not stop working in that case.

Please try the incoming commits on main to check if that helps.