Use link text for hints on formatting phone number URLs

NEW
Unassigned

Status

()

Firefox for iOS
Browser
3 years ago
3 years ago

People

(Reporter: hennes, Unassigned, Mentored)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
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
(Reporter)

Updated

3 years ago
Depends on: 1147912
Sounds like a decent bug that can be mentored.
Mentor: sarentz
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.