Bug 1219308 Change BrowserSearch from a const to a var because ES7 changed how 'const' works r=IanN a=Callek CLOSED TREE
authorPhilip Chee <philip.chee@gmail.com>
Thu, 05 Nov 2015 04:42:20 +0800
changeset 18545 83a9ccd2a3fda51b7e6fc58af54d0be28533a3cd
parent 18544 00227c828c07538fb11916b8ea84e275fcc99865
child 18546 de5ecd310010d72ef83915640f95dee55c5920fd
push id11358
push userphilip.chee@gmail.com
push dateWed, 04 Nov 2015 20:43:41 +0000
treeherdercomm-central@de5ecd310010 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, Callek
bugs1219308
Bug 1219308 Change BrowserSearch from a const to a var because ES7 changed how 'const' works r=IanN a=Callek CLOSED TREE
suite/browser/navigator.js
--- a/suite/browser/navigator.js
+++ b/suite/browser/navigator.js
@@ -1074,17 +1074,17 @@ function BrowserReloadSkipCache()
 
 function BrowserHome(aEvent)
 {
   var homePage = getHomePage();
   var where = whereToOpenLink(aEvent, false, true);
   openUILinkArrayIn(homePage, where);
 }
 
-const BrowserSearch = {
+var BrowserSearch = {
   handleEvent: function (event) { // "DOMLinkAdded" event
     var link = event.originalTarget;
 
     var isSearch = /(?:^|\s)search(?:\s|$)/i.test(link.rel) && link.title &&
                    /^(https?|ftp):/i.test(link.href) &&
                    /(?:^|\s)application\/opensearchdescription\+xml(?:;?.*)$/i.test(link.type);
 
     if (isSearch) {