Closed
Bug 1450953
Opened 8 years ago
Closed 8 years ago
Convert WindowActor to protocol.js
Categories
(DevTools :: General, enhancement, P2)
DevTools
General
Tracking
(firefox62 fixed)
RESOLVED
FIXED
Firefox 62
| Tracking | Status | |
|---|---|---|
| firefox62 | --- | fixed |
People
(Reporter: yulia, Assigned: yulia)
References
Details
Attachments
(1 file)
With the update of RootActor to protocol.js we should also update WindowActor
It is instantiated via RootActor.getWindow()
| Assignee | ||
Updated•8 years ago
|
Updated•8 years ago
|
Severity: normal → enhancement
Priority: -- → P2
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 2•8 years ago
|
||
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → ystartsev
Comment 3•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8973630 [details]
Bug 1450953 - Convert WindowActor to protocol.js;
https://reviewboard.mozilla.org/r/241994/#review247848
Code analysis found 4 defects in this patch:
- 4 defects found by mozlint
You can run this analysis locally with:
- `./mach lint path/to/file` (JS/Python)
If you see a problem in this automated review, please report it here: http://bit.ly/2y9N9Vx
::: devtools/server/actors/window.js:26
(Diff revision 1)
> * Most of the implementation is inherited from TabActor. WindowActor exposes all tab
> * actors via its form() request, like TabActor.
> *
> * You can request a specific window's actor via RootActor.getWindow().
> *
> + * Caveat: Protocol.js expects only the prototype object, and does not maintain the prototype
Error: Line 26 exceeds the maximum line length of 90. [eslint: max-len]
::: devtools/server/actors/window.js:35
(Diff revision 1)
> * @param connection DebuggerServerConnection
> * The connection to the client.
> * @param window DOMWindow
> * The window.
> */
> -function WindowActor(connection, window) {
> +
Error: More than 1 blank line not allowed. [eslint: no-multiple-empty-lines]
::: devtools/server/actors/window.js:49
(Diff revision 1)
> .getInterface(Ci.nsIDocShell);
> Object.defineProperty(this, "docShell", {
> value: docShell,
> configurable: true
> });
> }
Error: Missing semicolon. [eslint: semi]
::: devtools/server/actors/window.js:50
(Diff revision 1)
> Object.defineProperty(this, "docShell", {
> value: docShell,
> configurable: true
> });
> }
>
Error: More than 1 blank line not allowed. [eslint: no-multiple-empty-lines]
| Assignee | ||
Comment 4•8 years ago
|
||
ops, didn't catch the linter issues for some reason in my editor, will fix
| Comment hidden (mozreview-request) |
Comment 6•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8973630 [details]
Bug 1450953 - Convert WindowActor to protocol.js;
https://reviewboard.mozilla.org/r/241994/#review247860
Thanks, it looks good.
::: devtools/server/actors/window.js:94
(Diff revision 2)
> TabActor.prototype._detach.call(this);
>
> return true;
> };
>
> -exports.WindowActor = WindowActor;
> +windowPrototype.typeName = "Window";
I have the same comment than bug 1450946, this should be removed.
Attachment #8973630 -
Flags: review?(poirot.alex) → review+
| Comment hidden (mozreview-request) |
Pushed by ystartsev@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/16ac0e4e2483
Convert WindowActor to protocol.js; r=ochameau
Comment 9•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 62
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•