def openDialog(args, traverser, node, wrapper): """Raise an error if the first argument is a remote URL.""" if not args: return uri = traverser._traverse_node(args[0]) from call_definitions import open_in_chrome_context open_in_chrome_context(uri, "openDialog", traverser)
def openDialog(args, traverser, node, wrapper): """Raise an error if the first argument is a remote URL.""" if not args: return uri = traverser._traverse_node(args[0]) from call_definitions import open_in_chrome_context open_in_chrome_context(uri, 'openDialog', traverser)
def on_open(wrapper, arguments, traverser): if not arguments: return uri = traverser._traverse_node(arguments[0]) open_in_chrome_context(uri, "nsIWindowWatcher.openWindow", traverser)
def on_open(wrapper, arguments, traverser): if not arguments: return uri = traverser._traverse_node(arguments[0]) open_in_chrome_context(uri, "nsIWindowWatcher.openWindow", traverser)