summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/documentwidget.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index a02dc67f..d78a9238 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -451,7 +451,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
451 pointerLabel_Command(command_UserEvent(ev), "request") == d->request) { 451 pointerLabel_Command(command_UserEvent(ev), "request") == d->request) {
452 updateSource_DocumentWidget_(d); 452 updateSource_DocumentWidget_(d);
453 checkResponseCode_DocumentWidget_(d); 453 checkResponseCode_DocumentWidget_(d);
454 return iTrue; 454 return iFalse;
455 } 455 }
456 else if (isCommand_Widget(w, ev, "document.request.finished") && 456 else if (isCommand_Widget(w, ev, "document.request.finished") &&
457 pointerLabel_Command(command_UserEvent(ev), "request") == d->request) { 457 pointerLabel_Command(command_UserEvent(ev), "request") == d->request) {
@@ -460,7 +460,11 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
460 d->state = ready_DocumentState; 460 d->state = ready_DocumentState;
461 iReleasePtr(&d->request); 461 iReleasePtr(&d->request);
462 postCommandf_App("document.changed url:%s", cstr_String(d->url)); 462 postCommandf_App("document.changed url:%s", cstr_String(d->url));
463 return iTrue; 463 return iFalse;
464 }
465 else if (isCommand_UserEvent(ev, "document.request.cancelled")) {
466 postCommand_App("navigate.back");
467 return iFalse;
464 } 468 }
465 else if (isCommand_UserEvent(ev, "document.stop")) { 469 else if (isCommand_UserEvent(ev, "document.stop")) {
466 if (d->request) { 470 if (d->request) {