mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
bug 267789 provide DOMi inspector for Sunbird r=timeless
This commit is contained in:
parent
2a00f3c4d2
commit
4881197852
@ -67,6 +67,7 @@ DIST_FILES = install.rdf
|
||||
XULAPP_DEFINES = \
|
||||
-DFIREFOX_VERSION=$(FIREFOX_VERSION) \
|
||||
-DTHUNDERBIRD_VERSION=$(THUNDERBIRD_VERSION) \
|
||||
-DSUNBIRD_VERSION=$(SUNBIRD_VERSION) \
|
||||
-DSEAMONKEY_VERSION=$(SEAMONKEY_VERSION) \
|
||||
-DEXTENSION_VERSION=$(MOZILLA_VERSION) \
|
||||
$(NULL)
|
||||
|
@ -26,6 +26,15 @@
|
||||
</Description>
|
||||
</em:targetApplication>
|
||||
|
||||
<em:targetApplication>
|
||||
<!-- Sunbird -->
|
||||
<Description>
|
||||
<em:id>{718e30fb-e89b-41dd-9da7-e25a45638b28}</em:id>
|
||||
<em:minVersion>@SUNBIRD_VERSION@</em:minVersion>
|
||||
<em:maxVersion>@SUNBIRD_VERSION@</em:maxVersion>
|
||||
</Description>
|
||||
</em:targetApplication>
|
||||
|
||||
<em:targetApplication>
|
||||
<!-- Suite -->
|
||||
<Description>
|
||||
|
@ -4,6 +4,7 @@ inspector.jar:
|
||||
% overlay chrome://communicator/content/pref/preftree.xul chrome://inspector/content/prefs/prefsOverlay.xul
|
||||
% overlay chrome://browser/content/browser.xul chrome://inspector/content/tasksOverlay-ff.xul
|
||||
% overlay chrome://browser/content/macBrowserOverlay.xul chrome://inspector/content/tasksOverlay-ff.xul
|
||||
% overlay chrome://calendar/content/calendar.xul chrome://inspector/content/tasksOverlay-sb.xul
|
||||
% overlay chrome://messenger/content/mailWindowOverlay.xul chrome://inspector/content/tasksOverlay-tb.xul
|
||||
% overlay chrome://inspector/content/commandOverlay.xul chrome://inspector/content/viewers/dom/commandOverlay.xul
|
||||
% overlay chrome://inspector/content/commandOverlay.xul chrome://inspector/content/viewers/styleRules/commandOverlay.xul
|
||||
@ -29,6 +30,7 @@ inspector.jar:
|
||||
content/inspector/statusbarOverlay.xul (resources/content/statusbarOverlay.xul)
|
||||
content/inspector/tasksOverlay.xul (resources/content/tasksOverlay.xul)
|
||||
content/inspector/tasksOverlay-ff.xul (resources/content/tasksOverlay-ff.xul)
|
||||
content/inspector/tasksOverlay-sb.xul (resources/content/tasksOverlay-sb.xul)
|
||||
content/inspector/tasksOverlay-tb.xul (resources/content/tasksOverlay-tb.xul)
|
||||
content/inspector/editingOverlay.xul (resources/content/editingOverlay.xul)
|
||||
content/inspector/utilWindow.xul (resources/content/utilWindow.xul)
|
||||
|
44
extensions/inspector/resources/content/tasksOverlay-sb.xul
Normal file
44
extensions/inspector/resources/content/tasksOverlay-sb.xul
Normal file
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!DOCTYPE overlay SYSTEM "chrome://inspector/locale/tasksOverlay.dtd" >
|
||||
|
||||
<overlay id="eInspectorTasksOverlay"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<script type="application/x-javascript" src="chrome://inspector/content/hooks.js"/>
|
||||
|
||||
<script type="application/x-javascript">
|
||||
<![CDATA[
|
||||
function inspectorWindowLoad()
|
||||
{
|
||||
setTimeout(initWindowMediator, 0);
|
||||
}
|
||||
|
||||
function initWindowMediator()
|
||||
{
|
||||
// Load the Window DataSource so that browser windows opened subsequent to DOM
|
||||
// Inspector show up in the DOM Inspector's window list.
|
||||
var windowDS = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"]
|
||||
.getService(Components.interfaces.nsIWindowDataSource);
|
||||
}
|
||||
|
||||
window.addEventListener("load", inspectorWindowLoad, false);
|
||||
]]>
|
||||
</script>
|
||||
|
||||
<commandset id="calendar_commands">
|
||||
<command id="Tasks:Inspector" oncommand="inspectDOMDocument();"/>
|
||||
<command id="Tasks:InspectPage" oncommand="inspectDOMDocument(window.document);"/>
|
||||
</commandset>
|
||||
|
||||
<keyset id="tasksKeys">
|
||||
<key id="key_inspectPage" key="&inspectorTaskCmd.commandkey;" modifiers="accel,shift" command="Tasks:InspectPage"/>
|
||||
</keyset>
|
||||
|
||||
<menupopup id="toolsPopup">
|
||||
<menuitem id="menu_inspector" label="&inspectorTaskCmd.label;"
|
||||
insertafter="javascriptConsole" key="key_inspectPage"
|
||||
accesskey="&inspectorTaskCmd.accesskey;" command="Tasks:InspectPage"/>
|
||||
</menupopup>
|
||||
|
||||
</overlay>
|
Loading…
Reference in New Issue
Block a user