OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } | 71 } |
72 | 72 |
73 get _gotCookies() { | 73 get _gotCookies() { |
74 return (this._request.requestCookies && this._request.requestCookies.length)
|| | 74 return (this._request.requestCookies && this._request.requestCookies.length)
|| |
75 (this._request.responseCookies && this._request.responseCookies.length); | 75 (this._request.responseCookies && this._request.responseCookies.length); |
76 } | 76 } |
77 | 77 |
78 _buildCookiesTable() { | 78 _buildCookiesTable() { |
79 this.detachChildWidgets(); | 79 this.detachChildWidgets(); |
80 | 80 |
81 this._cookiesTable = new Components.CookiesTable(true); | 81 this._cookiesTable = new CookieTable.CookiesTable(true); |
82 this._cookiesTable.setCookieFolders([ | 82 this._cookiesTable.setCookieFolders([ |
83 {folderName: Common.UIString('Request Cookies'), cookies: this._request.re
questCookies}, | 83 {folderName: Common.UIString('Request Cookies'), cookies: this._request.re
questCookies}, |
84 {folderName: Common.UIString('Response Cookies'), cookies: this._request.r
esponseCookies} | 84 {folderName: Common.UIString('Response Cookies'), cookies: this._request.r
esponseCookies} |
85 ]); | 85 ]); |
86 this._cookiesTable.show(this.element); | 86 this._cookiesTable.show(this.element); |
87 } | 87 } |
88 | 88 |
89 _refreshCookies() { | 89 _refreshCookies() { |
90 delete this._cookiesTable; | 90 delete this._cookiesTable; |
91 if (!this._gotCookies || !this.isShowing()) | 91 if (!this._gotCookies || !this.isShowing()) |
92 return; | 92 return; |
93 this._buildCookiesTable(); | 93 this._buildCookiesTable(); |
94 } | 94 } |
95 }; | 95 }; |
OLD | NEW |