Skip to content

"Frame has been detached." at v0.15 #93

@ducan-ne

Description

@ducan-ne

It's hard to reproduce this one since it happens quite randomly.

My issue is that sometimes the .attach raises a "Frame has been detached." error even though the page is not attached yet. I remember in v0.14 I didn’t face a similar issue.

I’ll try to file a reproduction, but as it’s hard to reproduce, will take sometime to setup a example, because I still not sure why this issue happens, I only see it about 1 out of 10 times.

I even tried writing a code like this to make sure there is no attaching debugger but still doesn't work

  const targets = await chrome.debugger.getTargets()
    await Promise.allSettled(targets.map((t) => chrome.debugger.detach({ targetId: t.id }).catch(() => {})))
Image

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