Closed
Bug 667919
Opened 14 years ago
Closed 14 years ago
window.ondevicemotion and window.ondeviceorientation
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla6
Tracking | Status | |
---|---|---|
firefox6 | --- | fixed |
People
(Reporter: dougt, Assigned: dougt)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
8.42 KB,
patch
|
smaug
:
review+
asa
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
webkit is supporting ondevicemotion and ondeviceorientation on the window object. we should do similar for compatibility.
Assignee | ||
Comment 1•14 years ago
|
||
Assignee: nobody → doug.turner
Attachment #542491 -
Flags: review?(Olli.Pettay)
Comment 2•14 years ago
|
||
Comment on attachment 542491 [details] [diff] [review]
patch v.1
r=me if you add tests for this new feature.
Attachment #542491 -
Flags: review?(Olli.Pettay) → review+
Assignee | ||
Updated•14 years ago
|
Attachment #542491 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 3•14 years ago
|
||
Comment 4•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
Comment 5•14 years ago
|
||
Comment on attachment 542491 [details] [diff] [review]
patch v.1
Discussed in triage today - we didn't have dougt around so it might need a re-nom if we got it wrong, but it felt like straight-additive change which isn't what Aurora is for, and we didn't see a strong reason to rush this, given that it will hit aurora in next week's migration anyhow. Re-nom if needed.
Attachment #542491 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora-
Assignee | ||
Comment 6•14 years ago
|
||
Comment on attachment 542491 [details] [diff] [review]
patch v.1
Sorry -- I didn't include a reason or risk assestment:
basically this change is a alias from window.ondevicemotion --> addEventListener("devicemotion", ...
This is a simple patch which gets us access to more sites that support device motion and orientation. The iphone (and other webkits) use this style: window.onevent. We didn't implement it as it wasn't outlined in the spec, but, given website compat, we feel that it is important to us.
So, if we take this small change, we get device motion functionality on sites that work on the iphone. If we don't, it will appear broken for a few more weeks.
Ideally, this device motion (which has landed for ff6) could be a high level feature -- we are now supporting the new w3c spec. However, without this aliasing that I mentioned, it might appear broken to many users.
The risk is low. There are tests to ensure that the events fire. The patch is modeled after a similar alias we did for onhashchange.
Attachment #542491 -
Flags: approval-mozilla-aurora- → approval-mozilla-aurora?
Comment 7•14 years ago
|
||
Comment on attachment 542491 [details] [diff] [review]
patch v.1
From the jaws of defeat!! Thanks for the more detailed information Doug. We have reversed ourselves.
Attachment #542491 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 8•14 years ago
|
||
status-firefox6:
--- → fixed
Assignee | ||
Comment 9•14 years ago
|
||
merge failed. backing out, will reland tonight.
Assignee | ||
Updated•14 years ago
|
status-firefox6:
fixed → ---
Assignee | ||
Comment 10•14 years ago
|
||
backout changeset: http://hg.mozilla.org/releases/mozilla-aurora/rev/130934a607ae
Assignee | ||
Comment 11•14 years ago
|
||
status-firefox6:
--- → fixed
Keywords: dev-doc-needed
Comment 12•14 years ago
|
||
This is landed into Firefox 6, so target is mozilla6.
Target Milestone: mozilla7 → mozilla6
Comment 13•13 years ago
|
||
Documentation added:
https://developer.mozilla.org/en/DOM/window.ondevicemotion
https://developer.mozilla.org/en/DOM/window.ondeviceorientation
And mentioned on Firefox 7 for developers.
Still a work in progress in that I need to add examples, which are coming. I'm working on the event docs, which will cover examples. That's being tracked by the doc needed for bug 615597, so I'm marking this one as done.
Keywords: dev-doc-needed → dev-doc-complete
Updated•12 years ago
|
Component: DOM: Other → DOM
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•