Skip to content

[Bug] Duplicate in Firefox #6

@helfi92

Description

@helfi92

We are using this library to display a terminal. It works properly on Chrome but noticed that anything on the page gets duplicated in Firefox:

Terminal on Chrome

screen shot 2018-12-27 at 12 31 44 pm

Terminal on FF

screen shot 2018-12-27 at 12 32 21 pm

I believe the culprit lies in hterm.ScrollPort.prototype.decorate:

hterm.ScrollPort.prototype.decorate = function(div) {
  // ...

  if ('mozInnerScreenX' in window)  // detect a FF only property
    this.iframe_.src = '#';

 // ...

Having the iframe src be # will duplicate whatever is on the page, including all the headers defined on the page consuming this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions