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

Most upvoted comments

Im using 0.13.0 as far as i can tell