Closed Bug 1450953 Opened 8 years ago Closed 8 years ago

Convert WindowActor to protocol.js

Categories

(DevTools :: General, enhancement, P2)

enhancement

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()
Blocks: 1450956
No longer blocks: 1450943
Severity: normal → enhancement
Priority: -- → P2
Assignee: nobody → ystartsev
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]
ops, didn't catch the linter issues for some reason in my editor, will fix
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+
Pushed by ystartsev@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/16ac0e4e2483 Convert WindowActor to protocol.js; r=ochameau
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 62
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: