minj / foxtrick

FoxTrick is a browser extension for the Hattrick online football manager game, currently available for Firefox, Google Chrome, as well as for Opera.
https://www.foxtrick.org
GNU General Public License v3.0
71 stars 49 forks source link

Foxtrick does not work in Chromium29 (Ubuntu) #1155

Closed minj closed 9 years ago

minj commented 9 years ago

Original issue 1155 created by karcher.niklas on 2013-10-25T15:36:57.000Z:

Chromium: v29.0.1547.65 Ubuntu 13.10 Foxtrick: v0.12.2.1

If the Hattrick site is visited the Foxtrick icon does not appear next to the address bar as if Foxtrick does not recognize the Hattrick site (this is just a wild guess!) and therefore no Foxtrick features are available on the Hattrick site. I was not able to get any debug output of the problem itself and I am pretty clueless on how to debug the issue at all.

minj commented 9 years ago

Comment #1 originally posted by minj on 2013-10-25T16:30:32.000Z:

Which Hattrick domain do you use?

Is Foxtrick enabled? It may sometimes be disabled by the browser when permissions change.

Have you tried reinstalling foxtrick completely?

There are two debug logs in chrome: one you can access from the Hattrick tab by pressing CTRL+SHIFT+J, the other is visible when you enable developer mode in the extensions tab and press on 'inspect views' in the Foxtrick listing in that tab.

minj commented 9 years ago

Comment #2 originally posted by karcher.niklas on 2013-10-25T17:54:01.000Z:

Which Hattrick domain do you use? http://www92.hattrick.org/

Is Foxtrick enabled? It may sometimes be disabled by the browser when permissions change. Yes it is enabled.

Have you tried reinstalling foxtrick completely? On multiple occations. I tried the nightly built version as well.

There are two debug logs in chrome: one you can access from the Hattrick tab by pressing CTRL+SHIFT+J, the other is visible when you enable developer mode in the extensions tab and press on 'inspect views' in the Foxtrick listing in that tab.

There are numerous errors reported in the CRLT+SHIFT+J console. Here are what I think the key errors: chrome.extension is not available: 'extension' is not allowed for specified context type content script, extension page, web page, etc.). Binding.generate (anonymous function) (anonymous function) Uncaught TypeError: Cannot call method 'getURL' of undefined (anonymous function) Uncaught TypeError: Object # has no method 'chromeContext' (anonymous function) (anonymous function) Uncaught TypeError: Object # has no method 'chromeContext' (anonymous function) Uncaught TypeError: Cannot call method 'replace' of undefined (anonymous function) Uncaught TypeError: Object # has no method 'chromeContext' (anonymous function) Uncaught TypeError: Cannot read property 'MAIN' of undefined (anonymous function) Uncaught TypeError: Cannot read property 'ACCESSIBILITY' of undefined (anonymous function) Uncaught TypeError: Cannot read property 'ALERT' of undefined (anonymous function) . . . TypeError get stack: function () { [native code] } message: "Cannot read property 'extension' of undefined" set stack: function () { [native code] } proto: Error log.js:87 TypeError: Cannot read property 'extension' of undefined at Object.Foxtrick.loader.chrome.docLoadStart (chrome-extension://bpfbbngccefbbndginomofgpagkjckik/content/loader-chrome.js:30:12) at chrome-extension://bpfbbngccefbbndginomofgpagkjckik/content/loader-chrome.js:134:24

I hope you can make heads and tails out of there errors!

minj commented 9 years ago

Comment #3 originally posted by minj on 2013-10-25T18:12:55.000Z:

Actually I can't. It seems Foxtrick is not initialized properly. A bunch of undefined objects and properties that confuse our algorithms into runing what should not run in that context. This naturally leads to a security exception.

There is probably something wrong with your profile and/or chromium install. How did you obtain chromium? From the ubuntu repos or some ppa? Try renaming the ~/.config/chromium directory. Launching chromium afterwards should make a new profile. Try installing Foxtrick there.

When did you notice the issue? Perhaps after an upgrade to 13.10? I am currently running 13.04 as I have made a habit of waiting at least a month for Ubuntu's release issues to be solved.

minj commented 9 years ago

Comment #4 originally posted by karcher.niklas on 2013-10-25T18:34:14.000Z:

I moved the ~/.config/chromium directory and installed Foxtrick in a new profile leading to the same result as before...

How did you obtain chromium? I am using chromium from the ubuntu repos.

When did you notice the issue? Perhaps after an upgrade to 13.10? I am currently running 13.04 as I have made a habit of waiting at least a month for Ubuntu's release issues to be solved.

This could very well be it! I updated to the new release a couple of days ago and this could coincide with the Foxtrick issue.

This is some excellent troubleshooting the only thing missing now is the fix ;)

minj commented 9 years ago

Comment #5 originally posted by minj on 2013-10-25T20:51:00.000Z:

The biggest problem here is that ubuntu devs are lazy asses and don't update chromium regularly like they do with FF.

Chromium from ubuntu 13.04 works fine for me. Admittedly it's v28 though. Yours is v29 but the current stable is actually v30.

Try sudo apt-get purge chromium-browser sudo apt-get install chromium-browser

or running unstable one from https://download-chromium.appspot.com/

I'll try 13.10 later...

minj commented 9 years ago

Comment #6 originally posted by minj on 2013-10-25T20:51:38.000Z:

OR you could try running chrome ;)

minj commented 9 years ago

Comment #7 originally posted by karcher.niklas on 2013-10-26T07:05:35.000Z:

I already tried purging and reinstalling Chromium without success. With Chrome, Foxtrick has no grudge and is working like a charm. I'll give Froxtrick in Chromium a try every now and then and see if some fixes from the ubuntu team will make it run but somehow I don't think this will be the case so my main hopes are that you fix it or find a workaround ;) Thx for the very quick support! Hattrick without Foxtrick is just not the same! Keep up the good work!

minj commented 9 years ago

Comment #8 originally posted by minj on 2013-10-31T08:37:16.000Z:

I can confirm this bug but it's due to a major fuck up of the Ubuntu packaging team. The whole chrome.extension object that is normally available in content scripts is missing.

https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1232575 says they fixed it in chromium 30. You need to wait for it to land.

This bug report is 'Invalid' in our context but I'm leaving it open in case anyone else complains about it.

Thank you for reporting the issue.

Status: NeedsFeedback Labels: -Platform-All, Platform-Chrome

minj commented 9 years ago

Comment #9 originally posted by minj on 2013-11-07T21:26:11.000Z:

Fixed in 30.0.1599.114 (available in saucy-security)

Status: Fixed