Closed Bug 885685 Opened 12 years ago Closed 12 years ago

B2G MMS: Use nsIURI Object in applyFilter for MmsProxyFilter.

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25
blocking-b2g leo+
Tracking Status
firefox23 --- wontfix
firefox24 --- wontfix
firefox25 --- fixed
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- wontfix
b2g-v1.1hd --- fixed

People

(Reporter: ctai, Assigned: ctai)

References

Details

(Whiteboard: [fixed-in-birch])

Attachments

(1 file, 4 obsolete files)

Some content location from some MMSC will contain port:80. But it will be ignore in prePath. That should be a problem.
This bug is found by LEO. Nominate to leo+.
blocking-b2g: --- → leo?
Attached patch Patch v1.0 (obsolete) — Splinter Review
Attachment #765880 - Flags: review?(vyang)
Comment on attachment 765880 [details] [diff] [review] Patch v1.0 Review of attachment 765880 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/mobilemessage/src/ril/MmsService.js @@ +379,5 @@ > return conn; > }); > > function MmsProxyFilter(url) { > + this.url = Services.io.newURI(url,null,null); ; nit: SP after comma, and remove the extra semicolon in the end.
Attachment #765880 - Flags: review?(vyang) → review+
Unless this is a certification blocker or leo wants to champion blocking on this we'll just wait for a fix in the next version. Found by != blocker.
blocking-b2g: leo? → -
Attached patch Patch v1.1 (obsolete) — Splinter Review
Attachment #765880 - Attachment is obsolete: true
Need a fix for bug 879675.
Attached patch Patch v1.2 (obsolete) — Splinter Review
Attachment #766546 - Attachment is obsolete: true
Comment on attachment 767009 [details] [diff] [review] Patch v1.2 Review of attachment 767009 [details] [diff] [review]: ----------------------------------------------------------------- For bug 879675.
Attachment #767009 - Flags: review?(gene.lian)
Discussed with CTAI. This should be a leo+. It resolves the issue of a patch which removes /.
blocking-b2g: - → leo+
Comment on attachment 767009 [details] [diff] [review] Patch v1.2 Review of attachment 767009 [details] [diff] [review]: ----------------------------------------------------------------- Looks good! ::: dom/mobilemessage/src/ril/MmsService.js @@ +373,5 @@ > return conn; > }); > > function MmsProxyFilter(url) { > + this.url = Services.io.newURI(url,null,null); Please add spaces among parameters. @@ +384,5 @@ > > applyFilter: function applyFilter(proxyService, uri, proxyInfo) { > + if (!this.url.equals(uri)) { > + if (DEBUG) debug("applyFilter: content uri = " + JSON.stringify(this.url) + > + " is not matched url = " + JSON.stringify(uri) + " ."); s/is not matched/is not matched with/
Attachment #767009 - Flags: review?(gene.lian) → review+
Attached patch Patch v1.3 (obsolete) — Splinter Review
Attachment #767009 - Attachment is obsolete: true
Attached patch Patch v1.4Splinter Review
Rename this.url to this.uri.
Attachment #767059 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: