Closed
Bug 935612
Opened 11 years ago
Closed 11 years ago
We should stop using TreatUndefinedAs in PhoneNumberService.webidl
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
1.18 KB,
patch
|
mikehenrty
:
review+
|
Details | Diff | Splinter Review |
WebIDL is likely going to drop TreatUndefinedAs entirely; in our tree this API is the sole consumer at this point, once the bogosity of bug 929435 is sorted out. Now that bug 829248 is fixed, I believe this API can simply be rewritten as: DOMRequest fuzzyMatch([TreatNullAs=EmptyString] optional DOMString number1 = "", [TreatNullAs=EmptyString] optional DOMString number2 = ""); right?
Comment 1•11 years ago
|
||
If I understand correctly that undefined/missing parameters to fuzzyMatch will take the default value of an empty string, then yes this would be a good change.
Assignee | ||
Comment 2•11 years ago
|
||
Yes. The one difference from what we have today is that this: fuzzyMatch(); would just act like fuzzyMatch("", "") instead of throwing an exception. Is that OK?
Comment 3•11 years ago
|
||
I don't see a problem with that.
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #829485 -
Flags: review?(mhenretty)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Assignee | ||
Updated•11 years ago
|
Whiteboard: [need review]
Comment 5•11 years ago
|
||
Comment on attachment 829485 [details] [diff] [review] Stop using TreatUndefinedAs in PhoneNumberService. Review of attachment 829485 [details] [diff] [review]: ----------------------------------------------------------------- Mochitests (chrome/plain) still green for desktop, integration tests still green for B2G. LGTM.
Attachment #829485 -
Flags: review?(mhenretty) → review+
Assignee | ||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f605430674e2
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla28
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f605430674e2
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•