tst_ScriptMessageRouting_no_match.qml random test failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Oxide |
Triaged
|
Medium
|
Unassigned | ||
webbrowser-app |
Invalid
|
Medium
|
Unassigned | ||
webbrowser-app (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
On trunk, I'm getting the following random test failure:
FAIL! : qml-core-
Actual (): 5
Expected (): 3
Loc: [/home/
The test is checking the response of the browser-side message routing when there are no handlers available by sending a message to the frame and having it loop back to the browser. When the browser returns an error for the looped back message, the frame is then meant to reply to the original request by sending the error code (which we expect to be 3 - ErrorNoHandler). In this case though, we're getting a genuine error from the message transaction to the frame (5 - ErrorHandlerDid
The content-side handler for this test that loops back to the browser looks like this:
oxide.addMessag
var r = oxide.sendMessa
r.onreply = function(response) {
msg.
};
r.onerror = function(error, desc) {
msg.
};
});
What happens is that when the handler has executed, "r" goes out of scope and then sometimes gets garbage collected before we get a reply or error from the browser. When it gets garbage collected, we automatically send the "DidNotRespond" error to the message source in the browser.
I'm amazed we've only just started hitting this.
This is likely to be an issue for existing consumers of Oxide, and could affect the browser side too
Changed in oxide: | |
importance: | Undecided → Critical |
status: | New → Triaged |
milestone: | none → branch-1.7 |
Changed in oxide: | |
importance: | Critical → High |
Changed in oxide: | |
milestone: | branch-1.7 → branch-1.8 |
Changed in oxide: | |
milestone: | branch-1.8 → branch-1.9 |
Changed in webbrowser-app (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in webbrowser-app: | |
status: | Confirmed → Invalid |
Changed in oxide: | |
milestone: | branch-1.9 → branch-1.10 |
Changed in oxide: | |
importance: | High → Medium |
Changed in oxide: | |
milestone: | branch-1.10 → none |
The browser is potentially affected by this bug here: http:// bazaar. launchpad. net/~phablet- team/webbrowser -app/trunk/ view/head: /src/Ubuntu/ Web/UbuntuWebVi ew02.qml# L174.