Closed Bug 701523 Opened 13 years ago Closed 13 years ago

Make loading script actors optional in DebuggerServer.init()

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgriffin, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch DebuggerServer.init patch (obsolete) — Splinter Review
In Marionette (https://wiki.mozilla.org/Auto-tools/Projects/Marionette), we utilize the DebuggerServer, but we don't want or need the script actors.  This patch makes loading the script actors conditional on an extra argument passed to init.
Attachment #573639 - Flags: review?(dcamp)
It seems that you don't need the nested event loop helper either, just the transport handling and socket manipulation parts. In that case it looks cleaner to me to have an initTransport or similar that would cater to your needs and have init call that for the script debugger case.

This patch also breaks DebuggerServer.initialized for other users besides Marionette.
New patch which addresses comments.
Attachment #573639 - Attachment is obsolete: true
Attachment #573639 - Flags: review?(dcamp)
Attachment #573858 - Flags: review?(dcamp)
Comment on attachment 573858 [details] [diff] [review]
DebuggerServer.init patch, v0.2

Review of attachment 573858 [details] [diff] [review]:
-----------------------------------------------------------------

OK to land on remote-debug.
Attachment #573858 - Flags: review?(dcamp) → review+
Landed as http://hg.mozilla.org/users/dcamp_campd.org/remote-debug/rev/c0498cb305de
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: