Bug 1372595 - Return cookie expiry timestamp; r=whimboo
The expires property on nsICookie2 does not exist and we are
consequently returning it as undefined, which gets omitted in the JSON
serialisation to the client.
This patch changes it to return the correct property so that the expiry
property is returned as part of the serialised cookie.
MozReview-Commit-ID: IIjf4NWnUoQ
--- a/testing/marionette/cookie.js
+++ b/testing/marionette/cookie.js
@@ -171,15 +171,15 @@ cookie.iter = function* (host, currentPa
isForCurrentPath(cookie.path)) {
yield {
"name": cookie.name,
"value": cookie.value,
"path": cookie.path,
"domain": cookie.host,
"secure": cookie.isSecure,
"httpOnly": cookie.isHttpOnly,
- "expiry": cookie.expires,
+ "expiry": cookie.expiry,
};
}
hostname = hostname.replace(/^.*?\./, "");
} while (hostname.indexOf(".") != -1);
}
};