Skip to content

Commit a64db0d

Browse files
author
Daniel Herzog
committed
Fix for DFL-3491: "Request" event missing after re-connecting a remote session
1 parent f52fd01 commit a64db0d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/lib/messagemixin.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ cls.MessageMixin = function()
2121
*/
2222
this.add_listener = function(name, cb)
2323
{
24+
if (!cb)
25+
{
26+
opera.postError(ui_strings.S_DRAGONFLY_INFO_MESSAGE +
27+
"No callback function for message listener provided: " + name);
28+
return;
29+
}
30+
2431
if(! this._mm_listeners)
2532
{
2633
this._mm_listeners = {};

src/network/network_request_crafting_view.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ cls.RequestCraftingView = function(id, name, container_class, html, default_hand
312312
this.required_services = ["resource-manager", "document-manager"];
313313
this._service = window.services['resource-manager'];
314314
this._service.addListener("urlload", this._on_urlload_bound);
315-
this._service.addListener("request", this._on_request_bound);
316315
this._service.addListener("response", this._on_response_bound);
317316
this._service.addListener("responseheader", this._on_responseheader_bound);
318317
this._service.addListener("responsefinished", this._on_responsefinished_bound);

0 commit comments

Comments
 (0)