From ca42e49a6e464e806c66ceeb51931172fb4909d1 Mon Sep 17 00:00:00 2001 From: Drew Willcoxon Date: Sat, 11 Oct 2014 19:07:52 -0700 Subject: [PATCH] Bug 1073692 - Display each search suggestion row with the correct text direction on about:home/about:newtab. r=ehsan --- browser/base/content/searchSuggestionUI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/base/content/searchSuggestionUI.js b/browser/base/content/searchSuggestionUI.js index 4e563a525346..5bb0766fa4f3 100644 --- a/browser/base/content/searchSuggestionUI.js +++ b/browser/base/content/searchSuggestionUI.js @@ -301,6 +301,7 @@ SearchSuggestionUIController.prototype = { _makeTableRow: function (type, suggestionStr, currentRow, searchWords) { let row = document.createElementNS(HTML_NS, "tr"); + row.dir = "auto"; row.classList.add("searchSuggestionRow"); row.classList.add(type); row.setAttribute("role", "presentation"); @@ -365,7 +366,6 @@ SearchSuggestionUIController.prototype = { this._table = document.createElementNS(HTML_NS, "table"); this._table.id = id; this._table.hidden = true; - this._table.dir = "auto"; this._table.classList.add("searchSuggestionTable"); this._table.setAttribute("role", "listbox"); return this._table;