# HG changeset patch # User Atul Varma # Date 1219364991 25200 # Node ID 2f424bef178f090839d495789d3a1f7bbe74bc45 # Parent 88b12596346df3ec64f8ed0c6672957c0f3313f0 The 'about:news' text in the url bar is selected whenever a new tab is opened, so that just creating a new tab and typing stuff always does what it used to do (habituation isn't broken). diff -r 88b12596346d -r 2f424bef178f ambnews/content/ambnews.js --- a/ambnews/content/ambnews.js Thu Aug 21 17:00:35 2008 -0700 +++ b/ambnews/content/ambnews.js Thu Aug 21 17:29:51 2008 -0700 @@ -97,6 +97,9 @@ if (aEvent.target.baseURI == "about:blank") { var doc = aEvent.target; doc.defaultView.location = "about:news"; + // TODO: The 10ms delay here *seems* to work all the time, + // but its effectiveness could actually be a race condition. + window.setTimeout(function() { gURLBar.select(); }, 10); } } };