Closed
Bug 782391
Opened 12 years ago
Closed 12 years ago
device storage - Watch should also go through the permission prompt.
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: dougt, Assigned: dougt)
Details
Attachments
(1 file)
2.46 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
We were not checking to the result of Allow(). Instead, we always sent back watch state changes.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → doug.turner
Attachment #651509 -
Flags: review?(jonas)
Comment on attachment 651509 [details] [diff] [review] patch v.1 Review of attachment 651509 [details] [diff] [review]: ----------------------------------------------------------------- Shouldn't we also trigger the prompt when someone registers as an event listener?
Assignee | ||
Comment 3•12 years ago
|
||
yup, that happens now in nsDOMDeviceStorage::AddEventListener(). The problem was we'd prompt and never care about what the result was -- we'd just went ahead and send the change event to all listeners.
Comment on attachment 651509 [details] [diff] [review] patch v.1 Review of attachment 651509 [details] [diff] [review]: ----------------------------------------------------------------- Ok. Please make sure that the prompt also happens when the onchange property is set, rather than when addEventListener is called.
Attachment #651509 -
Flags: review?(jonas) → review+
Assignee | ||
Comment 5•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/13efbdf35a8b
Comment 6•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/13efbdf35a8b
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Comment 7•12 years ago
|
||
Tabs :(
You need to log in
before you can comment on or make changes to this bug.
Description
•