Closed Bug 1228732 Opened 9 years ago Closed 5 years ago

Use link text for hints on formatting phone number URLs

Categories

(Firefox for iOS :: Browser, defect)

Other
iOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: johannesmarbach, Unassigned, Mentored)

References

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:42.0) Gecko/20100101 Firefox/42.0
Build ID: 20151029151421

Steps to reproduce:

Find a page with a call link where the phone number in the URL contains the country code but the link text doesn't (e.g. https://www.otto.de/kontakt). Tap the call link.


Actual results:

The popup displays the formatted number from the URL (once 1147912 lands) which will contain the country code.


Expected results:

When the link text doesn't contain the country code, it should not be displayed in the popup unless we expect the user to be in a different country.

We could for instance extract the link text by injecting Javascript into the webview (see [1]) and then parse it the same way we parse the URL.

[1] http://stackoverflow.com/questions/33841385/wkwebview-get-title-of-selected-link
Depends on: 1147912
Sounds like a decent bug that can be mentored.
Mentor: sarentz
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.