diff --git a/core/field_image.js b/core/field_image.js index 71d8052f9..1af5d9ea1 100644 --- a/core/field_image.js +++ b/core/field_image.js @@ -84,17 +84,6 @@ Blockly.FieldImage.prototype.init = function() { {'height': this.height_ + 'px', 'width': this.width_ + 'px'}, this.fieldGroup_); this.setValue(this.src_); - if (goog.userAgent.GECKO) { - /** - * Due to a Firefox bug which eats mouse events on image elements, - * a transparent rectangle needs to be placed on top of the image. - * @type {SVGElement} - */ - this.rectElement_ = Blockly.createSvgElement('rect', - {'height': this.height_ + 'px', - 'width': this.width_ + 'px', - 'fill-opacity': 0}, this.fieldGroup_); - } this.sourceBlock_.getSvgRoot().appendChild(this.fieldGroup_); // Configure the field to be transparent with respect to tooltips.