I have a script which sets the "document.location.href" value. I noticed that sometimes I ended up with tabs using the "chrome:// browser/content/browser.xul" URL.
I tracked this problem down to accidentally setting a blank value to document.location.href. So basically: document.location.href = ""; In a user script, the above line loads chrome://browser/content/browser.xul into a tab. This causes all kinds of problems with Firefox since it doesn't like loading that URL into a tab. If I type the following into the awesome bar, it simply reloads the current page: javascript:document.location.href = ""; The problem also exists in both Firefox 3.6.13 and Minefield and in both GM 0.8.20100408 and GM 0.9 Why exactly does setting document.location.href to a blank string or null load the browser.xul when called via a user script, but simply reload the page when called from the page itself? -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
