mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 747215: Ensure redirect pathways always call both OnStart/OnStopRequest. r=biesi
This commit is contained in:
parent
81c6e2d90c
commit
78dd9bf434
@ -128,7 +128,7 @@ ChannelListener.prototype = {
|
|||||||
onStopRequest: function(request, context, status) {
|
onStopRequest: function(request, context, status) {
|
||||||
try {
|
try {
|
||||||
var success = Components.isSuccessCode(status);
|
var success = Components.isSuccessCode(status);
|
||||||
if (!this._got_onstartrequest && success)
|
if (!this._got_onstartrequest)
|
||||||
do_throw("onStopRequest without onStartRequest event!");
|
do_throw("onStopRequest without onStartRequest event!");
|
||||||
if (this._got_onstoprequest)
|
if (this._got_onstoprequest)
|
||||||
do_throw("Got second onStopRequest event!");
|
do_throw("Got second onStopRequest event!");
|
||||||
|
Loading…
Reference in New Issue
Block a user