Closed
Bug 867227
Opened 12 years ago
Closed 12 years ago
B2G MMS: Add expiry date into nsIDOMMozMmsMessage.
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: ctai, Assigned: ctai)
References
Details
(Whiteboard: [INTERFACE_CHANGE])
Attachments
(2 files, 3 obsolete files)
4.30 KB,
patch
|
vicamo
:
review+
mounir
:
superreview+
|
Details | Diff | Splinter Review |
12.08 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → ctai
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Comment 2•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #743912 -
Attachment description: Part 1/2: Patch v1.0 → Part 1/2: Interface v1.0
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #743912 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #743914 -
Flags: review?(vyang)
Assignee | ||
Updated•12 years ago
|
Attachment #743915 -
Flags: review?(vyang)
Updated•12 years ago
|
Attachment #743915 -
Flags: superreview?(mounir)
Attachment #743915 -
Flags: review?(vyang)
Attachment #743915 -
Flags: review+
Comment 4•12 years ago
|
||
Comment on attachment 743914 [details] [diff] [review]
Part 2/2: Patch v1.0
Review of attachment 743914 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/mobilemessage/src/MmsMessage.cpp
@@ +523,5 @@
> + NS_ENSURE_TRUE(obj, NS_ERROR_FAILURE);
> +
> + *aDate = OBJECT_TO_JSVAL(obj);
> + return NS_OK;
> +}
nit: add an empty line after.
Attachment #743914 -
Flags: review?(vyang) → review+
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #744157 -
Attachment is obsolete: true
Assignee | ||
Comment 7•12 years ago
|
||
This one is correct one. Part 2/2: Patch v1.1 is wrong.
(In reply to Chia-hung Tai [:ctai :ctai_mozilla :cht] from comment #6)
> Created attachment 744158 [details] [diff] [review]
> Part 2/2: Patch v1.2
Assignee | ||
Comment 8•12 years ago
|
||
Nominating for leo+ because of blocking 862262 which is nominated for leo+.
blocking-b2g: --- → leo?
Assignee | ||
Updated•12 years ago
|
Whiteboard: [NO_UPLIFIT], [INTERFACE_CHANGE]
Comment 9•12 years ago
|
||
Removed NO_UPLIFT, as no change required in commercial RIL. Thanks.
Whiteboard: [NO_UPLIFIT], [INTERFACE_CHANGE] → [INTERFACE_CHANGE]
Comment 10•12 years ago
|
||
Why did we decide to implement this? I can't understand the reasons by reading bug 862262.
Assignee | ||
Comment 11•12 years ago
|
||
Because the notification message shows the expiry date when the retrieval mode is manual in UX wireframe designed by Ayman(Telfonica guy responsible for Firefox OS MMS UX). We need this patch to meet this requirement.
Comment 12•12 years ago
|
||
(In reply to Mounir Lamouri (:mounir) from comment #10)
> Why did we decide to implement this? I can't understand the reasons by
> reading bug 862262.
Messages on the server have an expiration date. For cost-conscious markets and customers, it appears we ship with auto-retrieve off, which means we need to indicate to the user how long they have to be able to download a given MMS message.
Updated•12 years ago
|
Attachment #743915 -
Flags: superreview?(mounir) → superreview+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 13•12 years ago
|
||
https://hg.mozilla.org/projects/birch/rev/f2cc1aab0edf
https://hg.mozilla.org/projects/birch/rev/3e0f1e2b853b
Should this have a test?
Flags: in-testsuite?
Keywords: checkin-needed
Comment 14•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f2cc1aab0edf
https://hg.mozilla.org/mozilla-central/rev/3e0f1e2b853b
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Comment 15•12 years ago
|
||
We didn't see in bug 862262 whether or not this was a blocker. Peter, can you help us to understand?
Don't let the lack of blocking status prevent you from requesting approval-b2g18 on the patch though (this will also get the fix into v1.1).
Flags: needinfo?(pdolanjski)
Comment 16•12 years ago
|
||
bug 862262 has the comments from maria about why this is blocking+ (this blocks the UI impl).
blocking-b2g: leo? → leo+
Assignee | ||
Updated•12 years ago
|
Flags: needinfo?(pdolanjski)
Comment 17•12 years ago
|
||
WIP b2g18 uplift branch - https://github.com/vicamo/b2g_mozilla-central/tree/bugzilla/867227/mms-message-expiryDate
Comment 18•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/19435cc447c9
https://hg.mozilla.org/releases/mozilla-b2g18/rev/57c0cda90f17
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-firefox23:
--- → fixed
Comment 19•12 years ago
|
||
Comment on attachment 744158 [details] [diff] [review]
Part 2/2: Patch v1.2
Review of attachment 744158 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/mobilemessage/src/ril/MobileMessageDatabaseService.js
@@ +669,5 @@
> "content": partContent
> });
> }
> }
> + let expiryDate = aMessageRecord.timestamp + headers["x-mms-expiry"] * 1000;
Please see below.
@@ +681,5 @@
> aMessageRecord.read,
> subject,
> smil,
> + attachments,
> + expiryDate);
This is wrong. .createDomMessageFromRecord() is also used for the sending MMS which doesn't need to have an "x-mms-expiry" in its header. MmsMessage::Create() will reject an invalid |aExpiryDate|. This stops us sending an MMS.
E/GeckoConsole( 551): [JavaScript Error: "NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMobileMessageService.createMmsMessage]" {file: "jar:file:///system/b2g/omni.ja!/components/MobileMessageDatabaseService.js" line: 732}]
I'm working on a patch for this. Will fire a bug later.
Attachment #744158 -
Flags: feedback-
Updated•12 years ago
|
Attachment #744158 -
Flags: feedback-
Comment 20•12 years ago
|
||
@Gene, I've been updating the SMS app to support using threadId instead of "phone number" for multi-recipient support. So far, I have not been able to successfully send a message with sendMMS—is that currently expected behaviour?
Assignee | ||
Comment 21•12 years ago
|
||
Rick, Bug 869807 - B2G MMS: fail to send MMS due to the wrong assignment for expiryDate should already fixed this problem.
Comment 22•12 years ago
|
||
(In reply to Rick Waldron from comment #20)
> @Gene, I've been updating the SMS app to support using threadId instead of
> "phone number" for multi-recipient support. So far, I have not been able to
> successfully send a message with sendMMS—is that currently expected
> behaviour?
Hi Rick, as Chia-hung's mention, please make sure both Bug 869841 and Bug 869807 has been included in your Gecko build, which should be able to solve the sendMMS(...) error.
Comment 23•12 years ago
|
||
Not sure which bug this makes sense for: https://bugzilla.mozilla.org/show_bug.cgi?id=869841#c7
Assignee | ||
Comment 24•12 years ago
|
||
Please see https://bugzilla.mozilla.org/show_bug.cgi?id=869841#c8. It is a typo in Messaging AP.
Updated•12 years ago
|
Flags: in-moztrap-
You need to log in
before you can comment on or make changes to this bug.
Description
•