[tor-commits] [tor-browser/tor-browser-45.1.0esr-6.0-1] Bug 18914: Use English-only label in <isindex/> tags

gk at torproject.org gk at torproject.org
Wed May 25 07:23:52 UTC 2016


commit 4166668b7cf72bdb0666e53ecd1abdc41de90c23
Author: Arthur Edelstein <arthuredelstein at gmail.com>
Date:   Mon May 23 18:14:43 2016 -0700

    Bug 18914: Use English-only label in <isindex/> tags
---
 parser/html/nsHtml5TreeOperation.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/parser/html/nsHtml5TreeOperation.cpp b/parser/html/nsHtml5TreeOperation.cpp
index 866e657..02357b5 100644
--- a/parser/html/nsHtml5TreeOperation.cpp
+++ b/parser/html/nsHtml5TreeOperation.cpp
@@ -474,11 +474,16 @@ nsHtml5TreeOperation::SetFormElement(nsIContent* aNode, nsIContent* aParent)
 nsresult
 nsHtml5TreeOperation::AppendIsindexPrompt(nsIContent* parent, nsHtml5DocumentBuilder* aBuilder)
 {
+  /*
   nsXPIDLString prompt;
   nsresult rv =
       nsContentUtils::GetLocalizedString(nsContentUtils::eFORMS_PROPERTIES,
                                          "IsIndexPromptWithSpace", prompt);
+  */
+  nsString prompt(NS_LITERAL_STRING(
+    "This is a searchable index. Enter search keywords:\u0020"));
   uint32_t len = prompt.Length();
+  /*
   if (NS_FAILED(rv)) {
     return rv;
   }
@@ -486,6 +491,7 @@ nsHtml5TreeOperation::AppendIsindexPrompt(nsIContent* parent, nsHtml5DocumentBui
     // Don't bother appending a zero-length text node.
     return NS_OK;
   }
+  */
   return AppendText(prompt.BeginReading(), len, parent, aBuilder);
 }
 



More information about the tor-commits mailing list