4 var htmlContent =
"data:text/html, <iframe src='data:text/html,text text'></iframe>";
5 gBrowser.addEventListener(
"pageshow",
onPageShow,
false);
6 gBrowser.loadURI(htmlContent);
10 gBrowser.removeEventListener(
"pageshow",
onPageShow,
false);
11 var frame = gBrowser.contentWindow.frames[0];
12 var sel = frame.getSelection();
13 var
range = frame.document.createRange();
14 var tn = frame.document.body.childNodes[0];
15 range.setStart(tn , 4);
20 document.popupNode = frame.document.body;
21 var contentAreaContextMenu = document.getElementById(
"contentAreaContextMenu");
22 var contextMenu =
new nsContextMenu(contentAreaContextMenu, gBrowser);
24 ok(document.getElementById(
"frame-sep").hidden,
"'frame-sep' should be hidden if the selection contains only spaces");