Search completed in 1.82 seconds.
popupset - Archive of obsolete content
this element is optional; the given elements need not appear in a
popupset container.
... examples <
popupset> <menupopup id="clipmenu"> <menuitem label="cut"/> <menuitem label="copy"/> <menuitem label="paste"/> </menupopup> </
popupset> <label value="right click for popup" context="clipmenu"/> attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tool...
onpopupshown - Archive of obsolete content
« xul reference home on
popupshown type: script code this event is sent to a popup after it has been opened, much like the onload event is sent to a window when it is opened.
PopupEvents - Archive of obsolete content
popup events there are several events related to
popups and menus.
...
popupshowing this event is fired on a menupopup, panel or tooltip just before it is made visible.
...
popupshown this event is fired on a menupopup, panel or tooltip once it is visible on screen.
...And 21 more matches
Popup Menus - Archive of obsolete content
creating a popup menu xul has three different types of
popups, described below.
... plain
popups the plain popup is a popup window which appears when the user presses the left mouse button on an element.
... context
popups the context popup is a popup window which appears when the user presses the context menu button, which is usually the right mouse button.
...And 19 more matches
OpenClose - Archive of obsolete content
opening and closing
popups popups and menus may be opened and closed by a script.
...here is a complete example which uses a button to open a menu: <button label="open menu" oncommand="document.getelementbyid('editmenu').open = true;"/> <menu id="editmenu" label="edit"> <menupopup> <menuitem label="cut"/> <menuitem label="copy"/> <menuitem label="paste"/> </menupopup> </menu> this technique may be used for both menu
popups that use the menu tag, the button tag and the toolbarbutton tag.
... for menu
popups attached to other elements using the popup or context attributes, see opening a popup below.
...And 15 more matches
Index - Archive of obsolete content
978 on
popupshowing xul attributes, xul reference no summary!
... 979 on
popupshown xul attributes, xul reference no summary!
...for more information about how to use an overlay to modify a menu, see using menus and
popups in extensions 1172 methods xul methods, xul reference no summary!
...And 9 more matches
Index - Archive of obsolete content
243 on
popupshowing xul attributes, xul reference no summary!
... 244 on
popupshown xul attributes, xul reference no summary!
...for more information about how to use an overlay to modify a menu, see using menus and
popups in extensions 441 methods xul methods, xul reference no summary!
...And 8 more matches
Popup Guide - Archive of obsolete content
popups and menus there are various types of
popups and menus that may be created.
... in this guide, the term 'popup' refers to all types of
popups, whereas the term 'menu' refers to a specific type of popup.
... working with
popups the following additional information is available about manipulating menus and
popups.
...And 7 more matches
panel - Archive of obsolete content
attributes backdrag, close, consumeoutsideclicks, fade, flip, ignorekeys, label, left, level, noautofocus, noautohide, norestorefocus, onpopuphidden, onpopuphiding, on
popupshowing, on
popupshown, position, titlebar, top, type properties accessibletype, label, popupboxobject, popup, state methods hidepopup, moveto, openpopup, openpopupatscreen, sizeto examples the following example shows how a panel may be attached to a label.
...for arrow
popups, however, being able to flip horizontally makes sense.
...if a panel has one or more text fields, this attribute should not be set, otherwise ime or on-screen keyboard
popups will appear incorrectly.
...And 5 more matches
Panels - Archive of obsolete content
for more information about positioning the popup, see positioning
popups.
...for more information about this attribute and other possible values that can be used, see positioning
popups.
... opening a panel with script the panel, like all
popups, has an openpopup method which may be used to open the popup using a script.
...And 4 more matches
tooltip - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element is used for the tooltip
popups.
... attributes crop, default, label, noautohide, onpopuphidden, onpopuphiding, on
popupshowing, on
popupshown, page, position properties accessibletype, label, popupboxobject, position, state methods hidepopup, moveto, openpopup, openpopupatscreen, showpopup, sizeto examples <tooltip id="moretip" orient="vertical" style="background-color: #33dd00;"> <label value="click here to see more information"/> <label value="really!" style="color: red;"/> </tooltip> <vbox> <button label="simple" tooltiptext="a simple popup"/> <button label="more" tooltip="moretip"/> </vbox> attributes ...
... on
popupshowing type: script code this event is sent to a popup just before it is opened.
...And 4 more matches
XUL Events - Archive of obsolete content
hen a <menu> or a <menuitem> has been hovered or highlighted.dommenuiteminactivethe dommenuiteminactive event is executed when a <menu> or a <menuitem> in no longer hovered or highlighted.popuphiddenthe popuphidden event is executed when a <menupopup>, <panel> or <tooltip> has become hidden.popuphidingthe popuphiding event is executed when a <menupopup>, <panel> or <tooltip> is about to be hidden.
popupshowingthe
popupshowing event is executed when a <menupopup>, <panel> or <tooltip> is about to become visible.
... the default action of the event can be prevented to prevent the popup to appear.
popupshownthe
popupshown event is executed when a <menupopup>, <panel> or <tooltip> has become visible.radiostatechangethe radiostatechange event is executed when the state of a <radio> element has changed.valuechangethe valuechange event is executed when the value of an element, <progress> for example, has changed.
...this handler is usually used to dynamically set the commands on a menu when the user requests to display it, or you can use
popupshowing event.
...And 3 more matches
menupopup - Archive of obsolete content
attributes ignorekeys, left, onpopuphidden, onpopuphiding, on
popupshowing, on
popupshown, position, top properties accessibletype, anchornode, popupboxobject, position, state, triggernode methods hidepopup, moveto, openpopup, openpopupatscreen, setconsumerollupevent, showpopup, sizeto examples the following example shows how a menupopup may be attached to a menulist.
... on
popupshowing type: script code this event is sent to a popup just before it is opened.
... on
popupshown type: script code this event is sent to a popup after it has been opened, much like the onload event is sent to a window when it is opened.
...And 3 more matches
ContextMenus - Archive of obsolete content
<window id="main-window"> <
popupset> <menupopup id="ins-del-menu"> <menuitem label="insert"/> <menuitem label="delete"/> </menupopup> </
popupset> </window> <grid context="ins-del-menu"> <columns> <column/> <column flex="1"/> </columns> <rows id="rows"> <row align="center"> <label value="name:"/> <textbox/> </row> </rows> </grid> the same context menu can be attached to ...
... hiding and showing menu items based on context when the context menu is opened, a
popupshowing event will fire before the popup is displayed.
... <script> function showhidedeleteitem() { var deleteitem = document.getelementbyid("delete"); var rows = document.getelementbyid("rows"); deleteitem.hidden = (rows.childnodes.length == 0); } </script> <menupopup id="inssel-menu" on
popupshowing="showhidedeleteitem()"> <menuitem label="insert"/> <menuitem id="delete" label="delete"/> </menupopup> in this example, the showhidedeleteitem function is called when the
popupshowing event is fired.
...And 2 more matches
Positioning - Archive of obsolete content
positioning
popups there are several ways in which the location of a popup on screen may be controlled.
... default positioning of
popups a top level menu popup is, by default, placed with the upper edge of the popup flush with the lower edge of the menu or button it is associated with.
... for
popups attached using the popup or context attributes, the default position to appear is with the upper left corner (or upper right corner in right to left locales) at the position where the mouse was clicked.
...And 2 more matches
Extensions - Archive of obsolete content
showing and hiding context menu items to have a menuitem you have added be shown or hidden based on the context, you can use an event handler that listens for the
popupshowing event.
... function init() { var contextmenu = document.getelementbyid("contentareacontextmenu"); if (contextmenu) contextmenu.addeventlistener("
popupshowing", thumbnailsshowhideitems, false); } function thumbnailsshowhideitems(event) { var show = document.getelementbyid("thumbnail-show"); show.hidden = (document.popupnode.localname != "img"); } the init function should be called within the handler for the load event so that the
popupshowing event handler is hooked up before it would be opened by the user.
... determining what element was context clicked for general information about how to determine which element was the target of the context menu, that is, the element that was context clicked, see determining what was context clicked firefox uses its own
popupshowing event listener to adjust the items on the context menu.
Tooltips - Archive of obsolete content
this can be accomplished by using a
popupshowing event listener and adjusting the tooltip as needed.
... the
popupshowing event will be fired on the tooltip element just before the tooltip appears.
... for example: <tooltip id="iconic" on
popupshowing="this.lastchild.value = document.tooltipnode.label;"/> the document.tooltipnode property of the document holds the element that the mouse is hovering over.
XUL Reference - Archive of obsolete content
columns commandset command conditions content datepicker deck description dialog dialogheader dropmarker editor grid grippy groupbox hbox iframe image key keyset label listbox listcell listcol listcols listhead listheader listitem member menu menubar menuitem menulist menupopup menuseparator notification notificationbox observes overlay page panel param
popupset preference preferences prefpane prefwindow progressmeter query queryset radio radiogroup resizer richlistbox richlistitem row rows rule scale script scrollbar scrollbox scrollcorner separator spacer spinbuttons splitter stack statusbar statusbarpanel stringbundle stringbundleset tab tabbrowser (firefox-only starting with firefox 3/gecko 1.9) tabbox tabpanel tab...
...argrippy toolbaritem toolbarpalette toolbarseparator toolbarset toolbarspacer toolbarspring toolbox tooltip tree treecell treechildren treecol treecols treeitem treerow treeseparator triple vbox where window wizard wizardpage categorical list of all xul elements « xul reference « windows window wizard wizardpage titlebar window structure --- menus and
popups --- toolbars toolbar toolbarbutton toolbargrippy toolbaritem toolbarpallete toolbarseperator toolbarspring tabs and grouping tab tabbox tabpanel tabpanels tabs controls --- text and images label caption image lists --- trees --- layout --- templates --- scripting --- helper elements other xul lists dialog ov...
...erlay page window wizard wizardpage preference preferences prefpane prefwindow browser tabbrowser editor iframe titlebar resizer statusbar statusbarpanel dialogheader notification notificationbox menubar menu menuitem menuseparator menupopup panel tooltip
popupset toolbar toolbarbutton toolbargrippy toolbaritem toolbarpalette toolbarseparator toolbarset toolbarspacer toolbarspring toolbox tabbox tabs tab tabpanels tabpanel groupbox caption separator spacer button checkbox colorpicker datepicker menulist progressmeter radio radiogroup scale splitter textbox textbox (firefox autocomplete) textbox (mozilla autocomplete) timepicker description label image listbox listitem listcell listcol listcols listhead listheader richlistbox ...
Popup Window Controls - Archive of obsolete content
learn how to detect popup controls, how to ask your readers to enable
popups for your site and how to get the benefits of popup windows without using popup windows.
... detecting suppressed
popups windows if a user has popup controls enabled for your site, any attempt to call window.open in global script, in an onload handler or in settimeout() or setinterval() will return null rather than a reference to the opened window.
...you can also provide a hyperlink which can be used to open a popup window even in the event that the user has suppressed unsolicited
popups on your site.
Browser Toolbox - Firefox Developer Tools
this enables you to inspect documents in individual chrome windows and
popups, as well as in content tabs.
... for example, here's what the frame selection popup lists when there are two browser windows open, one with one content tab, and one with two: debugging
popups it's hard to debug
popups, because the browser hides them as soon as you click outside them.
...you can use the inspector's node picker to select that panel, and examine and modify its content: you can use the same technique to debug
popups created by add-ons.
Document.popupNode - Web APIs
typically, this property will be checked during a
popupshowing event handler for a context menu to initialize the menu based on the context.
... this property is only set for
popups attached via the popup or context attributes.
... for other types of
popups, the value is not changed.
Event reference
svg events svgabort svgerror svgload svgresize svgscroll svgunload svgzoom database events abort blocked complete error success upgradeneeded versionchange script events afterscriptexecute beforescriptexecute menu events dommenuitemactive dommenuiteminactive window events close popup events popuphidden popuphiding
popupshowing
popupshown tab events visibilitychange battery events chargingchange chargingtimechange dischargingtimechange levelchange call events alerting busy callschanged cfstatechange connecting dialing disconnected disconnecting error held, holding incoming resuming statechange voicechange sensor events compassneedscalibration devicemotion deviceorientation orientationchange smartcard e...
...
popupshowing popupevent xul a menupopup, panel, or tooltip is about to become visible.
...
popupshown popupevent xul a menupopup, panel, or tooltip has become visible.
CSP: sandbox - HTTP
it applies restrictions to a page's actions including preventing
popups, preventing the execution of plugins and scripts, and enforcing a same-origin policy.
... allow-
popups allows
popups (like from window.open, target="_blank", showmodaldialog).
... allow-
popups-to-escape-sandbox allows a sandboxed document to open new windows without forcing the sandboxing flags upon them.
Cross-Origin-Opener-Policy - HTTP
header type response header forbidden header name no syntax cross-origin-opener-policy: unsafe-none | same-origin-allow-
popups | same-origin directives unsafe-none this is the default value.
... allows the document to be added to its opener's browsing context group unless the opener itself has a coop of same-origin or same-origin-allow-
popups.
... same-origin-allow-
popups retains references to newly opened windows or tabs which either don't set coop or which opt out of isolation by setting a coop of unsafe-none.
HTML in XUL for rich tooltips - Archive of obsolete content
.w3.org/1999/xhtml"> <script type="application/x-javascript" src="overlay.js"/> <popup id="contentareacontextmenu"> <menuitem id="htmltip1" label="foo1" onmouseover="htmltip.onmousetooltip(event)" tooltip="myhtmltip" /> <menuitem id="htmltip2" label="foo2" onmouseover="htmltip.onmousetooltip(event)" tooltip="myhtmltip" /> </popup> <
popupset id="main
popupset"> <tooltip id="myhtmltip"> <html:div id="myhtmltipdiv" type="content"/> </tooltip> </
popupset> </overlay> insert your version of the following into the javascript overlay.
... <?xml version="1.0" encoding="utf-8"?> <overlay id="htmltip-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"> <script type="application/x-javascript" src="overlay.js"/> <popup id="contentareacontextmenu"> <menuitem id="htmltip3" label="foo3" tooltip="mytip3html" /> </popup> <
popupset id="main
popupset"> <tooltip id="mytip3html"> <html:div type="content"> <html:b>bold foo</html:b> </html:div> </tooltip> </
popupset> </overlay> ...
Adding preferences to an extension - Archive of obsolete content
all we need to do is add a
popupset describing the menu to the statusbar, as follows: <
popupset> <menupopup id="stockmenu"> <menuitem label="refresh now" default="true" oncommand="stockwatcher.refreshinformation()"/> <menuseparator/> <menuitem label="apple (aapl)" oncommand="stockwatcher.watchstock('aapl')"/> <menuitem label="google (goog)" oncommand="stockwatcher.watchstock('goog')"/> ...
...(yhoo)" oncommand="stockwatcher.watchstock('yhoo')"/> </menupopup> </
popupset> each item in the menu has a label property, which specifies the text displayed in the menu, as well as an oncommand property, which indicates the javascript code to execute when the user selects that item.
openPopup - Archive of obsolete content
unanchored
popups may be created by supplying null as the anchor node.
... iscontextmenu the iscontextmenu argument should be true for context menus and false for all other types of
popups.
MenuItems - Archive of obsolete content
you may wish to change the disabled state in a
popupshowing event handler.
... for more information about the
popupshowing event, see the
popupshowing event.
MenuModification - Archive of obsolete content
<script> function addsubmenu() { var popup = document.getelementbyid("file-popup"); var newmenu = document.createelement("menu"); popup.appendchild(newmenu); newmenu.label = "new"; newmenu.appenditem("document", "doc"); newmenu.appenditem("image", "image"); } </script> <menu label="file" on
popupshowing="addsubmenu()"> <menupopup id="file-popup"/> </menu>.
...also, need replace newmenu.label= "new" by newmenu.setattribute("label", "new"); (all when creating from bootstrap.js in a bootstrapped addon) the addsubmenu function is called during the
popupshowing event, which will be fired when an attempt to open the menu is made.
More Event Handlers - Archive of obsolete content
for example, the '
popupshowing' event is sent to a popup just before it is displayed.
...example 3 : source view <button label="types" type="menu"> <menupopup on
popupshowing="event.preventdefault();"> <menuitem label="glass"/> <menuitem label="plastic"/> </menupopup> </button> alternatively, for attribute event listeners, you can just return false from the code.
Gecko info for Windows accessibility vendors
event_menu
popupstart and event_menupopupend are fired when xul menus are opened or closed.
... role_alert xul: <browsermessage> dhtml: role="wairole:alert" fires event_alert role_window supported automatically by ms windows role_client xul: <browser> html: <frame> or <iframe> role_menupopup dhtml: role="wairole:menu" fires event_menu
popupstart, event_menupopupend role_menuitem xul: menuitem dhtml: role="wairole:menuitem" sets state_checked for radio or checkbox menuitem types accelerator key comes in accname after a \t (tab) character.
about:debugging (before Firefox 68) - Firefox Developer Tools
before firefox 48 if you change files that are loaded on demand, like content scripts or
popups, then changes you make are picked up automatically, and you'll see them the next time the content script is loaded or the popup is shown.
... firefox 48 onwards from firefox 48 onwards: as before: if you change files that are loaded on demand, like content scripts or
popups, then changes you make are picked up automatically, and you'll see them the next time the content script is loaded or the popup is shown.
Clients.openWindow() - Web APIs
if the calling script doesn't have permission to show
popups, openwindow() will throw an invalidaccesserror.
... in firefox, the method is allowed to show
popups only when called as the result of a notification click event.
Index - Web APIs
if the calling script doesn't have permission to show
popups, openwindow() will throw an invalidaccesserror.
...typically, this property will be checked during a
popupshowing event handler for a context menu to initialize the menu based on the context.
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
listing 16: revisions to overlay.xul <menupopup on
popupshowing="gsessionstore.createmenu(event);" oncommand="gsessionstore.restore(event);"> <menuitem label="save session" oncommand="gsessionstore.save(event);" /> <menuseparator /> <!-- dynamically generated menu items go here --> <menuseparator /> <menuitem label="clear sessions" oncommand="gsessionstore.clear(event);" /> </menupopup> implementing methods now we’re going to actual...
Appendix E: DOM Building and Insertion (HTML & XUL) - Archive of obsolete content
p.appendchild(newitem); }; var jsontemplatebtn = ["xul:toolbarbutton", { id: "mytestbutton", class: "toolbarbutton-1", type: "menu", label: "test button label", tooltiptext: "test button tooltip", removable: true, key: "mytestbutton123" }, [ "menupopup", { on
popupshowing: function(event) { addentrytopopup(this, document, window); } }, null ] ]; var capturednodes = {}; var toolbox = doc.getelementbyid("navigator-toolbox"); var palette = toolbox.palette; var domfragment = jsontodom(jsontemplatebtn, document, capturednodes); palette.appendchild(domfragment); alert("capturednodes contains any created nodes that have optiona...
Creating a Firefox sidebar extension - Archive of obsolete content
me://browser/skin/browser.css" type="text/css" ?> <!doctype page system "chrome://emptysidebar/locale/emptysidebar.dtd"> <page id="sbemptysidebar" title="&emptysidebar.title;" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" > <vbox flex="1"> <label id="atest" value="&emptysidebar.title;" /> </vbox> </page> new extensions can be registered in the menus or
popups, firefox uses overlays for extending menus.
Attribute (XUL) - Archive of obsolete content
omatch norestorefocus object observes onbeforeaccept onbookmarkgroup onchange onclick onclosetab oncommand oncommandupdate ondialogaccept ondialogcancel ondialogclosure ondialogextra1 ondialogextra2 ondialoghelp onerror onerrorcommand onextra1 onextra2 oninput onload onnewtab onpageadvanced onpagehide onpagerewound onpageshow onpaneload onpopuphidden onpopuphiding on
popupshowing on
popupshown onsearchcomplete onselect ontextcommand ontextentered ontextrevert ontextreverted onunload onwizardback onwizardcancel onwizardfinish onwizardnext open ordinal orient pack pageid pageincrement pagestep parent parsetype persist persistence phase pickertooltiptext placeholder popup position predicate preference preference-editable primary priorit...
Menus - Archive of obsolete content
for more information about how to use an overlay to modify a menu, see using menus and
popups in extensions the following tables list the ids of menus in firefox that are commonly overlaid upon.
Localization - Archive of obsolete content
in/" type="text/css"?> <?xml-stylesheet href="findfile.css" type="text/css"?> <!doctype window system "chrome://findfile/locale/findfile.dtd"> <window id="findfile-window" title="&findwindow.title;" persist="screenx screeny width height" orient="horizontal" onload="initsearchlist()" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script src="findfile.js"/> <
popupset> <menupopup id="editpopup"> <menuitem label="&cutcmd.label;" accesskey="&cutcmd.accesskey;"/> <menuitem label="©cmd.label;" accesskey="©cmd.accesskey;"/> <menuitem label="&pastecmd.label;" accesskey="&pastecmd.accesskey;" disabled="true"/> </menupopup> </
popupset> <keyset> <key id="cut_cmd" modifiers="accel" key="&cutcmd.commandkey;"/> <key id="copy_cmd" modi...
XPCOM Examples - Archive of obsolete content
.getservice(components.interfaces.nsicookiemanager); var iter = cookiemanager.enumerator; while (iter.hasmoreelements()){ var cookie = iter.getnext(); if (cookie instanceof components.interfaces.nsicookie){ if (cookie.host == "www.mozillazine.org") menu.appenditem(cookie.name,cookie.value); } } } </script> <hbox> <menulist id="cookiemenu" on
popupshowing="getcookies();"/> </hbox> the getcookies() function will be called whenever the menu is opened, as indicated by the on
popupshowing attribute on the menulist.
Accessibility/XUL Accessibility Reference - Archive of obsolete content
</menu> </menubar> menulist <label value="<!--label text-->" control="comboid" /> <menulist id="comboid"> <menupopup> <menuitem label="<!--option1-->" /> <menuitem label="<!--option2-->" selected="true" /> <menuitem label="<!--option3-->" /> </menupopup> </menulist> menupopup see menulist and menubar popup see
popupset
popupset be careful regarding keyboard access of
popups.
elements - Archive of obsolete content
commandset command conditions content d deck description dialog dialogheader e editor grid grippy groupbox h hbox i iframe image k key keyset l label listbox listcell listcol listcols listhead listheader listitem m member menu menubar menuitem menulist menupopup menuseparator o observes overlay p page popup
popupset preference preferences prefpane prefwindow progressmeter r radio radiogroup resizer richlistbox richlistitem resizer row rows rule s script scrollbar scrollbox scrollcorner separator spacer splitter stack statusbar statusbarpanel stringbundle stringbundleset t tab tabbrowser tabbox tabpanel tabpanels tabs template textnod...
Browser-side plug-in API - Archive of obsolete content
npn_destroystream npn_forceredraw npn_getauthenticationinfo npn_geturl npn_geturlnotify npn_getvalue npn_getvalueforurl npn_invalidaterect npn_invalidateregion npn_memalloc npn_memflush npn_memfree npn_newstream npn_pluginthreadasynccall npn_pop
popupsenabledstate npn_posturl npn_posturlnotify npn_push
popupsenabledstate npn_reloadplugins npn_requestread npn_setvalue npn_setvalueforurl npn_status npn_useragent npn_version npn_write ...
Scratchpad - Archive of obsolete content
code completion scratchpad integrates the tern code analysis engine, and uses that to provide autocomplete suggestions and
popups containing information on the current symbol.
Mozilla accessibility architecture
domnodeinserted w3c dom mutation event event_create (atk) event_reorder (msaa) domsubtreemodified w3c dom mutation event event_reorder domnoderemoved w3c dom mutation event event_destroy (atk) event_reorder (msaa) checkboxstatechange, radiostatechange mozilla dom event_state_change
popupshowing mozilla dom event_menustart popuphiding mozilla dom event_menuend nsdocaccessible::scrollpositiondidchange(), then nsdocaccessible::scrolltimercallback() nsiscrollpositonlistener and nsitimer callbacks event_scrollingend (quick timer is used to determine when scrolling pauses or stops, to avoid extra events being fired) ...
Embedding API for Accessibility
setboolpref("browser.accept.applets", acceptapplets); no scripts setboolpref("browser.accept.scripts", acceptscripts); no popup windows // turn window.open off for particular sites: user_pref("capability.policy.
popupsites.sites", "http://www.annoyingsite1.com http://www.
popupsite2.com"); user_pref("capability.policy.
popupsites.windowinternal.open","noaccess"); // or turn it off everywhere: user_pref("capability.policy.default.windowinternal.open","noaccess"); // override...
Mozilla’s UAAG evaluation report
here are all the "hidden prefs" lines that can be added to the user's prefs.js file, for controlling popup behavior: turn window.open off for particular sites: user_pref("capability.policy.
popupsites.sites", "http://www.annoyingsite1.com http://www.
popupsite2.com"); user_pref("capability.policy.
popupsites.windowinternal.open", "noaccess"); or turn it off everywhere: user_pref("capability.policy.default.windowinternal.open", "noaccess"); override popping up new windows on target=anything: user_pref("browser.target_new_blocked", true); override popup windows...
Displaying Places information using views
in firefox 4 and later requires gecko 2.0(firefox 4 / thunderbird 3.3 / seamonkey 2.1) you can add places information to a popup like this: <menu id="bookmarksmenu"> <menupopup placespopup="true"> on
popupshowing="if (!document.getelementbyid('bookmarksmenu')._placesview) new placesmenu(event, 'place:folder=bookmarks_menu');" </menupopup> </menu> the menu view is implemented in browser/components/places/content/menu.xml.
nsIAccessibleEvent
event_create 0x8000 event_destroy 0x8001 event_descriptionchange 0x800d event_parentchange 0x800f event_helpchange 0x8010 event_defactionchange 0x8011 event_acceleratorchange 0x8012 event_menustart 0x0004 event_menuend 0x0005 event_menu
popupstart 0x0006 event_menupopupend 0x0007 event_capturestart 0x0008 event_captureend 0x0009 event_movesizestart 0x000a event_movesizeend 0x000b event_contexthelpstart 0x000c event_contexthelpend 0x000d event_dragdropstart 0x000e event_dragdropend 0x000f event_dialogstart 0x0010 event_dialogend 0x0011 event_scrollingstart 0x0012 ...
nsIMacDockSupport
em'); macmenuitem.setattribute('label', 'show most recent window'); macmenuitem.setattribute('id', 'mymacmenuitem'); macmenuitem.addeventlistener('command', function(){ var docksupport = cc['@mozilla.org/widget/macdocksupport;1'].getservice(ci.nsimacdocksupport); docksupport.activateapplication(true); services.wm.getmostrecentwindow(null).focus() }) macmenu.appendchild(macmenuitem); var main
popupset = win.document.getelementbyid('main
popupset'); main
popupset.appendchild(macmenu); let dockmenuelement = macmenu; //document.getelementbyid("menu_mac_dockmenu");66 let nativemenu = cc["@mozilla.org/widget/standalonenativemenu;1"].createinstance(ci.nsistandalonenativemenu); console.log('dockmenuelement:', dockmenuelement); nativemenu.init(dockmenuelement); docksupport.dockmenu = nativemenu; th...
nsIWebNavigation
load_flags_allow_
popups 32768 this flag specifies that the load should not be subject to popup blocking checks.
Add to iPhoto
if (document.getelementbyid("contentareacontextmenu")) { document.getelementbyid("contentareacontextmenu").addeventlistener("
popupshowing", iphoto.onpopup, false); } responding when the context menu is clicked when the user right-clicks an image, our handler gets called: onpopup: function() { var node = iphoto.getcurrentnode(); var item = document.getelementbyid("add-to-iphoto_menuitem"); if (item) { item.hidden = (node == null); // hide it if we're not on an image } } this code finds the image node the us...
Constants - Plugins
npvers_has_
popups_enabled_state 16 the npn_push
popupsenabledstate() and npn_pop
popupsenabledstate() functions are supported.
DOM Inspector internals - Firefox Developer Tools
the dynamic menus include the inspect menus' ("inspect content document" and "inspect chrome document")
popups from the file menu, and the "document viewer" and "object viewer" menus from the view menu.
about:debugging - Firefox Developer Tools
if you change files that are loaded on demand, like content scripts or
popups, then changes you make are picked up automatically, and you'll see them the next time the content script is loaded or the popup is shown.
Window.closed - Web APIs
before attempting to change the url, it checks that the current window has an opener using the window.opener property and that the opener isn't closed: // check that an opener exists and is not closed if (window.opener && !window.opener.closed) { window.opener.location.href = 'http://www.mozilla.org'; } note that
popups can only access the window that opened them.
Window.open() - Web APIs
references "if your link spawns a new window, or causes another windows to 'pop up' on your display, or move the focus of the system to a new frame or window, then the nice thing to do is to tell the user that something like that will happen." world wide web consortium accessibility initiative regarding
popups "use link titles to provide users with a preview of where each link will take them, before they have clicked on it." ten good deeds in web design, jakob nielsen, october 1999 using link titles to help users predict where they are going, jakob nielsen, january 1998 example "new window" icons & cursors ...
Using the link role - Accessibility
opening a page using the open() method counts as being a popup, and certain browsers may issue a warning when you try to activate it, or make you explicitly agree to allowing
popups form the domain it exists on.
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
there's a very good chance they won't ask for more than the events marked [important]: event_system_sound event_system_alert [can be important, to have auto-speaking for newly created role_alerts] event_system_foreground event_system_menustart [important] event_system_menuend [important] event_system_menu
popupstart [important] event_system_menupopupend [important] event_system_capturestart event_system_captureend event_system_movesizestart event_system_movesizeend event_system_contexthelpstart event_system_contexthelpend event_system_dragdropstart event_system_dragdropend event_system_dialogstart event_system_dialogend event_system_scrollingstart event...
::after (:after) - CSS: Cascading Style Sheets
html <p>here we have some <span tabindex="0" data-descr="collection of words and punctuation">text</span> with a few <span tabindex="0" data-descr="small
popups that appear when hovering">tooltips</span>.
Index - HTTP
it applies restrictions to a page's actions including preventing
popups, preventing the execution of plugins and scripts, and enforcing a same-origin policy.