Hi,
i am developing a firefox extension, On a client side of a web page i add a link and on clicking the link i intend to open a window where it will allow the user to type in text. when i click the link, it opens the window but it won't allow me to write to it.
e.g.
ww.document.write('<div id = "textDiv">') ;
here it gives me an error:
Error: uncaught exception: [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "chrome://googbar/content/googbar.js Line: 272"]
and i open window using the following:
var ww = Components.classes[
"@mozilla.org/embedcomp/window-watcher;1"].getService(Components.interfaces.nsIWindowWatcher);
var wm =Components.classes["@mozilla.org/appshell/window-mediator;1"]
calWindow = ww.openWindow(null,'calendarWindow',null, 'left =500, top = 190, width = 230, height = 220,titlebar = no', null);
The window that is opened is not an empty window, it contains the contents of the parent window. for e.g i open this window from wikipedia, the new window opened contains the wiki page on it. Can anyone help me please?