wellbye wrote:
hi,i'd like to process the hyperlink click event myself, such as checking the target property and open a new window(not *chrome*,maybe IE) when it's "_blank" and leave it for the origin handler for else. i think there must be some association with the PreShell::SetLinkHandler and nsILinkHander, but i'm not sure when and where to create my own handler and set it to the PreShell? or any other solution?
By default, nsILinkHandler is basically the docshell. You could try setting up your own thing, but it's basically unsupported (e.g. I seem to recall that we have code that assumes that the link handler is a docshell).
For target=_blank you could use a window provider, but you'd still need to hand back a docshell, to handle <form action="post" target="_blank"> correctly.
-Boris _______________________________________________ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding