FirefoxBar / xStyle

A user styles manager for Firefox and Chrome
http://team.firefoxcn.net/#addons
GNU General Public License v3.0
171 stars 13 forks source link

Update from file #45

Open ghost opened 6 years ago

ghost commented 6 years ago

My Update URL is this:

file:///D:/Git/bay-master/config/xstyle/private.css

but it does not work

sylingd commented 6 years ago

WebExtension can not access local file

sylingd commented 6 years ago

I will test it

sylingd commented 6 years ago

I tested it, but both Chrome and Firefox not work 2017-11-20_122416 2017-11-20_122456

sylingd commented 6 years ago

Chrome can give extensions permission to read local files by check it (in chrome://extensions/) 2017-11-20_122828 And it works well with XMLHttpRequest 2017-11-20_122810 But Firefox doesn't have the same switch

sylingd commented 6 years ago

Tested on nightly 59.0a1 2017-11-20, maybe Firefox have fixed this "BUG" 2017-11-20_125115

sylingd commented 6 years ago

But the runtime environment of WebExtensions is not same as Browser Console, it's same as Web Console

ghost commented 6 years ago

@sylingd yes it does work:

http://github.com/Tampermonkey/tampermonkey/issues/347#issuecomment-345539557

sylingd commented 6 years ago

I have asked a staff of Mozilla China, He said that this is a BUG, and they have already marked it as "P1"importance (Priority: This field describes the importance and order in which a bug should be fixed compared to other bugs. This field is utilized by the programmers/engineers to prioritize their work to be done where P1 is considered the highest and P5 is the lowest. See Bugmasters/Process/Triage or for the main Buzilla project, Bugzilla:Priority_System.)

qq 20171124213124

ghost commented 6 years ago

not sure where you got that picture - but no that is not a valid bug:

http://bugzilla.mozilla.org/buglist.cgi?quicksearch=webextensions+local

sylingd commented 6 years ago

I am one of the administrators of FirefoxBar(a big chinese firefox forum). We are stay in touch with Mozilla China. This picture is sent by one of the staffs of Mozilla China. You can not view it because it is a private BUG.

sylingd commented 6 years ago

I found a extension called GhostText, maybe it is helpful on writing styles. I am trying to add it into xStyle

okyr-ux commented 6 years ago

Hey, @sylingd, thanks for a helpful extension! I have the same issue: styles don't autoupdate from local CSS files. Is there any progress on that? Does it work in Firefox (Quantum)?

sylingd commented 6 years ago

@okyr-ux Until now, there is no legal API to read local files