We have an extension, a 3d plugin, and we embed Mozilla. When upgrading to
FF3 from FF2, some of our code broke. We try to load a xul page into a
browser, but it appears blank, if a web page is showing. Otherwise, the
browser renders correctly, if the 3d plugin is in the background. This was
not a problem for FF2. Below is my code; can someone see an error or better
approach?
var thiingCtrl = document.getElementById("thiingCtrl");
var widthLimit = thiingCtrl.clientWidth;
var browserStack = document.getElementById("browser-stack");
pogoFindDialog = document.createElement("browser");
pogoFindDialog.type = "content";
pogoFindDialog.top = 0;
pogoFindDialog.left = widthLimit - 256;
pogoFindDialog.width = 256;
pogoFindDialog.height = 343;
var browserElement = document.getElementById("browser");
browserStack.insertBefore( pogoFindDialog, browserElement );
thiingCtrl.SetWindowStyle( "MozillaUIWindowClass", pogoFindDialog.left,
pogoFindDialog.top, pogoFindDialog.width,
pogoFindDialog.height, "alwaysOnTop" );
toolbarManager.setTopmostDialog( pogoFindDialog );
// Change the look of the Pogo Find button
var pogoFindButton = document.getElementById( "mb-pogo-find-button" );
pogoFindButton.setAttribute( "opened", "true" );
pogoFindDialog.setAttribute( "src",
"chrome://macrobrowser/content/find/find.xul" );
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding