# HG changeset patch # User Atul Varma # Date 1219365522 25200 # Node ID f4b6208eadd568e121724adb416254e08e7c46c1 # Parent 2f424bef178f090839d495789d3a1f7bbe74bc45 Increased delay to select URL bar text. diff -r 2f424bef178f -r f4b6208eadd5 ambnews/content/ambnews.js --- a/ambnews/content/ambnews.js Thu Aug 21 17:29:51 2008 -0700 +++ b/ambnews/content/ambnews.js Thu Aug 21 17:38:42 2008 -0700 @@ -97,9 +97,11 @@ 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); + // TODO: The delay here only works most of the time; + // its effectiveness is a race condition and we should + // figure out what even to listen for to actually select + // the URL bar text consistently + window.setTimeout(function() { gURLBar.select(); }, 50); } } };