Bug 650684 - "browser_awesomescreen.js times out after "urlbar text should be selected on a double click"" [r=mark.finkle]

This commit is contained in:
Vivien Nicolas 2011-04-19 08:14:00 -04:00
Родитель 4cb99328b1
Коммит bc3ae4dcd3
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -199,12 +199,12 @@ gTests.push({
run: function() {
BrowserUI.closeAutoComplete(true);
this._currentTab = BrowserUI.newTab(testURL_01);
this.currentTab = BrowserUI.newTab(testURL_01);
// Need to wait until the page is loaded
messageManager.addMessageListener("pageshow",
function(aMessage) {
if (gCurrentTest._currentTab.browser.currentURI.spec != "about:blank") {
if (gCurrentTest.currentTab.browser.currentURI.spec != "about:blank") {
messageManager.removeMessageListener(aMessage.name, arguments.callee);
setTimeout(gCurrentTest.onPageReady, 0);
}
@ -281,9 +281,8 @@ gTests.push({
edit.clickSelectsAll = oldClickSelectsAll;
BrowserUI.closeTab(this._currentTab);
BrowserUI.activePanel = null;
Browser.closeTab(gCurrentTest.currentTab, { forceClose: true });
// Ensure the tab is well closed before doing the rest of the code, otherwise
// this cause some bugs with the composition events