Bug 1215856 - "":" should not be selected or copied in Title field". r=dtownsend

This commit is contained in:
Deepjyoti Mondal 2016-09-20 09:30:00 +02:00
parent ed70f39ba2
commit 03da3ee9bf
4 changed files with 7 additions and 3 deletions

View File

@ -529,7 +529,7 @@ function openCacheEntry(key, cb)
function makeGeneralTab(metaViewRows, docInfo)
{
var title = (docInfo.title) ? gBundle.getFormattedString("pageTitle", [docInfo.title]) : gBundle.getString("noPageTitle");
var title = (docInfo.title) ? docInfo.title : gBundle.getString("noPageTitle");
document.getElementById("titletext").value = title;
var url = docInfo.location;

View File

@ -88,7 +88,6 @@
<deck id="mainDeck" flex="1">
<!-- General page information -->
<vbox id="generalPanel">
<textbox class="header" readonly="true" id="titletext"/>
<grid id="generalGrid">
<columns>
<column/>
@ -96,6 +95,11 @@
<column flex="1"/>
</columns>
<rows id="generalRows">
<row id="generalTitle">
<label control="titletext" value="&generalTitle;"/>
<separator/>
<textbox readonly="true" id="titletext"/>
</row>
<row id="generalURLRow">
<label control="urltext" value="&generalURL;"/>
<separator/>

View File

@ -15,6 +15,7 @@
<!ENTITY generalTab "General">
<!ENTITY generalTab.accesskey "G">
<!ENTITY generalTitle "Title:">
<!ENTITY generalURL "Address:">
<!ENTITY generalType "Type:">
<!ENTITY generalMode "Render Mode:">

View File

@ -6,7 +6,6 @@ pageInfo.page.title=Page Info - %S
pageInfo.frame.title=Frame Info - %S
noPageTitle=Untitled Page:
pageTitle=%S:
unknown=Unknown
notset=Not specified
yes=Yes