hoverzoom icon indicating copy to clipboard operation
hoverzoom copied to clipboard

Cannot access all settings/options pages in Firefox

Open mwld opened this issue 8 years ago • 14 comments

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)

  1. Open settings in Firefox
  2. 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

mwld avatar Jan 13 '18 19:01 mwld

@stil Is this for your Firefox port?

extesy avatar Jan 13 '18 19:01 extesy

I will take a look at this issue later today.

stil avatar Jan 14 '18 10:01 stil

@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 avatar Jan 18 '18 22:01 stil

@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.

mwld avatar Jan 19 '18 14:01 mwld

I am seeing the same thing. FF 57.0.4 \ 1.0.127 \ English.

irvinm avatar Jan 20 '18 14:01 irvinm

@mwld @irvinm Please post a link to the extension you are using.

extesy avatar Jan 20 '18 21:01 extesy

https://addons.mozilla.org/de/firefox/addon/hoverzoom-plus/

mwld avatar Jan 22 '18 09:01 mwld

https://addons.mozilla.org/en-US/firefox/addon/hoverzoom-plus/

irvinm avatar Jan 22 '18 17:01 irvinm

@stil Is that your extension or someone else's?

extesy avatar Jan 22 '18 19:01 extesy

It's mine, I'll look into it again. Maybe there is a issue with different locales than English

stil avatar Jan 22 '18 19:01 stil

@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.

mwld avatar Jan 24 '18 18:01 mwld

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 avatar Apr 07 '18 21:04 fsproede

@fsproede Thank you for the investigation. Can you try it on your local machine and send a pull request if your suggestion works?

extesy avatar Apr 08 '18 03:04 extesy

Done.

fsproede avatar Apr 08 '18 20:04 fsproede