John J. Barton wrote:
I'm trying to translate into something I can understand: the canvas has to be in an nsIDOMWindow other than the content window
That's the "canvas has to be chrome" constraint, yes.
and the only way to have an nsIDOMWindow higher in Z order
z-ordering is not done on nsIDOMWindows per se. It's done on frames, views, and widgets. Sadly, these last trump the others. Which means that the only way to get what you want to work is to make sure that the canvas has a widget of its own, and that this widget ends up above the root widget of the content in z-order. Note that the obvious chrome widget (the root one) has to be below the content ones in z-order, so that the content will show at all. Hence the need for a separate widget for the canvas.
You might want to look into the existing "need a way of showing some chrome UI over content" bug... I believe the short of it is that it can sort of be done if the chrome stuff is opaque. If it's not, it just won't work correctly no matter what you do with it, as things stand.
-Boris _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

