ilinsky / jquery-xpath

jQuery XPath plugin (with full XPath 2.0 language support)
180 stars 64 forks source link

Not working anymore in chrome extension v3 manifest #27

Open AndriusCTR opened 3 years ago

AndriusCTR commented 3 years ago

"Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'"."

In other words, the latest chrome extension platform V3 does not allow eval and thus can't use this great library any more.

Any solutions?

ilinsky commented 3 years ago

The library does not appear to be using eval function (why should it?). The minimized version however does use Function constructor, which may cause the problem. Can you try not-minimized version maybe and report here?

AndriusCTR commented 3 years ago

Thanks, yeah full version seems to work properly.

I wonder if it's possible to have minimized version without eval...

ilinsky commented 3 years ago

Yes, the base engine has just been revived, and the dependant libraries builds will soon be created and published.

AndriusCTR commented 3 years ago

Thanks

bonjour-anuj commented 3 years ago

Any update on this?

ilinsky commented 3 years ago

No update yet.