<!ENTITY common.browser.find.accesskey "i">
<!ENTITY common.browser.set_url.label "Modify URL">
<!ENTITY common.browser.set_url.accesskey "U">
+<!ENTITY common.browser.view_source.label "View Source">
+<!ENTITY common.browser.view_source.accesskey "V">
<!ENTITY common.textbox.cut "Cut">
<!ENTITY common.textbox.copy "Copy">
if (url) { obj.get_content().location.href = url; }
}
],
+ 'cmd_view_source' : [
+ ['command'],
+ function() {
+ var curr_url = obj.get_content().location.href;
+ //obj.get_content().location.href = 'view-source:' + curr_url; // This works too, but the openDialog below is more feature-rich
+ window.openDialog("chrome://global/content/viewSource.xul", "", "all,dialog=no", curr_url);
+ }
+ ],
'cmd_print' : [
['command'],
function() {
<command id="cmd_broken" />
<command id="cmd_print" label="&common.browser.print.label;" accesskey="&common.browser.print.accesskey;" />
<command id="cmd_debug" />
+ <command id="cmd_view_source" />
<command id="cmd_find" />
<command id="cmd_back" label="&common.browser.backward.label;" accesskey="&common.browser.backward.accesskey;" />
<command id="cmd_reload" label="&common.browser.reload.label;" accesskey="&common.browser.reload.accesskey;" />
<popupset>
<popup id="debug_popup">
+ <menuitem label="&common.browser.view_source.label;" accesskey="&common.browser.view_source.accesskey;" command="cmd_view_source" />
<menuitem label="&common.browser.set_url.label;" accesskey="&common.browser.set_url.accesskey;" command="cmd_debug" />
<menuitem label="&common.browser.find.label;" accesskey="&common.browser.find.accesskey;" command="cmd_find" />
</popup>
<command id="cmd_broken" />
<command id="cmd_print" label="&common.browser.print.label;" accesskey="&common.browser.print.accesskey;" />
<command id="cmd_debug" />
+ <command id="cmd_view_source" />
<command id="cmd_find" />
<command id="cmd_back" label="&common.browser.backward.label;" accesskey="&common.browser.backward.accesskey;" />
<command id="cmd_reload" label="&common.browser.reload.label;" accesskey="&common.browser.reload.accesskey;" />
<popupset>
<popup id="debug_popup">
+ <menuitem label="&common.browser.view_source.label;" accesskey="&common.browser.view_source.accesskey;" command="cmd_view_source" />
<menuitem label="&common.browser.set_url.label;" accesskey="&common.browser.set_url.accesskey;" command="cmd_debug" />
<menuitem label="&common.browser.find.label;" accesskey="&common.browser.find.accesskey;" command="cmd_find" />
</popup>