NO BUG: correct import in marionette about_pages tests r=me DONTBUILD

This commit is contained in:
David Burns 2015-03-11 01:18:10 +00:00
parent 3b5c988499
commit 3a6717e235
2 changed files with 8 additions and 3 deletions

View File

@ -2,7 +2,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from marionette_test import MarionetteTestCase
from marionette import MarionetteTestCase
from marionette_driver.keys import Keys
class TestAboutPages(MarionetteTestCase):

View File

@ -289,8 +289,13 @@ MarionetteServerConnection.prototype = {
}
else {
this.curBrowser.executeWhenReady(() => {
this.messageManager.broadcastAsyncMessage(
"Marionette:" + name + this.curBrowser.curFrameId, values);
if (this.curBrowser.curFrameId) {
this.messageManager.broadcastAsyncMessage(
"Marionette:" + name + this.curBrowser.curFrameId, values);
}
else {
this.sendError("Unfortunately can not send call to listener as it does not exist", 500, null, commandId);
}
});
}
return success;