-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Safari 12 refuses to parse dataURLs #4964
Comments
Any news on this issue? |
Same here. Anything new? |
Any update or fix for this issue ?? |
Do you have any update for this? My suite is not running on Safari Tried the example given in https://github.com/angular/protractor/blob/master/docs/browser-setup.md website, that as well is giving the same error. I think it has something to do with the driver. |
Facing same issue, Any fix for this issue? |
Any fix for this issue? What is the alternative anyone is trying right now? |
We are now encountering the same issue in the @globaleaks project: https://api.travis-ci.org/v3/job/582019060/log.txt @chrisguttandin have you found any solution? |
@chrisguttandin: is it possible that the app you were testing was implementing Content Security Policy headers preventing data URIs? |
Actually this comment by @juliemr seems relevant: #1223 (comment) |
#4964 (comment) |
Hi @evilaliv3, no I don't use CSP when running the tests. As mentioned in the bug report above a workaround is to add |
super, thank you! |
Bug report
v10.11.0
5.4.1
6.1.8
Safari 12
macOS 10.13.6
The configuration file is the same as the one which was generated by the CLI. Only the browserName was changed and the directConnect property was removed.
It's enough to just run the default tests.
A workaround is to add
browser.resetUrl = 'about:blank';
to the onPrepare function. But I think it would be nice if Protractor works with Safari out of the box. A fix for Safari which does at least not break tests with Chrome would be to change theDEFAULT_RESET_URL
to 'about:blank'. But I don't know if that has implications which affect other browsers.https://github.com/angular/protractor/blob/master/lib/browser.ts#L22
Please let me know if you think it is a viable solution. I'm happy to provide a pull request for changing that.
The text was updated successfully, but these errors were encountered: