Skip to content Skip to sidebar Skip to footer

Get Nsidomwindow Of A Tab To Do Text Input

Is it possible to use Text Input Processor on a specific Tab of a Firefox window? Do all the tabs share the same nsIDOMWindow object? If so, then is there any other solution? Rephr

Solution 1:

nsIDOMWindow (+ various related interfaces like the docshell) is the XPCOM representation of regular window objects in the w3c specs. And since window objects can be nested (e.g. via iframes) so can be nsIDOMWindows. When you're accessing browser windows you're generally accessing the outer windows representing the browser chrome, not the content.

In principle you can access a tab's content window directly from its <browser> XUL element, but to be forward-compatible with e10s you should use framescripts instead.

Post a Comment for "Get Nsidomwindow Of A Tab To Do Text Input"