Closed
Bug 510424
Opened 16 years ago
Closed 16 years ago
Geolocation notification does not show requester of location for file:// URLs
Categories
(Core :: DOM: Geolocation, defect)
Core
DOM: Geolocation
Tracking
()
RESOLVED
FIXED
People
(Reporter: MattN, Assigned: mmcnicklebugs)
Details
Attachments
(1 file)
|
2.78 KB,
patch
|
dougt
:
review+
Gavin
:
review+
beltzner
:
ui-review+
|
Details | Diff | Splinter Review |
When requesting a location from a file URL, the notification says " wants to know your location.", omitting the portion where the requesting domain would show. The sentence is incomplete without the prefix so we should indicate that a local file is requesting your location.
Expected Result:
"A local file wants to know your location."
OR
display the file name (but this would allow people to make filenames that spoof domains (ie. a file named maps.google.com). We could use the text "The file myfile.htm wants to know your location."
| Assignee | ||
Comment 1•16 years ago
|
||
Fixes the case where the file:// scheme is used. Will show a message like:
"The file /path/to/file wants to know your location."
Are there other potential schemes where this problem could arise?
Attachment #394512 -
Flags: review?(doug.turner)
Updated•16 years ago
|
Attachment #394512 -
Flags: review?(gavin.sharp)
Attachment #394512 -
Flags: review?(doug.turner)
Attachment #394512 -
Flags: review+
Comment 2•16 years ago
|
||
i like it!. just want to get gavin to also look at it too.
Comment 3•16 years ago
|
||
Martin, as you mentioned in the fennec bug, |path| might be pretty long. Lets let Mike think about this too.
Updated•16 years ago
|
Attachment #394512 -
Flags: ui-review?(beltzner)
Comment 4•16 years ago
|
||
Comment on attachment 394512 [details] [diff] [review]
Prompt now shows filename if requesting URI uses the file:// scheme
See bug 510565 comment 2 - same comments apply here.
Attachment #394512 -
Flags: review?(gavin.sharp) → review+
Comment 5•16 years ago
|
||
Comment on attachment 394512 [details] [diff] [review]
Prompt now shows filename if requesting URI uses the file:// scheme
I guess this is OK, and it mirrors the web approach. I'm trying to think through use cases beyond testing where this might come up, though.
In the future, I think we'll want to do something better about messaging things like this, but let's not block on the perfect idea I'm dreaming up in my head :)
Attachment #394512 -
Flags: ui-review?(beltzner) → ui-review+
Comment 6•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Assignee: nobody → mmcnicklebugs
You need to log in
before you can comment on or make changes to this bug.
Description
•