uncss: Fatal error: PhantomJS: Cannot open about:blank
Hello.
Thanks for building uncss. It’s awesome.
I’m using a WordPress with Gravity Forms, which uses a peculiar hack… it makes ajax calls from within an iFrame, and the iFrame is pointed at _about:blank. Unfortunately, PhantomJS chokes on this link, causing uncss to quit with the error:
Fatal error: PhantomJS: Cannot open about:blank
I think, but I’m not certain, that this is related to the way PhantomJS deals with SSL. I don’t really know much about SSL or SSL errors, However, Google tells me that CasperJS users have experienced the same issue, and the workaround was to tell PhantomJS to ignore SSL errors by running it with the flag ‘–ignore-ssl-errors=true’.
If this is, in-fact, related to the SSL problem, might a simple fix be to just have UnCSS run PhantomJS with this flag? I would think that SSL errors are not germane to what uncss does, so perhaps they can be ignored without repercussions.
(If it isn’t related to the SSL problem, any advice for me?)
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 42 (7 by maintainers)
Commits related to this issue
- downgrade uncss version to use 0.10.0 explicitly, as newer versions have an issue with phantomJs and about:blank, see: https://github.com/giakki/uncss/issues/150 — committed to garethtalty/gulp-uncss by garethtalty 9 years ago
- Version bump dependencies grunt-uncss needed special handling, due to its dependency uncss 0.12.1 being broken, see https://github.com/giakki/uncss/issues/150. So I pinned uncss to 0.10.0. — committed to matachi/hesitant by deleted user 9 years ago
- Merge pull request #192 from elamperti/patch-150 Revert fromLocal() to fix #150 — committed to uncss/uncss by giakki 8 years ago
Im using 0.13.0 as far as i can tell