mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Give the View Selection Source window a proper name, b=236465, r=mconnor, a=asa
This commit is contained in:
parent
468c444bc1
commit
9399f742e7
@ -235,6 +235,9 @@ function getPath(ancestor, node)
|
||||
// on the inflated view-source DOM
|
||||
function drawSelection()
|
||||
{
|
||||
getBrowser().contentDocument.title =
|
||||
getViewSourceBundle().getString("viewSelectionSourceTitle");
|
||||
|
||||
// find the special selection markers that we added earlier, and
|
||||
// draw the selection between the two...
|
||||
var findService = null;
|
||||
@ -343,18 +346,19 @@ function viewPartialSourceForFragment(node, context)
|
||||
if (!topNode)
|
||||
return;
|
||||
|
||||
// serialize (note: the main window overrides the title set here)
|
||||
// serialize
|
||||
var title = getViewSourceBundle().getString("viewMathMLSourceTitle");
|
||||
var wrapClass = gWrapLongLines ? ' class="wrap"' : '';
|
||||
var source =
|
||||
'<html>'
|
||||
+ '<head><title>Mozilla</title>'
|
||||
+ '<head><title>' + title + '</title>'
|
||||
+ '<link rel="stylesheet" type="text/css" href="' + gViewSourceCSS + '">'
|
||||
+ '<style type="text/css">'
|
||||
+ '#target { border: dashed 1px; background-color: lightyellow; }'
|
||||
+ '</style>'
|
||||
+ '</head>'
|
||||
+ '<body id="viewsource"' + wrapClass
|
||||
+ ' onload="document.getElementById(\'target\').scrollIntoView(true)">'
|
||||
+ ' onload="document.title=\''+title+'\';document.getElementById(\'target\').scrollIntoView(true)">'
|
||||
+ '<pre>'
|
||||
+ getOuterMarkup(topNode, 0)
|
||||
+ '</pre></body></html>'
|
||||
|
@ -61,7 +61,7 @@
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
onload="onLoadViewPartialSource();"
|
||||
onunload="onUnloadViewPartialSource();"
|
||||
contenttitlesetting="false"
|
||||
contenttitlesetting="true"
|
||||
title="&mainWindow.title;"
|
||||
titlemodifier="&mainWindow.titlemodifier;"
|
||||
titlepreface=""
|
||||
@ -79,6 +79,7 @@
|
||||
<script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
|
||||
|
||||
<stringbundle id="viewSourceBundle" src="chrome://global/locale/viewSource.properties"/>
|
||||
<stringbundle id="bundle_findBar" src="chrome://global/locale/findbar.properties"/>
|
||||
|
||||
<command id="cmd_savePage" oncommand="ViewSourceSavePage();"/>
|
||||
|
@ -5,3 +5,5 @@ invalidInputText = The line number entered is invalid.
|
||||
outOfRangeTitle = Line not found
|
||||
outOfRangeText = The specified line was not found.
|
||||
statusBarLineCol = Line %1$S, Col %2$S
|
||||
viewSelectionSourceTitle = DOM Source of Selection
|
||||
viewMathMLSourceTitle = DOM Source of MathML
|
||||
|
Loading…
Reference in New Issue
Block a user