Open Robert-IMT opened 6 years ago
i'm finding the same error... chrome version 64.0.3282.140 (Build ufficiale) (a 64 bit)
Same here:
Error in event handler for runtime.onMessage: SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules at findStyleSheets (chrome-extension://diebikgmpmeppiilkaijjbdgciafajmg/scripts/content-script.js:1014:12) at chrome-extension://diebikgmpmeppiilkaijjbdgciafajmg/scripts/content-script.js:1052:13
Chrome Version 64.0.3282.186 (Official Build) (64-bit)
+1
The author replied as follows: "project support is suspended for an indefinite period." So that...
very nice :-(
...i solved this problem by removing the operating system updates for 2018.
i solved removing livestyle ...
+++ Сергей, что случилось с плагином? после обновления что то перестал работать( Откатывать версию хрома или как быть ? Дайте совет что ли, без вашего плагина уже тяжело как либо делать задачки , которые экономили уйму времени!
This issue is caused by recent Chrome update: it blocks access to some CSS files. Don’t know if it can be solved easily. Does extension works with opened DevTools?
Нет Сергей, оно сейчас вообще не работает увы( около часа пытаюсь настроить и так и эдак, никак не включается
Если devtools открываешь, пишет что расширение только обновилось, закрой и откройте devtools, чтобы обновить расширение. Потом если даже и включается, то не видит никакие css(sass и прочие) файлы....
@Robert-IMT Any ideas to solve this problem? How can i fix it? Or any similar extension or way to edit sass live from devtools and save it in ST3 or other editor? Can anybody help me ? Give me advice?
+1
@Zet-Web Maybe this will help you: looks like it is possible to save changes from Chrome DevTools without using any plugin, here is how: https://developers.google.com/web/tools/setup/setup-workflow It tried and it works well both ways: changes in source files are visible in chrome without refresh. They also say that it works with CSS processors (https://developers.google.com/web/tools/setup/setup-preprocessors) however I didn't try ...
@kubamarkiewicz Hi, thanks a lot. I tried it , but in new version of chrome i can't see it ... so i think it's not working now. It's my screenshot from my devtools. All flags are enabled, i think so. When i tried it this feature working not stable ( Livestyle so too, many bugs , but i Used and adapted for this extension.
So i think they are disabled it (
Работа встала из-за этой ошибки. Как же быстро мы подсели на livestyle. Сергей, поделитесь инфой, стОит ли ожидать исправления данной ошибки в ближайшее время? Почем и на какой счёт мы должны скинуться, чтобы вы возобновили поддержку этого плагина? 😁 Сделайте его платным. Мы - разрабы - несём убытки, и должны платить за удобства. Многие из нас согласятся заплатить за ваш незаменимый плагин. Пожааалуйста 😻😻😻, вернитесь!!!
Having the same error here. Please help with a fix. The LiveStyle tool is so much better than LiveReload. I don't want to switch over.
Error in event handler for runtime.onMessage: SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules at findStyleSheets (chrome-extension://diebikgmpmeppiilkaijjbdgciafajmg/scripts/content-script.js:1014:12)
@Zet-Web sorry, I don't know how to help you. I am using new version of chrome and it works very well with CSS files, but I didn't try it with SASS ...
I made a quick research of this problem. It was caused by recent Chrome update which taints stylesheets with CORS: https://chromium.googlesource.com/chromium/src/+/a4ebe08c91e29140e700c7bae9b94f27a786d1ca
Unfortunately, I was unable to fix it, even by rewriting requests on-the-fly with Chrome API. It also means that this change is breaking for LiveStyle which uses CSSOM to build a list of available stylesheets and patch them with incoming updates from editor.
If there’s no solution to allow extension’s content script access to CSSOM, it will require a full LiveStyle extension rewrite and make it less intuitive (for example, it may require to open DevTools to make LiveStyle work)
Sergey, this means that we will no longer be able to use livestyle ... So sad.
I was thinking about possible ways out.
Thank you very much, Sergey. Years spent with Livestyle were the most productive. You made an excellent app. It's sad that everything ends.
Сергей, вы крутой! Спасибо за LiveStyle.
By the way, on some sites livestyle continues to work fine. And it does not depend on the CMS on which the site operates. I checked 2 sites on bitrix - on one everything is ok, on the other - an error. Maybe it's in the server settings?
The situation does not change even if DevTools is open.
(Не хочу так просто расставаться с Livestyle)
Yes, it might be resolved on server side with CORS headers. Try to use crossorigin="anonymous"
in <link>
tags and make sure server responds with proper Access-Control-Allow-Origin
header
@sergeche Да ваш вариант помог мне правда я не использовал данный плагин проста столкнулся с этой проблемой и решил с вашей помощью
Hi, how can I get a proper Access-Control-Allow-Origin header from my apache? If I write
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
in my .htaccess
. I get the error message further. Or does I need another URL instead of the *
Hi! Don't know if this is okay to do, remove this comment if it isn't. It fixes the chrome error. Edit the file scripts/content-script.js at line 1016 and wrap this block in a try-catch:
if (item.cssRules) { for (var j = 0, jl = item.cssRules.length; j < jl; j++) { if (item.cssRules[j].type == 3) { findStyleSheets([item.cssRules[j].styleSheet], out); } } }
You'll have to remove the original extension and add this one manually instead.
Cheers!
@danielgreg - Hi. Could you share the try-catch you set up? Cheers, S :)
Yes, it might be resolved on server side with CORS headers. Try to use
crossorigin="anonymous"
in<link>
tags and make sure server responds with properAccess-Control-Allow-Origin
header
Thank you! This worked for me... livestyle bi-directional functioning with google fonts :)
resolví eliminar livestyle ...
me funciono al hacer lo mismo, gracias!!!!
Error in event handler for runtime.onMessage: SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules at findStyleSheets (chrome-extension://diebikgmpmeppiilkaijjbdgciafajmg/scripts/content-script.js:1014:12)