Closed
Bug 862539
Opened 13 years ago
Closed 12 years ago
moz prefix devicestorage
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: dougt, Assigned: smaug)
Details
Attachments
(3 files)
|
53.39 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
|
53.50 KB,
patch
|
Details | Diff | Splinter Review | |
|
20.09 KB,
patch
|
vingtetun
:
review+
|
Details | Diff | Splinter Review |
Currently we have two methods on navigator that are exposed to all web that are not prefixed:
http://mxr.mozilla.org/mozilla-central/source/dom/interfaces/devicestorage/nsIDOMNavigatorDeviceStorage.idl#15
Jonas, dhylans, and I agreed that we are not convinced that this API is *right* for the web and would like to make significant improvements to the API before it is unprefixed. Therefore, we agreed to prefix this API before it ship.
We should patch this on all mozilla branches including b2g18.
| Assignee | ||
Comment 1•13 years ago
|
||
Note, once the patch lands, gaia will be rather broken.
| Assignee | ||
Comment 2•13 years ago
|
||
Patch for trunk. Passes tests locally, but I could be missing something
https://tbpl.mozilla.org/?tree=Try&rev=7d57babb7fea
I have no idea how b2g tests are run. If they rely on gaia, I could imagine
them to be rather broken.
Attachment #738211 -
Flags: review?(doug.turner)
| Assignee | ||
Comment 3•13 years ago
|
||
| Assignee | ||
Comment 4•13 years ago
|
||
| Assignee | ||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Wouldn't that be better to simply have this API being exposed to only applications in B2G? I am not sure if it should be prefixed or not but it would matter less if the exposition is reduced.
| Assignee | ||
Comment 7•13 years ago
|
||
I don't know. I just did what dougt asked me to do :) I don't know all the reasons why the API is currently un-prefixed and should be now prefixed.
But we could move all the stuff to be in #ifdef #MOZ_B2G
Dougt?
Comment 8•13 years ago
|
||
I think we should move everything to MOZ_B2G and maybe we could also make the API not work (even not visible?) unless the running context is an application.
I believe that if we do that, prefixing or not would be a detail.
| Assignee | ||
Comment 9•13 years ago
|
||
Again, I don't know the details but I understood we want to actually remove the API soon.
So releasing it without prefix is kind of bad....but using prefix is bad too...
sicking, dougt, need some clarification here.
| Reporter | ||
Comment 10•13 years ago
|
||
we need these API on non-b2g for testing. :(
sicking, do you want to give up testing on desktop to be able to isolate this API only for b2g apps?
Flags: needinfo?(jonas)
Comment 11•13 years ago
|
||
Is it possible to pref-off by default on desktop and enable the pref in the test?
Comment 12•13 years ago
|
||
(In reply to Doug Turner (:dougt) from comment #10)
> we need these API on non-b2g for testing. :(
Why can't we test on B2G devices?
Comment 13•13 years ago
|
||
To me, it does not seem worthwhile to break Gaia in order to prefix. Also, it would be sad if we prefixed *anything* now that Blink has adopted a no-prefix policy citing Mozilla as precedent. I'd rather limit visibility to B2G apps unless pref has been set for testing elsewhere.
| Reporter | ||
Comment 14•13 years ago
|
||
Comment on attachment 738211 [details] [diff] [review]
patch
Review of attachment 738211 [details] [diff] [review]:
-----------------------------------------------------------------
I really think we should do this. And I think we should also disable devicestorage on non-b2g. sicking, why don't we do this now and update gaia immediately?
Attachment #738211 -
Flags: review?(doug.turner) → review?(jonas)
Comment on attachment 738211 [details] [diff] [review]
patch
Review of attachment 738211 [details] [diff] [review]:
-----------------------------------------------------------------
r=me as long as you also fix this in gaia too.
I agree we should do this sooner rather than later.
Attachment #738211 -
Flags: review?(jonas) → review+
Flags: needinfo?(jonas)
| Assignee | ||
Comment 16•13 years ago
|
||
Dougt said someone else will take care of gaia. I don't know who.
Flags: needinfo?(doug.turner)
Comment 18•13 years ago
|
||
Comment on attachment 748795 [details] [diff] [review]
gaia patch
mozR+.
Attachment #748795 -
Flags: review?(21) → review+
| Assignee | ||
Comment 20•13 years ago
|
||
baku, does that mean the patch to Gecko could land?
Comment 21•13 years ago
|
||
yes. We can land these 2 patches. Where are we going to land the gecko patch? b2g18?
I didn't test ALL the apps... if you don't mind we can land them in 5/6 hours, time to give additional testing.
| Assignee | ||
Comment 22•13 years ago
|
||
hmm, I'm not sure where this should land. Initial comment talks about b2g18, but are we really supposed to make this kind of major changes to that branch? Doug?
| Reporter | ||
Comment 23•12 years ago
|
||
sad, but we're too late for this.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
| Reporter | ||
Updated•12 years ago
|
Flags: needinfo?(doug.turner)
You need to log in
before you can comment on or make changes to this bug.
Description
•