ariya/phantomjs — pull request #12720 by Vitallium (2014-11-06 17:22:32+00:00)
Title: We shouldn't change the URL of the main execution context.

Because this will change security policy of our main frame which leads to the following message: `Unsafe JavaScript attempt to access frame with URL about:blank from frame with URL file://bla.js. Domains, protocols and ports must match.`

We can fix it by isolating main frame of PhantomJS execution context. We can destroy it separately.

This fixes: #12697 #12660