Spawning popups for e.g. Google Bookmark from within Ubiquity
Just as in bookmark keywords, Firefox blocks popups spawned by Ubiquity. Example: I've wanted to use a bookmark keyword to access the Google Bookmark bookmarklet, but FF blocks it. I ported the javascript to Ubiquity, but had to add "command" to "dom.allowed_popup_events" to prevent FF from blocking it.
Is there another way I could share my code with others that wouldn't require they modify settings in "about:config"? Is there any way we can get "command" into the default setting for this variable?
Is there another way I could share my code with others that wouldn't require they modify settings in "about:config"? Is there any way we can get "command" into the default setting for this variable?
1
person likes this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
-
Inappropriate?Thanks for bringing this to our attention. I guess I hadn't noticed that Firefox blocks popups from ubiquity because none of the built-in commands open pop-up windows.
Perhaps the easiest solution would be to add some code to your command that checks the preferences, and sets "command" in "dom.allowed_popup_events", before attempting to launch the new window. This is quite possible, since Ubiquity javascript has chrome access, and the Firefox preferences are modifiable through XPCOM. (You can read about how on MDC, here: http://developer.mozilla.org/index.ph... )
I’m happy
Loading Profile...



