While still being fully functional, Ghostery on Opera Next x64 12.50 throws an error onto the console when changing to a tab not containing a webpage (i.e. Options, Downloads, etc..)
Error is thrown at function getFoundBugs(tab_url)
=> Unhandled Error: Cannot convert 'tab_url' to object
In line 487:
tab_url = tab_url.replace(/#.*$/, ''); // strip the anchor
Stack trace shows, that error propagation starts in
function updateButton();
The statement
var tab = opera.extension.tabs.getFocused();
executed on non-webpage tabs returns a valid Tab-Object with the url-property being undefined.
So updateBadge(tab.url); will be called with an undefined value.
(Btw: On non-webpage tabs, no buttons are displayed, so a button-update is effectless.)
Maybe you can put the responsible statements in try{}catch(){} blocks if the error is unavoidable. I have to deactivate your extension each time during development just to see my own messages in the console ;)
Error messages in Opera caused by Non-Webpage-Tabs (Options, Downloads, etc..)
-
Hi Matthias,
Sorry for the hassle. We'll look into eliminating these in the future. -
-
Are you using Dragonfly for development? You shouldn't be seeing error messages from Ghostery's background process when you aren't in Ghostery's context in Dragonfly.
-
-
Yup, that where I extracted the information above.
But as I like to use the console for a quick overview, I repeatedly stumbled over Ghostery's messages ;) -
-
In Opera 12, when navigating to Opera internal pages such as the Extensions manager, the following error occurs:
[6/21/2012 6:27:49 PM] JavaScript - widget://wuid-4e362631-2c65-0420-02d4-317e2cf9a972/index.html
Event thread: focus
Uncaught exception: TypeError: Cannot convert 'tab_url' to object
Error thrown at line 500, column 1 in getFoundBugs(tab_url) in widget://wuid-4e362631-2c65-0420-02d4-317e2cf9a972/index.html:
tab_url = tab_url.replace(/#.*$/, '');
called from line 506, column 1 in getFoundApps(tab_url, sorted) in widget://wuid-4e362631-2c65-0420-02d4-317e2cf9a972/index.html:
var apps_arr = [],
called from line 483, column 2 in updateBadge(url) in widget://wuid-4e362631-2c65-0420-02d4-317e2cf9a972/index.html:
apps = getFoundApps(url);
called from line 58, column 2 in updateButton() in widget://wuid-4e362631-2c65-0420-02d4-317e2cf9a972/index.html:
updateBadge(tab.url);
This happens because, with the new API, tabs.getFocused() does return a tab object even if Opera can't inject scripts into the tab. The URL of many internal pages is undefined.
This doesn't really affect much, but it does break the extension on private tabs when the extension's privacy settings prevent it from accessing private tabs.
This reply was created from a merged topic originally titled
Ghostery needs update for Opera 12's new API. -
-
-
-
-
Likely in the next couple of weeks.
-
-
good, we will wait
-
-
-
-
-
-
Loading Profile...



Twitter,
Facebook, or email.

CHAMP

