This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Commit 696cf3b
committed
Bug 1588997 - Convert ObjectClient to protocol.js front. r=nchevobbe.
- Converted the ObjectClient into an protocoljs Front
- Converted the SymbolIteratorClient into a protocoljs Front and moved it to devtools/shared/fronts
- Converted the PropertyIteratorClient into a protocoljs Front and moved it to devtools/shared/fronts
- Converted the EnvironmentClient into a protocoljs Front and moved it to devtools/shared/fronts
- Modified calls to `DebuggerClient.release()` so that it tries to call the ObjectFront's release method first, and falls back on `DebuggerClient.release()` if there's no object front
- Changed reps so that it instantiates only one ObjectClient per grip
- Changed tests so that they expect what the Front's request method resolves to where applicable (i.e. ObjectFront.allocationStack resolves to allocationStack, not a packet object with an allocationStack property)
- Changed callbacks provided to ObjectClient methods to be chained to the ObjectFront methods (e.g. ObjectClient.getScope(callback) changed to ObjectFront.getScope().callback())
- Changed tests to use async/await (test_framebindings-x.js, test_functiongrips-x.js, test_objectgrips-x.js)
- Changed tests to expect protocoljs to throw an error string instead of an error object (test_objectgrips-fn-apply-03.js, test_threadlifetime-02.js, test_pauselifetime-03.js)
Differential Revision: https://phabricator.services.mozilla.com/D48182
--HG--
rename : devtools/shared/client/environment-client.js => devtools/shared/fronts/environment.js
rename : devtools/shared/client/property-iterator-client.js => devtools/shared/fronts/property-iterator.js
rename : devtools/shared/client/symbol-iterator-client.js => devtools/shared/fronts/symbol-iterator.js
extra : moz-landing-system : lando1 parent 8fdca46 commit 696cf3b
61 files changed
Lines changed: 718 additions & 899 deletions
File tree
- browser/components/extensions/parent
- devtools
- client
- debugger
- packages/devtools-reps/src/launchpad
- src/client/firefox
- test/mochitest
- inspector
- scratchpad
- webconsole
- test/browser
- server/tests
- browser
- unit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| 564 | + | |
564 | 565 | | |
565 | 566 | | |
566 | 567 | | |
567 | | - | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
568 | 576 | | |
569 | 577 | | |
570 | 578 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| |||
536 | 541 | | |
537 | 542 | | |
538 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
539 | 548 | | |
540 | 549 | | |
541 | 550 | | |
| |||
582 | 591 | | |
583 | 592 | | |
584 | 593 | | |
| 594 | + | |
585 | 595 | | |
586 | 596 | | |
587 | 597 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
162 | 169 | | |
163 | 170 | | |
164 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
2333 | 2333 | | |
2334 | 2334 | | |
2335 | 2335 | | |
2336 | | - | |
2337 | | - | |
| 2336 | + | |
| 2337 | + | |
2338 | 2338 | | |
2339 | 2339 | | |
2340 | 2340 | | |
| |||
2346 | 2346 | | |
2347 | 2347 | | |
2348 | 2348 | | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
2349 | 2352 | | |
2350 | | - | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
2351 | 2356 | | |
2352 | 2357 | | |
2353 | 2358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3957 | 3957 | | |
3958 | 3958 | | |
3959 | 3959 | | |
| 3960 | + | |
3960 | 3961 | | |
3961 | 3962 | | |
3962 | 3963 | | |
| 3964 | + | |
| 3965 | + | |
| 3966 | + | |
| 3967 | + | |
3963 | 3968 | | |
3964 | | - | |
| 3969 | + | |
| 3970 | + | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
3965 | 3976 | | |
3966 | 3977 | | |
3967 | 3978 | | |
3968 | 3979 | | |
3969 | | - | |
| 3980 | + | |
3970 | 3981 | | |
3971 | 3982 | | |
3972 | 3983 | | |
3973 | | - | |
| 3984 | + | |
3974 | 3985 | | |
3975 | 3986 | | |
3976 | 3987 | | |
3977 | | - | |
| 3988 | + | |
3978 | 3989 | | |
3979 | 3990 | | |
3980 | 3991 | | |
3981 | | - | |
| 3992 | + | |
3982 | 3993 | | |
3983 | 3994 | | |
3984 | 3995 | | |
3985 | | - | |
| 3996 | + | |
3986 | 3997 | | |
3987 | 3998 | | |
3988 | 3999 | | |
3989 | | - | |
| 4000 | + | |
3990 | 4001 | | |
3991 | 4002 | | |
3992 | 4003 | | |
3993 | | - | |
| 4004 | + | |
3994 | 4005 | | |
3995 | 4006 | | |
3996 | 4007 | | |
| |||
4090 | 4101 | | |
4091 | 4102 | | |
4092 | 4103 | | |
4093 | | - | |
4094 | | - | |
4095 | | - | |
| 4104 | + | |
4096 | 4105 | | |
4097 | 4106 | | |
4098 | 4107 | | |
| |||
4105 | 4114 | | |
4106 | 4115 | | |
4107 | 4116 | | |
4108 | | - | |
4109 | | - | |
4110 | | - | |
| 4117 | + | |
4111 | 4118 | | |
4112 | 4119 | | |
4113 | 4120 | | |
| |||
4120 | 4127 | | |
4121 | 4128 | | |
4122 | 4129 | | |
4123 | | - | |
4124 | | - | |
4125 | | - | |
| 4130 | + | |
4126 | 4131 | | |
4127 | 4132 | | |
4128 | 4133 | | |
| |||
4133 | 4138 | | |
4134 | 4139 | | |
4135 | 4140 | | |
4136 | | - | |
4137 | | - | |
4138 | | - | |
| 4141 | + | |
4139 | 4142 | | |
4140 | 4143 | | |
4141 | 4144 | | |
| |||
8549 | 8552 | | |
8550 | 8553 | | |
8551 | 8554 | | |
8552 | | - | |
| 8555 | + | |
0 commit comments