New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some Chrome extensions styles causes a crash. #6
Comments
Hi @AlmeroSteyn, would be nice to know which version of The only possibility I see might be wrapping it in a A testing environment may be found at gbitest by the way, |
The page is using version I did not think to check in the closed things for this as it was breaking, hehe. BUT, I can confirm that in I hard edited |
Thanks for checking : )! Gonna try to integrate it later today (and as I just saw, update |
Yeah forgot to mention. I did bump before I tested though :-) Thanks! |
And down the rabbit-hole we went oO: Fixed it with the aforementioned Updated the dependencies in gbitest as well (and might you give it a go ; ). Thanks again @AlmeroSteyn! |
Hey it's a pleasure! I found the bit about 64 but not the change in the spec. Nice sleuthing!!! I dit a test with |
Happy it's working - and you're welcome and thanked - might have bitten me sooner or later ^^. Didn't know about these changes, either, but I'm quite liking the specs (helped me a few times beforehand, too, like in this case % ). And thanks for a new word for my vocabulary (as German is my native tongue), |
Hehe cool! Kinda word that is never used aside from in whodunit novels and github issues hahaha. |
Yip, "neighs, quoth in yesteryear though nevermore" ; ). |
Not sure if I should re-open a new issue or not but I am currently using GBI v
A similar error for the yotpo widget as well. Is there a way around this? Not exactly sure how to handle it. |
@EricSSartorius Thought this was solved oO. Gonna look into it. try {
classes = typeof styleSheets[i].rules !== 'undefined' ? styleSheets[i].rules :
typeof styleSheets[i].cssRules !== 'undefined' ? styleSheets[i].cssRules : ''
} catch (e) {
console.debug(`Unable to read stylesheet rules for ${ styleSheets[i].href }`, e)
} So it should only be visible in dev environment and not really break anything. |
Changed it to only |
Ah ok, Yeah I didn't notice any crazy behavior only that I had a ton of messages in the console and it took me by surprise I guess. |
I was looking at a site that uses this library today (https://marcysutton.com/) and through blind luck I noticed that, when extensions load stylesheets, it causes this component to crash in Chrome.
I would submit a PR but would take a lot of time to set up an enviroment where I could test this as I do not yet use it myself, so here are my findings.
If you go to the site above, and load this extension: https://chrome.google.com/webstore/detail/wave-evaluation-tool/jbbplnpkjmmeebjpijfedlgcdilocofh you could try it.
The error happens when the extension has been activated and I attempt a navigation.
In
BackgroundUtils.js
on line 11 the following error occurs:From what I could find out it appears that Chrome is the only browser that treats this as an error. From (odoo/odoo#22517 (comment)) it appears that adding the following code fixes this issue:
Once again, I would have loved to do a PR just don't have the time today to get the test environment up to confirm the fix before submitting :-(
The text was updated successfully, but these errors were encountered: