-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsafe JavaScript attempt #4
Comments
Thanks for trying it out! I don't see these errors. Can you provide some reproduction steps (also what browser/environment etc.) using the |
the same thing happened to me.
here is the error:
|
Hi @sandermak, this is my setup: PhantomJS: 1.9.12 specrunner.html: <!DOCTYPE html>
<html>
<head>
<title>Jasmine Test Runner</title>
<link rel="shortcut icon" type="image/png" href="jasmine/lib/jasmine-2.0.3/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="jasmine/lib/jasmine-2.0.3/jasmine.css">
<script type="text/javascript" src="jasmine/lib/jasmine-2.0.3/jasmine.js"></script>
<script type="text/javascript" src="jasmine/lib/jasmine-2.0.3/jasmine-html.js"></script>
<script type="text/javascript" src="jasmine2-junit/jasmine2-junit.js"></script>
<script type="text/javascript" src="jasmine2-junit/boot.js"></script>
<script type="text/javascript" src="vendors.js"></script>
<script type="text/javascript" src="specs.js"></script>
</head>
<body>
</body>
</html> I would expect this to be a phantomJS problem though. I played around with the code and there is something at "onInitialized" that causes this. Just adding an empty function to it causes the problem to occur. Maybe report it to phantomJS team? Or maybe dynamically create an inline javascript inside jasmine2-runner that loads before everything else, with the key and path separator thingy? I could have a go at that this weekend, let me know :-) |
I'm running this with PhantomJS 1.9.7 on Mavericks and don't see it, so it seems like a change in PhantomJS triggers this. I'd be happy to merge a PR that fixes this for you (given that it doesn't break existing usecases of course). |
Ah, that would be awesome @sandermak. Its the last small thing of this React JS boilerplate I have been working on. Check it out if you want: https://github.com/christianalfoni/react-app-boilerplate. |
Also seeing this with PhantomJS 1.9.8 |
Hi,
Great work on this!
When running the tests everything seems to work, but I get the following message 4 times after the result:
Unsafe JavaScript attempt to access frame with URL about:blank from frame with URL file://src/jasmine2-runner.js. Domains, protocols and ports must match.
You know why that is? Kinda annoying :-)
The text was updated successfully, but these errors were encountered: