Skip to content

Commit

Permalink
Bug 1507067 - [marionette] Add logging of received DOM events to Cont…
Browse files Browse the repository at this point in the history
…entEventObserverService. r=ato

Differential Revision: https://phabricator.services.mozilla.com/D16095
  • Loading branch information
whimboo committed Jan 10, 2019
1 parent 454252b commit 0ce4668
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testing/marionette/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

"use strict";

ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");

const {Log} = ChromeUtils.import("chrome://marionette/content/log.js", {});

XPCOMUtils.defineLazyGetter(this, "logger", Log.get);

this.EXPORTED_SYMBOLS = [
"ContentEventObserverService",
"WebElementEventTarget",
Expand Down Expand Up @@ -193,6 +199,7 @@ class ContentEventObserverService {
}

handleEvent({type, target}) {
logger.trace(`Received DOM event ${type}`);
this.sendAsyncMessage("Marionette:DOM:OnEvent", {type}, {target});
}
}
Expand Down

0 comments on commit 0ce4668

Please sign in to comment.