Closed Bug 1500142 Opened 6 years ago Closed 5 years ago

Remove inspector bindings from toolbox

Categories

(DevTools :: Inspector, enhancement, P1)

enhancement

Tracking

(firefox71 fixed)

RESOLVED FIXED
Firefox 71
Tracking Status
firefox71 --- fixed

People

(Reporter: yulia, Assigned: gl)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(Whiteboard: dt-fission-m1)

Attachments

(1 file)

The toolbox currently holds a reference to the inspector. This is no longer necessary, as we have that available on the target via getFront, and in a number of other places. This will also enable fission work, as the toolbox will no longer hold references to target specific fronts

Tasks: Remove inspector bindings from toolbox 
* [This needs to go away](https://searchfox.org/mozilla-central/rev/3d469329a42644b41e66944d8da22d78d8c0f5ec/devtools/shared/fronts/targets/target-mixin.js#185-193) and we should just use “getFront” everywhere
* Update tests so that they do not fail 
  * The [old destroy path](https://searchfox.org/mozilla-central/rev/c606cdd6d014fee4034da1702d484c0d41b604c9/devtools/client/framework/toolbox.js#3071-3095). 
  * The [new destroy path](https://searchfox.org/mozilla-central/rev/c606cdd6d014fee4034da1702d484c0d41b604c9/devtools/shared/fronts/targets/target-mixin.js#528-531)
* Use [target.onFront](https://searchfox.org/mozilla-central/source/devtools/shared/fronts/targets/target-mixin.js#191-197) to do [inspector toolbox instantiation](https://searchfox.org/mozilla-central/source/devtools/client/framework/toolbox.js#3012-3018)
* [remove bindings]( https://searchfox.org/mozilla-central/rev/c606cdd6d014fee4034da1702d484c0d41b604c9/devtools/client/framework/toolbox.js#3007-3010)
Severity: normal → enhancement
Priority: -- → P2
Whiteboard: dt-fission
Blocks: dt-fission-inspector
No longer blocks: dt-fission
Assignee: ystartsev → nobody
Depends on: 1568126
Depends on: 1568151
Depends on: 1568157
Depends on: 1503882
Assignee: nobody → gl
Status: NEW → ASSIGNED
Priority: P2 → P1
Pushed by gluong@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3182a1d6debb
Remove inspector bindings from toolbox. r=ochameau,yulia
devtools/shared/security/tests/unit/test_oob_cert_auth.js
  FAIL  - A promise chain failed to handle a rejection: Can't manage front without an actor ID.
Ensure server supports root. - stack: manage@resource://devtools/shared/protocol/Front.js:95:13
DebuggerClient/<@resource://devtools/shared/client/debugger-client.js:76:19
emit@resource://devtools/shared/event-emitter.js:190:24
emit@resource://devtools/shared/event-emitter.js:271:18
reject@resource://devtools/shared/client/debugger-client.js:819:15
purgeRequests/<@resource://devtools/shared/client/debugger-client.js:840:53
purgeRequests@resource://devtools/shared/client/debugger-client.js:840:28
onClosed@resource://devtools/shared/client/debugger-client.js:766:10
close@resource://devtools/shared/transport/transport.js:186:18
@/Users/oracle/Projects/fx-team/objdir-frontend/_tests/xpcshell/devtools/shared/security/tests/unit/test_oob_cert_auth.js:142:15
async*run_next_test/_run_next_test/<@/Users/oracle/Projects/fx-team/testing/xpcshell/head.js:1565:22
_run_next_test@/Users/oracle/Projects/fx-team/testing/xpcshell/head.js:1565:38
run@/Users/oracle/Projects/fx-team/testing/xpcshell/head.js:733:9
_do_main@/Users/oracle/Projects/fx-team/testing/xpcshell/head.js:246:6
_execute_test@/Users/oracle/Projects/fx-team/testing/xpcshell/head.js:573:5

This seems to be an existing failure that only surfaced when we converted manage into async. We end up calling debugger-client.js#72 after closing the DebuggerClient and purging the requests. I added a closed check in expectReply("root") handler.

Flags: needinfo?(gl)
Attachment #9082436 - Attachment description: Bug 1500142 - Remove inspector bindings from toolbox. r=yulia,ochameau → Bug 1500142 - Remove inspector bindings from toolbox. r=ochameau,yulia
Pushed by gluong@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ee21ca668ca8
Remove inspector bindings from toolbox. r=yulia,ochameau
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71
See Also: → 1583207
Regressions: 1583207
See Also: 1583207
Whiteboard: dt-fission → dt-fission dt-fission-m1
Regressions: 1602783
Whiteboard: dt-fission dt-fission-m1 → dt-fission-m1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: