Closed
Bug 815616
Opened 12 years ago
Closed 12 years ago
document.cookie is not being set on B2G and we can't access it
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: automatedtester, Unassigned)
References
Details
On B2G we can't access document.cookie from the browser and from inside an app.
If I run this and then click on the button then I dont get the alert to appear.
<!DOCTYPE html>
<body>
<button onclick="cookieInfo()">Cookies!!!!!</button>
<script>
document.cookie = "name=foo";
var cookieInfo = function () {
alert(document.cookie)
}
</script>
</body>
</html>
Comment 1•12 years ago
|
||
If the alert doesn't show at all, that doesn't mean that document.cookie is empty -- that means that the function is not running at all.
Comment 2•12 years ago
|
||
I just tested this in the b2g browser and it works fine for me.
Reporter | ||
Comment 3•12 years ago
|
||
:jlebar is this B2G desktop or is this on a device/emulator? I am currently getting the issue on the emulator and device. Just so I can check that I am on the right revision when did you last update?
Comment 4•12 years ago
|
||
I tested on the device itself by hosting the code on my laptop and visiting the site in the B2G browser. I don't know how to pull the gecko rev off the device, and unfortunately the machine I used to flash the phone is currently inoperable.
I flashed about a week ago.
Comment 6•12 years ago
|
||
Putting qawanted to investigate (I'll try to help David out as well).
Noming too - if this is happening, it definitely blocks.
Reporter | ||
Comment 7•12 years ago
|
||
very weird but it appears to be working now. Sorry for the false alarm
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: needinfo?(dburns)
Resolution: --- → WORKSFORME
Updated•12 years ago
|
blocking-basecamp: ? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•