Skip to content

Commit c5c6d58

Browse files
committed
Firefox: unwrapping event type to fix "CPOWToString incompatible object" error in v.44
1 parent 516fd67 commit c5c6d58

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

javascript/firefox-driver/js/syntheticMouse.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,16 +398,13 @@ SyntheticMouse.EventEmitter.prototype.fireMouseEvent = function(target, type, ar
398398
var modifiers = this._parseModifiers(args);
399399
if (utils.sendMouseEventToWindow) {
400400
// Firefox 4+
401-
utils.sendMouseEventToWindow(type, Math.round(args.clientX), Math.round(args.clientY),
401+
utils.sendMouseEventToWindow(type.type_, Math.round(args.clientX), Math.round(args.clientY),
402402
args.button, args.count, modifiers);
403403
} else {
404404
// Firefox 3
405-
utils.sendMouseEvent(type, Math.round(args.clientX), Math.round(args.clientY),
405+
utils.sendMouseEvent(type.type_, Math.round(args.clientX), Math.round(args.clientY),
406406
args.button, args.count, modifiers);
407407
}
408-
goog.log.info(SyntheticMouse.LOG_,
409-
'Called fireMouseEvent ' + type + ' ' + args.clientX +
410-
', ' + args.clientY + ', ' + target);
411408
return true;
412409
};
413410

0 commit comments

Comments
 (0)