Cannot access all settings/options pages in Firefox
Hi there and thanks for the great plugin!
Description of the problem
I cannot access something else than "General" options tab in Firefox 57.0.4.
Url of the page where the problem occurs (not the image url)
Plugin settings/options
Steps to reproduce the problem (include image url here)
- Open settings in Firefox
- Try to access a different settings page than "General"
Further information
I am seeing the following error in debug console:
ReferenceError: yepnope is not defined gumby.js:1657:3
<anonym> moz-extension://62ac1eb8-bae6-44b8-9501-f34b56c2d384/js/libs/gumby.js:1657:3
<anonym> moz-extension://62ac1eb8-bae6-44b8-9501-f34b56c2d384/js/libs/gumby.js:1645:2
@stil Is this for your Firefox port?
I will take a look at this issue later today.
@mwld I'm not able to reproduce it. All tabs work for me on Firefox. Can you please specify which exactly version of HoverZoom you have?
@stil It says "Version 1.0.127" at the bottom of the plugins settings. Also I am seeing the translated German version of the plugins settings because of my locale. Could it be related to that? I am still experiencing this issue.
I am seeing the same thing. FF 57.0.4 \ 1.0.127 \ English.
@mwld @irvinm Please post a link to the extension you are using.
https://addons.mozilla.org/de/firefox/addon/hoverzoom-plus/
https://addons.mozilla.org/en-US/firefox/addon/hoverzoom-plus/
@stil Is that your extension or someone else's?
It's mine, I'll look into it again. Maybe there is a issue with different locales than English
@stil But @irvinm is using the English version and experiencing the same problem.
Did you investigate the JavaScript error I'm getting in the developer console? I guess the problem is the missing library that is responsible for switching tabs:
ReferenceError: yepnope is not defined gumby.js:1657:3 <anonym> moz-extension://62ac1eb8-bae6-44b8-9501-f34b56c2d384/js/libs/gumby.js:1657:3 <anonym> moz-extension://62ac1eb8-bae6-44b8-9501-f34b56c2d384/js/libs/gumby.js:1645:2
Still, I'm not sure why it's missing. I made sure there are no adblockers running on the plugin's settings page.
I found the same problem in the last chrome extension
gumby.js:1657 Uncaught ReferenceError: yepnope is not defined at gumby.js:1657 at gumby.js:1687
The only reference to yepnope is the line yepnope.errorTimeout = 2000 in gumby.js
(In Chrome it's line 1657, in FF line 1758.) The next line is: Modernizr.load({
Modernizer.load() is not included in your version of modernizr:
- Modernizr has an optional (not included) conditional resource loader
- called Modernizr.load(), based on Yepnope.js (yepnopejs.com).
The problem is:
- Modernizr.load() is deprecated and no longer part of modernizr.js: https://github.com/Modernizr/Modernizr/blob/5eea7e2a213edc9e83a47b6414d0250468d83471/src/load.js
- yepnope.js is deprecated: https://github.com/SlexAxton/yepnope.js#deprecation-notice
- gumby.js is also deprecated: https://github.com/GumbyFramework/Gumby
If you don't need the touch events, replacing line 32 in gumby js this.touchDevice = !!(Modernizr.touch || window.navigator.userAgent.indexOf("Windows Phone") > 0); with this.touchDevice = false; will probably fix this bug.
@fsproede Thank you for the investigation. Can you try it on your local machine and send a pull request if your suggestion works?
Done.