Open Bug 2077644 Opened 1 month ago Updated 1 month ago

Crashed debugger window in w3schools tryit editor | can't access dead object (devtools/server/actors/webconsole/listeners/document-events.js:68)

Categories

(DevTools :: Debugger, defect, P3)

Firefox 156
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: tsabar.nir, Unassigned)

References

(Blocks 1 open bug)

Details

Steps to reproduce:

If possible, please share specific steps to reproduce the error.
Otherwise add any additional information useful to investigate the issue.

Error in כלי פיתוח:

Error: Protocol error (TypeError): can't access dead object from: server0.conn2.watcher3

Client Packet:

{
  "type": "watchResources",
  "resourceTypes": [
    "document-event"
  ],
  "to": "server0.conn2.watcher3"
}

Server Packet:

{
  "from": "server0.conn2.watcher3",
  "error": "TypeError",
  "message": "can't access dead object"
}

Server Stack:

sendQuery/<@resource://devtools/server/connectors/js-process-actor/DevToolsProcessParent.sys.mjs:381:18

Server Content Process Stack:

listen@resource://devtools/server/actors/webconsole/listeners/document-events.js:68:1
watch@resource://devtools/server/actors/resources/document-event.js:118:19
watchResources@resource://devtools/server/actors/resources/index.js:379:15
addOrSetSessionDataEntry@resource://devtools/server/actors/targets/session-data-processors/resources.js:19:21
addOrSetSessionDataEntry@resource://devtools/server/actors/targets/base-target-actor.js:87:23
#addOrSetSessionDataEntry@resource://devtools/server/connectors/js-process-actor/DevToolsProcessChild.sys.mjs:412:21
receiveMessage@resource://devtools/server/connectors/js-process-actor/DevToolsProcessChild.sys.mjs:323:47

Stacktrace:

onPacket/<@resource://devtools/shared/protocol/Front.js:420:31
DevTools RDP*request@resource://devtools/shared/protocol/Front.js:335:14
generateRequestMethods/</frontProto[name]@resource://devtools/shared/protocol/Front/FrontClassWithSpec.js:94:19
_startListening@resource://devtools/shared/commands/resource/resource-command.js:1113:31

This looks like Bug 2042101, but with a different stack
This is where we throw https://searchfox.org/firefox-main/rev/9de2c06fb839d60a8af0319f63c46e34a28e1fc9/devtools/server/actors/webconsole/listeners/document-events.js#67-68

!Cu.isRemoteProxy(this.targetActor.window) &&
this.targetActor.window.document.readyState != "complete"

and so it looks like the guard that was added in Bug 2026134 isn't helping
I guess we could also check for Cu.isDeadWrapper

Summary: Crushed debugger window in w3schools tryit editor → Crashed debugger window in w3schools tryit editor | can't access dead object (devtools/server/actors/webconsole/listeners/document-events.js:68)
Severity: -- → S3
Priority: -- → P3

Could not reproduce locally

See Also: → 2018490
You need to log in before you can comment on or make changes to this bug.