Skip to content

[Bug] Errors in browser console likely caused by TST (Node.removeChild: Argument 1 is not an object etc.) #3903

@lenaschimmel

Description

@lenaschimmel

Abstract

Since a few days, I encounter error messages in the browser's console that are likely caused by Tree Style Tab. They show up on many different websites that don't have a substantial amount of shared code.

(None of the error messages mention Tree Style Tab explicitly, but some of them contained the snippet window.lastClosedContainer.parentNode is null and a GitHub code search for window.lastClosedContainer.parentNode only has results for Tree Style Tab and Waterfox. I don't use Waterfox though.)

If these errors are not related to your add-on, I apologize for bothering you. Any ideas on what might be the cause would be appreciated then!

Steps to reproduce

  • Open some websites and interact with them for a few minutes
  • Open the browser's console

Expected result

  • There should only be console messages caused by / related to the current website

Actual result

  • The console contains error messages like this:

Image

Transcript of the above image
11:25:12.243 TypeError: Node.removeChild: Argument 1 is not an object.
    removeClosedContents sandbox eval code:980
    destructor sandbox eval code:1037
    destroyClosedContents sandbox eval code:1002
    onMouseMove sandbox eval code:1093
sandbox eval code:1005:23
11:25:12.250 TypeError: Node.removeChild: Argument 1 is not an object.
    removeClosedContents sandbox eval code:980
    destructor sandbox eval code:1037
    destroyClosedContents sandbox eval code:1002
    onMouseMove sandbox eval code:1093
sandbox eval code:1005:23
11:25:12.250 TypeError: Node.removeChild: Argument 1 is not an object.
    removeClosedContents sandbox eval code:980
    destructor sandbox eval code:1037
    destroyClosedContents sandbox eval code:1002
    onMouseMove sandbox eval code:1093
sandbox eval code:1005:23

Image

Transcript of the above image
12:29:00.026 TypeError: can't access property "querySelector", this.panel is null sandbox eval code:911:26
    onBeforeCompleteUpdate sandbox eval code:911
    complete sandbox eval code:386
12:29:20.349 TypeError: can't access property "querySelector", this.panel is null sandbox eval code:911:26

Image

Transcript of the above image
12:29:00.026 TypeError: can't access property "querySelector", this.panel is null sandbox eval code:911:26
    onBeforeCompleteUpdate sandbox eval code:911
    complete sandbox eval code:386
12:29:20.349 TypeError: can't access property "querySelector", this.panel is null sandbox eval code:911:26
    onBeforeCompleteUpdate sandbox eval code:911
    complete sandbox eval code:386
    (Async: FrameRequestCallback)
    onUpdateUI sandbox eval code:892
    updateUI sandbox eval code:482
    onMessage sandbox eval code:223
    InterpretGeneratorResume self-hosted:1312
    AsyncFunctionNext self-hosted:780
    (Async: async)
    onMessage sandbox eval code:226
    apply self-hosted:2610
    result resource://gre/modules/ExtensionCommon.sys.mjs:2817
    raw resource://gre/modules/ExtensionCommon.sys.mjs:2815
    wrapResponse resource://gre/modules/ExtensionChild.sys.mjs:201
    responses resource://gre/modules/ExtensionChild.sys.mjs:170
    map self-hosted:163
    emit resource://gre/modules/ExtensionChild.sys.mjs:170
    recvRuntimeMessage resource://gre/modules/ExtensionChild.sys.mjs:404
    _recv resource://gre/modules/ConduitsChild.sys.mjs:90
    receiveMessage   ##resource://gre/modules/ConduitsChild.sys.mjs:201

I'm sorry that I don't have a screenshot of the error message containing window.lastClosedContainer.parentNode.

Clicking on any of the "sandbox eval code" links only opens a browser tab called "Invalid address" and no address at all in the address bar.

Environment

  • Platform (OS): MacOS Tahoe 26.3
  • Version of Firefox: LibreWolf 148.0.2-3
  • Version (or revision) of Tree Style Tab: 4.2.12

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions