3 # -*- Mode: Java; tab-width:
4; indent-tabs-mode: nil; c-basic-offset:
4 -*-
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v.
2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/
2.0/.
8 <?xml-stylesheet href=
"chrome://browser/skin/" type=
"text/css"?>
9 <?xul-overlay href=
"chrome://global/content/editMenuOverlay.xul"?>
10 <?xul-overlay href=
"chrome://browser/content/places/placesOverlay.xul"?>
13 <!ENTITY % browserDTD SYSTEM
"chrome://browser/locale/browser.dtd">
15 <!ENTITY % textcontextDTD SYSTEM
"chrome://global/locale/textcontext.dtd">
19 <page id=
"webpanels-window"
20 xmlns:
rdf=
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
21 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
22 onload=
"load()" onunload=
"unload()">
23 <script type=
"application/javascript" src=
"chrome://global/content/contentAreaUtils.js"/>
24 <script type=
"application/javascript" src=
"chrome://browser/content/browser.js"/>
25 <script type=
"application/javascript" src=
"chrome://global/content/inlineSpellCheckUI.js"/>
26 <script type=
"application/javascript" src=
"chrome://browser/content/nsContextMenu.js"/>
27 <script type=
"application/javascript" src=
"chrome://browser/content/web-panels.js"/>
29 <stringbundleset id=
"stringbundleset">
30 <stringbundle id=
"bundle_browser" src=
"chrome://browser/locale/browser.properties"/>
33 <broadcasterset id=
"mainBroadcasterSet">
34 <broadcaster id=
"isFrameImage"/>
37 <commandset id=
"mainCommandset">
38 <command id=
"Browser:Back"
39 oncommand=
"getPanelBrowser().webNavigation.goBack();"
41 <command id=
"Browser:Forward"
42 oncommand=
"getPanelBrowser().webNavigation.goForward();"
44 <command id=
"Browser:Stop" oncommand=
"PanelBrowserStop();"/>
45 <command id=
"Browser:Reload" oncommand=
"PanelBrowserReload();"/>
48 <popupset id=
"mainPopupSet">
49 <tooltip id=
"aHTMLTooltip" page=
"true"/>
50 <menupopup id=
"contentAreaContextMenu" pagemenu=
"start"
51 onpopupshowing=
"if (event.target != this)
53 gContextMenu = new nsContextMenu(this, event.shiftKey);
54 if (gContextMenu.shouldDisplay)
55 document.popupNode = this.triggerNode;
56 return gContextMenu.shouldDisplay;"
57 onpopuphiding=
"if (event.target != this)
59 gContextMenu.hiding();
60 gContextMenu = null;">
61 #include browser-context.inc
65 <commandset id=
"editMenuCommands"/>
66 <browser id=
"web-panels-browser" persist=
"cachedurl" type=
"content" flex=
"1"
67 context=
"contentAreaContextMenu" tooltip=
"aHTMLTooltip"
68 onclick=
"window.parent.contentAreaClick(event, true);"/>