Closed
Bug 1200132
Opened 9 years ago
Closed 9 years ago
[Presentation WebAPI] discovered host name is unresolvable.
Categories
(Core :: Networking: DNS, defect, P1)
Core
Networking: DNS
Tracking
()
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: xeonchen, Assigned: kershaw)
References
Details
(Whiteboard: [ft:conndevices][partner-blocker])
Attachments
(3 files, 11 obsolete files)
14.73 KB,
patch
|
kershaw
:
review+
|
Details | Diff | Splinter Review |
2.00 KB,
patch
|
kershaw
:
review+
|
Details | Diff | Splinter Review |
20.70 KB,
patch
|
kershaw
:
review+
|
Details | Diff | Splinter Review |
The discovered host name (e.g. foo.local.) cannot be resolved to IP address on some platform (e.g. b2g).
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → kechang
Comment 1•9 years ago
|
||
Hi Josh,
Could you help mark 2.5+ to this one?
Flags: needinfo?(jocheng)
Whiteboard: [ft:conndevices]
Comment 2•9 years ago
|
||
Hi Sean,
Should we block this on 1184073?
Thanks
feature-b2g: --- → 2.5+
Flags: needinfo?(selin)
Comment 3•9 years ago
|
||
(In reply to Josh Cheng [:josh] from comment #2)
> Hi Sean,
> Should we block this on 1184073?
> Thanks
Yep. I just did it. Thanks.
Blocks: 2-UA_Presentation_API
Flags: needinfo?(selin)
Updated•9 years ago
|
Flags: needinfo?(jocheng)
Priority: -- → P1
Assignee | ||
Comment 4•9 years ago
|
||
Updated•9 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•9 years ago
|
||
Updated•9 years ago
|
Blocks: TV_Seamless_FennecSide
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8663582 -
Attachment is obsolete: true
Attachment #8664619 -
Flags: review?(mcmanus)
Assignee | ||
Updated•9 years ago
|
Attachment #8664156 -
Flags: review?(mcmanus)
Assignee | ||
Updated•9 years ago
|
Attachment #8664156 -
Flags: review?(rnewman)
Updated•9 years ago
|
Target Milestone: --- → FxOS-S8 (02Oct)
Comment 7•9 years ago
|
||
Comment on attachment 8664156 [details] [diff] [review]
WIP: Fennec part
Review of attachment 8664156 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/mdns/MulticastDNSManager.java
@@ +205,5 @@
>
> InetAddress host = serviceInfo.getHost();
> if (host != null) {
> + obj.put("host", host.getCanonicalHostName());
> + obj.put("isIPV6", String.valueOf(host instanceof Inet6Address));
JSONObject supports booleans, so remove the String.valueOf.
Attachment #8664156 -
Flags: review?(rnewman) → review+
Updated•9 years ago
|
Whiteboard: [ft:conndevices] → [ft:conndevices][partner-blocker]
Updated•9 years ago
|
Attachment #8664619 -
Flags: review?(mcmanus) → review+
Updated•9 years ago
|
Attachment #8664156 -
Flags: review?(mcmanus) → review+
Updated•9 years ago
|
Target Milestone: FxOS-S8 (02Oct) → FxOS-S9 (16Oct)
Assignee | ||
Comment 8•9 years ago
|
||
WIP patch.
Waiting for validation.
Assignee | ||
Updated•9 years ago
|
Attachment #8670118 -
Flags: review?(schien)
Assignee | ||
Comment 9•9 years ago
|
||
Hi SC,
Could you please take a look?
Thanks.
Comment 10•9 years ago
|
||
Comment on attachment 8670118 [details] [diff] [review]
Use adderss to create socketTransport
Review of attachment 8670118 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/presentation/interfaces/nsITCPPresentationServer.idl
@@ +63,5 @@
> nsIPresentationDevice createTCPDevice(in AUTF8String aId,
> in AUTF8String aName,
> in AUTF8String aType,
> in AUTF8String aHost,
> + in AUTF8String aAddress,
I'll prefer passing |nsINetAddr| directly.
Attachment #8670118 -
Flags: review?(schien)
Assignee | ||
Comment 11•9 years ago
|
||
Summary:
1. Use nsINetAddr instead of string.
2. Modify test case.
Attachment #8670118 -
Attachment is obsolete: true
Attachment #8672530 -
Flags: review?(schien)
Updated•9 years ago
|
Attachment #8672530 -
Flags: review?(schien) → review+
Assignee | ||
Updated•9 years ago
|
Attachment #8672530 -
Flags: review?(juhsu)
Comment 12•9 years ago
|
||
Comment on attachment 8672530 [details] [diff] [review]
Use adderss to create socketTransport - v2
Review of attachment 8672530 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with the comment addressed
::: dom/presentation/provider/TCPPresentationServer.js
@@ +175,5 @@
> let socketTransport;
> try {
> socketTransport = sts.createTransport(null,
> 0,
> + aDevice.address.address,
I'm wondering if it's good to keep |host| in the |nsIPresentationDevice|. If you'd like to do this way, I guess the client can decide to choose address or host. And the socket transport should connect to one of those. Connecting to the address is preferred, and connect to the host if address is null or undefined.
Otherwise, if you'd like to remove |host|, please file a bug as a follow-up.
Also put those to comments.
Attachment #8672530 -
Flags: review?(juhsu) → review+
Comment 13•9 years ago
|
||
Per bug 1136565, |host| might be used.
Comment 14•9 years ago
|
||
This is the updated patch based on the modification in bug 1136565. I now realized that TCPPresentationServer only need a string for host address to establish TCP socket. You might consider passing string from nsIDNSServiceDiscovery instead of nsINetAddr. It'll make your code simpler and less type conversion.
Attachment #8675283 -
Flags: feedback?(kechang)
Updated•9 years ago
|
Attachment #8675283 -
Attachment filename: attachment.cgi?id=8672530 → v3.patch
Attachment #8675283 -
Attachment mime type: application/mbox → text/plain
Updated•9 years ago
|
Attachment #8675283 -
Attachment is patch: true
Assignee | ||
Comment 15•9 years ago
|
||
Comment on attachment 8675283 [details] [diff] [review]
Use adderss to create socketTransport - v3
Review of attachment 8675283 [details] [diff] [review]:
-----------------------------------------------------------------
lgtm.
I think I should land this bug until bug 1136565 is fixed?
Attachment #8675283 -
Flags: feedback?(kechang) → feedback+
Assignee | ||
Comment 16•9 years ago
|
||
Rebase
Attachment #8664619 -
Attachment is obsolete: true
Attachment #8676668 -
Flags: review+
Assignee | ||
Comment 17•9 years ago
|
||
Attachment #8664156 -
Attachment is obsolete: true
Attachment #8676669 -
Flags: review+
Assignee | ||
Comment 18•9 years ago
|
||
Attachment #8672530 -
Attachment is obsolete: true
Attachment #8675283 -
Attachment is obsolete: true
Attachment #8676668 -
Attachment is obsolete: true
Attachment #8676669 -
Attachment is obsolete: true
Attachment #8676670 -
Flags: review+
Assignee | ||
Comment 19•9 years ago
|
||
Attachment #8676671 -
Flags: review+
Assignee | ||
Comment 20•9 years ago
|
||
Hi SC and Junior,
I'd like you to review it again. Thanks.
Attachment #8676672 -
Flags: review?(schien)
Attachment #8676672 -
Flags: review?(juhsu)
Comment 21•9 years ago
|
||
Comment on attachment 8676672 [details] [diff] [review]
Part3: Use adderss to create socketTransport - v4
Review of attachment 8676672 [details] [diff] [review]:
-----------------------------------------------------------------
lgtm
Attachment #8676672 -
Flags: review?(schien) → review+
Comment 22•9 years ago
|
||
Comment on attachment 8676672 [details] [diff] [review]
Part3: Use adderss to create socketTransport - v4
Review of attachment 8676672 [details] [diff] [review]:
-----------------------------------------------------------------
Please add r=schien,junior in commit log before check in.
Comment 23•9 years ago
|
||
I also noticed that the commit log in patch part 1 & 2 are not meaningful. Please reflect your intention in commit log more clearly before check in.
Flags: needinfo?(kechang)
Comment 24•9 years ago
|
||
Comment on attachment 8676672 [details] [diff] [review]
Part3: Use adderss to create socketTransport - v4
Review of attachment 8676672 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
Attachment #8676672 -
Flags: review?(juhsu) → review+
Assignee | ||
Comment 25•9 years ago
|
||
Update commit log.
Attachment #8676670 -
Attachment is obsolete: true
Flags: needinfo?(kechang)
Attachment #8676737 -
Flags: review+
Assignee | ||
Comment 26•9 years ago
|
||
Attachment #8676671 -
Attachment is obsolete: true
Attachment #8676739 -
Flags: review+
Assignee | ||
Comment 27•9 years ago
|
||
Carry reviewer's name.
Attachment #8676672 -
Attachment is obsolete: true
Attachment #8676741 -
Flags: review+
Assignee | ||
Comment 28•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 29•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e4d008a5c6ab
https://hg.mozilla.org/integration/mozilla-inbound/rev/b26934635fa1
https://hg.mozilla.org/integration/mozilla-inbound/rev/dd0747ee0782
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/e4d008a5c6ab
https://hg.mozilla.org/mozilla-central/rev/b26934635fa1
https://hg.mozilla.org/mozilla-central/rev/dd0747ee0782
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: FxOS-S9 (16Oct) → FxOS-S10 (30Oct)
You need to log in
before you can comment on or make changes to this bug.
Description
•