Closed Bug 1230143 Opened 9 years ago Closed 7 years ago

[Messages] Exception "TypeError: messagesContainer is null" is thrown when user tries to manually download MMS

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

ARM
Gonk (Firefox OS)
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: azasypkin, Unassigned)

References

Details

(Whiteboard: [sms-papercuts])

STR:
1. Connect to device with WebIDE and open console;
2. Disable auto MMS retrieval in Settings and receive MMS;
3. Tap on "Download" link;
4. Observe console log.

Expected result: nothing bad should be here!

Actual result: Unhandled exception is thrown ("TypeError: messagesContainer is null")

There is no any effect on user here, hence priority is very low. This happens because of the fact that sometimes "message-received" event is received before "MessagingClient.retrieveMMS" returns result (became more apparent after relying on bridge for this operation). So onMessageReceived handler calls "appendMessage" that removes message node and "retrieveMMS" success handler tries to remove this node as well.

So if downloaded MMS always has the same id (I believe it's the case), we can stop trying to remove message node in "retrieveMMS" success callback and entirely rely on onMessageReceived handler to do the job. Additionally "appendMessage" can swap nodes instead of remove-add operation.
Whiteboard: [sms-papercuts]
Whiteboard: [sms-papercuts]
By mistake, it got removed. Sorry
Whiteboard: [sms-papercuts]
Mass closing of Gaia::SMS bugs. End of an era :(
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Mass closing of Gaia::SMS bugs. End of an era :(
You need to log in before you can comment on or make changes to this bug.