Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
 def on_open(wrapper, arguments, traverser):
     if not arguments:
         return
     uri = traverser._traverse_node(arguments[0])
     open_in_chrome_context(uri, "nsIWindowWatcher.openWindow", traverser)
Пример #4
0
 def on_open(wrapper, arguments, traverser):
     if not arguments:
         return
     uri = traverser._traverse_node(arguments[0])
     open_in_chrome_context(uri, "nsIWindowWatcher.openWindow", traverser)