Has anyone else noticed a problem with scripts terminating, immediately
after executing GM_openInTab? This is only happening in FF 4.0. The same
scripts work fine in FF 3.6.
Here's the error it's throwing:
Error: uncaught exception: [Exception... "'[JavaScript Error: "aTab is
undefined" {file: "chrome://browser/content/tabbrowser.xml" line:
1937}]' when calling method: [gmIMenuCommand::doCommand]" nsresult:
"0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS
frame :: chrome://browser/content/browser.xul :: oncommand :: line 1"
data: yes]
Here's a demo script. It never gets past the first GM_openInTab. It adds
a User Script Menu option, and should open 3 sites when the option is taken.
// ==UserScript==
// @name OpenScriptTest
// @namespace http://gmscripts.locusprime.net
// @description Test of GM_openInTab problem
// @include http://*
// @include https://*
// ==/UserScript==
GM_registerMenuCommand('Open 3 sites in tabs', fOpenInTabs);
function fOpenInTabs() {
GM_log('Opening Google');
GM_openInTab('http://google.com');
GM_log('Opened Google');
GM_log('Opening Slashdot');
GM_openInTab('http://slashdot.org/');
GM_log('Opened Slashdot');
GM_log('Opening Boing Boing');
GM_openInTab('http://www.boingboing.net/');
GM_log('Opened Boing Boing');
}
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to greasemonkey-users@googlegroups.com.
To unsubscribe from this group, send email to
greasemonkey-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.