FirefoxBar / xStyle

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

"Fix read page JS object" breaks compatibility #4

Closed 8qwe24657913 closed 7 years ago

8qwe24657913 commented 7 years ago

https://github.com/FirefoxBar/xStyle/commit/0df342243bba33527922e73b1d3fc8c4c936a704 used wrappedJSObject, which is firefox only. As a simple workaround for communication between isolated world and page script, we can just append an invisible element to the document and set xstyle_xxx as its attribute.

sylingd commented 7 years ago

Fixed