Results being returned for getCookies not showing in Chrome UI though.
This commit is contained in:
Родитель
27c9fe60c0
Коммит
76fdd2e35e
|
@ -59,7 +59,7 @@ module F12.Proxy {
|
||||||
if (request) {
|
if (request) {
|
||||||
var methodParts = request.method.split(".");
|
var methodParts = request.method.split(".");
|
||||||
|
|
||||||
//browser.document.parentWindow.alert(e.data);
|
// browser.document.parentWindow.alert(e.data);
|
||||||
|
|
||||||
switch (methodParts[0]) {
|
switch (methodParts[0]) {
|
||||||
case "Runtime":
|
case "Runtime":
|
||||||
|
|
|
@ -23,7 +23,12 @@ module F12.Proxy {
|
||||||
this.value = msCookie && msCookie.value || "unknown";
|
this.value = msCookie && msCookie.value || "unknown";
|
||||||
this.domain = msCookie && msCookie.domain || "unknown";
|
this.domain = msCookie && msCookie.domain || "unknown";
|
||||||
this.path = msCookie && msCookie.path || "unknown";
|
this.path = msCookie && msCookie.path || "unknown";
|
||||||
this.expires = msCookie && msCookie.expires && msCookie.expires.toDateString() || "unknown";
|
// Calling toString on the expires for a session cookie will result in unspecified error
|
||||||
|
if (msCookie && msCookie.session) {
|
||||||
|
this.expires = "";
|
||||||
|
} else {
|
||||||
|
this.expires = msCookie.expires && msCookie.expires.toString() || "unknown";
|
||||||
|
}
|
||||||
if (msCookie) {
|
if (msCookie) {
|
||||||
// Rough approximation of size as IE doesn't report the actual size
|
// Rough approximation of size as IE doesn't report the actual size
|
||||||
this.size = msCookie.name.length + msCookie.value.length;
|
this.size = msCookie.name.length + msCookie.value.length;
|
||||||
|
@ -53,7 +58,7 @@ module F12.Proxy {
|
||||||
|
|
||||||
processedResult = {
|
processedResult = {
|
||||||
result: {
|
result: {
|
||||||
coookies: webkitCookies
|
cookies: webkitCookies
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче