You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2023. It is now read-only.
it('should test phantom iframe creation and receive message from iframe',function(done){varifrm=document.createElement('iframe');ifrm.setAttribute('src','https://dummy.net/channel.html');ifrm.style.visibility='hidden';vareventMethod=window.addEventListener ? "addEventListener" : "attachEvent";vareventer=window[eventMethod];varmessageEvent=eventMethod=="attachEvent" ? "onmessage" : "message";eventer(messageEvent,function(e){done();},false);document.body.appendChild(ifrm);});
I run this code under karma test runner with Mocha test framework using Phantomjs as a browser to test in. This code can`t load the iframe from https source. channel.html should only do window.parent.postMessage('test', '*') on load. If I change it to load from http - it works great. However with dummy (fake domain) it crashes karma completely with http..
The text was updated successfully, but these errors were encountered:
It works with Chrome, Opera and Safari, and not with Firefox (all latest versions). Mac OS 10.8.2.
PhantomJS 1.9.0 - seems to be installed with brew (not compiled for sure).
No, I did not at the moment. I launch it with Karma test runner.
Is there any news on this issue ? --ignore-ssl-errors=true option doesn`t help. What do you think, is it WebKit restriction or V8 ? May be I can help to fix this ?
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!
Code from test:
I run this code under karma test runner with Mocha test framework using Phantomjs as a browser to test in. This code can`t load the iframe from https source. channel.html should only do window.parent.postMessage('test', '*') on load. If I change it to load from http - it works great. However with dummy (fake domain) it crashes karma completely with http..
The text was updated successfully, but these errors were encountered: