11# HG changeset patch
2- # Parent fba2eb0c80ab5106ca2e23a814efa24476010537
2+ # Parent 185cb4260f01302256439d271443f2547cf3f131
33# User Mihai Sucan <mihai.sucan@gmail.com>
4- # Date 1344367217 -10800
4+ # Date 1346353316 -10800
55
66Bug 768096 - Web Console remote debugging protocol support - Part 1: page errors
77
@@ -33,7 +33,7 @@ diff --git a/browser/devtools/webconsole/HUDService.jsm b/browser/devtools/webco
3333 function log(aMessage) {
3434 var _msg = aMessagePrefix + " " + aMessage + "\n";
3535 dump(_msg);
36- @@ -571 ,28 +579 ,47 @@ WebConsole.prototype = {
36+ @@ -573 ,28 +581 ,47 @@ WebConsole.prototype = {
3737 get outputNode()
3838 {
3939 return this.ui ? this.ui.outputNode : null;
@@ -81,7 +81,7 @@ diff --git a/browser/devtools/webconsole/HUDService.jsm b/browser/devtools/webco
8181 * @private
8282 */
8383 _initUI: function WC__initUI()
84- @@ -621 ,16 +648 ,21 @@ WebConsole.prototype = {
84+ @@ -623 ,16 +650 ,21 @@ WebConsole.prototype = {
8585 {
8686 this.iframe.removeEventListener("load", this._onIframeLoad, true);
8787
@@ -103,7 +103,7 @@ diff --git a/browser/devtools/webconsole/HUDService.jsm b/browser/devtools/webco
103103 * @private
104104 */
105105 _createOwnWindowPanel: function WC__createOwnWindowPanel()
106- @@ -919 ,31 +951 ,44 @@ WebConsole.prototype = {
106+ @@ -921 ,31 +953 ,44 @@ WebConsole.prototype = {
107107 {
108108 this.messageManager.loadFrameScript(CONTENT_SCRIPT_URL, true);
109109
@@ -150,7 +150,7 @@ diff --git a/browser/devtools/webconsole/HUDService.jsm b/browser/devtools/webco
150150 */
151151 _onInitComplete: function WC__onInitComplete()
152152 {
153- @@ -1053 ,16 +1098 ,20 @@ WebConsole.prototype = {
153+ @@ -1055 ,16 +1100 ,20 @@ WebConsole.prototype = {
154154 destroy: function WC_destroy()
155155 {
156156 this.sendMessageToContent("WebConsole:Destroy", {});
@@ -171,7 +171,7 @@ diff --git a/browser/devtools/webconsole/HUDService.jsm b/browser/devtools/webco
171171 let panels = popupset.querySelectorAll("panel[hudId=" + this.hudId + "]");
172172 for (let panel of panels) {
173173 if (panel != this.consolePanel) {
174- @@ -1087 ,16 +1136,153 @@ WebConsole.prototype = {
174+ @@ -1089 ,16 +1138,136 @@ WebConsole.prototype = {
175175 }
176176
177177 if (this.splitter.parentNode) {
@@ -192,7 +192,6 @@ diff --git a/browser/devtools/webconsole/HUDService.jsm b/browser/devtools/webco
192192+{
193193+ this.owner = aWebConsole;
194194+
195- + this._onCachedMessages = this._onCachedMessages.bind(this);
196195+ this._onPageError = this._onPageError.bind(this);
197196+}
198197+
@@ -272,22 +271,6 @@ diff --git a/browser/devtools/webconsole/HUDService.jsm b/browser/devtools/webco
272271+
273272+ this.connected = true;
274273+ aCallback && aCallback();
275- +
276- + //let msg = [this.webConsoleClient.CACHED_MESSAGES.PageError];
277- + //this.webConsoleClient.getCachedMessages(msgs,
278- + // this._onCachedMessages);
279- + },
280- +
281- + // TODO: This is almost working. Need to implement ConsoleAPI support in the
282- + // WebConsoleActor and it's done.
283- + _onCachedMessages: function WCCP__onCachedMessages(aResponse)
284- + {
285- + if (aResponse.error) {
286- + Cu.reportError("Web Console getCachedMessages error: " + aResponse.error +
287- + " " + aResponse.message);
288- + return;
289- + }
290- + //dump("WCCP__onCachedMessages " + aResponse.messages.length + "\n");
291274+ },
292275+
293276+ /**
@@ -563,7 +546,7 @@ diff --git a/browser/devtools/webconsole/test/browser_webconsole_bug_601909_reme
563546diff --git a/browser/devtools/webconsole/webconsole.js b/browser/devtools/webconsole/webconsole.js
564547--- a/browser/devtools/webconsole/webconsole.js
565548+++ b/browser/devtools/webconsole/webconsole.js
566- @@ -535 ,26 +535 ,22 @@ WebConsoleFrame.prototype = {
549+ @@ -596 ,26 +596 ,22 @@ WebConsoleFrame.prototype = {
567550 break;
568551 case "JSTerm:InspectObject":
569552 this.jsterm.handleInspectObject(aMessage.json);
@@ -593,7 +576,7 @@ diff --git a/browser/devtools/webconsole/webconsole.js b/browser/devtools/webcon
593576 this.outputMessage(CATEGORY_NETWORK, this.logFileActivity,
594577 [aMessage.json.uri]);
595578 break;
596- @@ -1146 ,16 +1142 ,29 @@ WebConsoleFrame.prototype = {
579+ @@ -1207 ,16 +1203 ,29 @@ WebConsoleFrame.prototype = {
597580 aScriptError.errorMessage,
598581 aScriptError.sourceName,
599582 aScriptError.lineNumber, null, null,
@@ -646,7 +629,7 @@ diff --git a/toolkit/devtools/debugger/dbg-client.jsm b/toolkit/devtools/debugge
646629 XPCOMUtils.defineLazyServiceGetter(this, "socketTransportService",
647630 "@mozilla.org/network/socket-transport-service;1",
648631 "nsISocketTransportService");
649- @@ -168,56 +169,61 @@ const ThreadStateTypes = {
632+ @@ -168,16 +169,17 @@ const ThreadStateTypes = {
650633 };
651634
652635 /**
@@ -661,8 +644,10 @@ diff --git a/toolkit/devtools/debugger/dbg-client.jsm b/toolkit/devtools/debugge
661644 };
662645
663646 /**
664- * Set of debug protocol request types that specify the protocol request being
665- * sent to the server.
647+ * Set of pause types that are sent by the server and not as an immediate
648+ * response to a client request.
649+ */
650+ @@ -194,41 +196,45 @@ const UnsolicitedPauses = {
666651 */
667652 const DebugProtocolTypes = {
668653 "assign": "assign",
@@ -709,7 +694,7 @@ diff --git a/toolkit/devtools/debugger/dbg-client.jsm b/toolkit/devtools/debugge
709694
710695 DebuggerClient.prototype = {
711696 /**
712- @@ -263 ,20 +269 ,42 @@ DebuggerClient.prototype = {
697+ @@ -274 ,20 +280 ,42 @@ DebuggerClient.prototype = {
713698 let detachTab = function _detachTab() {
714699 if (this.activeTab) {
715700 this.activeTab.detach(closeTransport);
@@ -756,7 +741,7 @@ diff --git a/toolkit/devtools/debugger/dbg-client.jsm b/toolkit/devtools/debugge
756741 *
757742 * @param function aOnResponse
758743 * Called with the response packet.
759- @@ -296 ,26 +324 ,57 @@ DebuggerClient.prototype = {
744+ @@ -307 ,26 +335 ,57 @@ DebuggerClient.prototype = {
760745 * @param function aOnResponse
761746 * Called with the response packet and a TabClient
762747 * (which will be undefined on error).
@@ -815,7 +800,7 @@ diff --git a/toolkit/devtools/debugger/dbg-client.jsm b/toolkit/devtools/debugge
815800 * Called with the response packet and a ThreadClient
816801 * (which will be undefined on error).
817802 */
818- @@ -474 ,16 +533 ,113 @@ TabClient.prototype = {
803+ @@ -495 ,16 +554 ,113 @@ TabClient.prototype = {
819804 }
820805 });
821806 }
0 commit comments