New issue
Advanced search Search tips

Issue 598186 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature



Sign in to add a comment

Take the DNS API out of experimental

Reported by hey....@gmail.com, Mar 27 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36

Steps to reproduce the problem:
Many extensions need to access the ip address corresponding to the current tab's url. To do that, we currently need to use webRequest. It has the following drawbacks:

1. can't use event page anymore
2. need to manually cache and invalidate requests
3. won't get any ip until there was some requests made
4. when domain resolves to multiple ip addresses, only one is returned

#3 is especially serious, since when the extension is firstly installed, we won't be able to get the ip address of existing pages until they're refreshed.

What is the expected behavior?

What went wrong?
It would be great if chrome could expose all ip address for the current tab in the tab api

WebStore page: 

Did this work before? N/A 

Chrome version: 49.0.2623.87  Channel: n/a
OS Version: OS X 10.11.4
Flash Version: Shockwave Flash 21.0 r0

I'm not sure if this is the right place to submit feature request (because the form doesn't seem to fit a feature request). If not, sorry for spamming, and please let me know where should i send it.
 

Comment 1 by rob@robwu.nl, Mar 27 2016

Labels: -Type-Bug -OS-Mac OS-All Type-Feature
Status: Untriaged (was: Unconfirmed)
"can't use event page any more" -> issue 447270 aims to change this.

"Many extensions need to access the ip address corresponding to the current tab's url." - what are the use cases, and why is it absolutely necessary to have an API that lists the IP addresses in the current tab? I don't think that the list of IP addresses is separately stored per tab.

And you're mixing tab and tab URL. Which of the two do you mean? I think that it is meaningless to offer the "IP addresses in the tab", but somehow getting access to the (cached) DNS results (e.g. as visible in chrome://net-internals/#dns ) might be useful. But again, that is not specific to a tab.

Comment 2 by hey....@gmail.com, Mar 28 2016

Sorry for the confusion, every time i said "tab", i meant "tab URL".

Good to hear there is #447270, but it still doesn't solve #3.

A cached DNS resolver is a good idea. I think Firefox has that.
Cc: rdevlin....@chromium.org catmulli...@chromium.org lazyboy@chromium.org
Labels: -Pri-2 Pri-3
Status: Available (was: Untriaged)
Summary: Take the DNS API out of experimental (was: Expose tab IP addresses)
We already provide the chrome.tabs API that can get you the URLs of all tabs and fires events when they change, so the remaining thing needed is a DNS resolving API. It turns out we implemented an experimental one but never launched it to stable; instead it's experimental and only available on chrome dev/canary channels. So I'm changing the title of this bug to be "Take the DNS API out of experimental", with the expectation that there may or may not be changes required to the API to get it into a form we'd be happy releasing and supporting. 

I can't recall what the remaining issues were preventing us from launching it - IIRC we first implemented it because the (apps-only) chrome.sockets API initially only supported ip addresses, so you needed a way to do DNS resolution, but we changed the sockets API to take hostnames as well as ip addresses. We may have not launched it just due to relatively low amounts developer interest. 

Anyhow, the current experimental implementation is mostly in these files:

extensions/common/api/dns.idl
extensions/browser/api/dns/dns_api.h
extensions/browser/api/dns/dns_api.cc

in case someone wants to try and take on launching this API to stable. 


Project Member

Comment 4 by sheriffbot@chromium.org, Jul 10 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Owner: rdevlin....@chromium.org
Status: Assigned (was: Untriaged)
Assigning to Devlin. Devlin: What's the status of this API? It seems it is enabled just on Dev but whitelisted on Stable for something called CCD. 
Cc: -catmulli...@chromium.org

Sign in to add a comment