Skip to content
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

SlimerJS not compatible with Firefox 62 #707

Open
kaosko opened this issue Sep 14, 2018 · 5 comments
Open

SlimerJS not compatible with Firefox 62 #707

kaosko opened this issue Sep 14, 2018 · 5 comments

Comments

@kaosko
Copy link

kaosko commented Sep 14, 2018

versions

SlimerJS: 1.0.0, 1.1.0-pre
Firefox: 62 (59 works ok, up to 61 with a patch for #694)
Operating system:
Ubuntu 16.04.2 LTS

Steps to reproduce the issue

Try to take a screenshot of any webpage with slimer.js

Actual results:

Error during the script execution
[Exception] TypeError: ioService.newChannel is not a function filename:resource://slimerjs/slUtils.jsm line:180

Stack trace:
0:readChromeFile@resource://slimerjs/slUtils.jsm:180:19
launchMainScript@resource://slimerjs/slLauncher.jsm:109:23
startup@chrome://slimerjs/content/slimerjs.js:20:9
onload@chrome://slimerjs/content/slimerjs.xul:1:1

Expected results:

Able to take a screenshot and operate normally.

Besides #694 that affects compatibility with FF 60, 61, FF 62 has apparently removed obsolete (since FF 48) functions newChannel(...) is nsIIOService (https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIIOService) used in slUtils.jsm.

@kaosko
Copy link
Author

kaosko commented Sep 14, 2018

Not quite enough just switch to newChannel2 and provide null for the rest of the arguments (even though this post seems to suggest so: https://stackoverflow.com/questions/3772788/how-to-load-file-from-inside-firefox-plugin). Perhaps need to use newChannelFromURI2 instead since we have an URI argument. For my purposes though, I just disabled coffeescript in slConfiguration.jsm and that did the trick to make it working with FF 62.

@marcwaz
Copy link

marcwaz commented Sep 16, 2018

please fix it +1

@MarkR42
Copy link
Contributor

MarkR42 commented Sep 20, 2018 via email

@marcwaz
Copy link

marcwaz commented Sep 20, 2018

@MarkR42 could you provide a Dockerfile sample ?
For me it doesn't work with FF62.

@MarkR42
Copy link
Contributor

MarkR42 commented Sep 20, 2018

I can't provide a Dockerfile sample. For me it works with this change (plus change application.ini to allow Firefox 62)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants