onerror callback should fire if a frame is destroyed before a reply to an outgoing message is received

Bug #1234555 reported by Chris Coulson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Oxide
Fix Released
Medium
Unassigned

Bug Description

Calling WebFrame.sendMessage() returns a request object that is owned by the embedder. The embedder needs to keep this alive until receiving a response to the message. There is currently no trivial way to detect if If the corresponding frame disappears before a response to the message has been sent, at which point, we no longer need to keep the request object around.

If the frame is destroyed, we should really call the onerror handler to notify the embedder of this

Changed in oxide:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Actually, we do generate an error from the renderer side if a message isn't delivered, but we don't if a message is delivered and then the frame goes away before a reply is sent.

summary: - onerror callback should fire if a frame is destroyed before an outgoing
- message is delivered
+ onerror callback should fire if a frame is destroyed before a reply to
+ an outgoing message is received
description: updated
Changed in oxide:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.