[SCM] WebKit Debian packaging branch, webkit-1.3, updated. upstream/1.3.7-4207-g178b198

caseq at chromium.org caseq at chromium.org
Sun Feb 20 22:52:11 UTC 2011


The following commit has been merged in the webkit-1.3 branch:
commit b61d94f75e486e3171c6ec13c1beeec66ee708ea
Author: caseq at chromium.org <caseq at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Jan 12 20:07:53 2011 +0000

    2011-01-12  Andrey Kosyakov  <caseq at chromium.org>
    
            Reviewed by Pavel Feldman.
    
            Web Inspector: cookie table is multiplied after repeated switching to cookies tab in network item view
            Only create cookiesTable is it hasn't been done yet.
            https://bugs.webkit.org/show_bug.cgi?id=52303
    
            * inspector/front-end/ResourceCookiesView.js:
            (WebInspector.ResourceCookiesView.prototype.show):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75629 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 74ed237..f9a313e 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,14 @@
+2011-01-12  Andrey Kosyakov  <caseq at chromium.org>
+
+        Reviewed by Pavel Feldman.
+
+        Web Inspector: cookie table is multiplied after repeated switching to cookies tab in network item view
+        Only create cookiesTable is it hasn't been done yet.
+        https://bugs.webkit.org/show_bug.cgi?id=52303
+
+        * inspector/front-end/ResourceCookiesView.js:
+        (WebInspector.ResourceCookiesView.prototype.show):
+
 2011-01-12  Koan-Sin Tan  <koansin.tan at gmail.com>
 
         Reviewed by Martin Robinson.
diff --git a/Source/WebCore/inspector/front-end/ResourceCookiesView.js b/Source/WebCore/inspector/front-end/ResourceCookiesView.js
index e419070..b60b1b6 100644
--- a/Source/WebCore/inspector/front-end/ResourceCookiesView.js
+++ b/Source/WebCore/inspector/front-end/ResourceCookiesView.js
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2011 Google Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -56,10 +56,12 @@ WebInspector.ResourceCookiesView.prototype = {
         if (this._emptyMsgElement)
             this._emptyMsgElement.parentElement.removeChild(this._emptyMsgElement);
 
-        this._cookiesTable = new WebInspector.CookiesTable(null, true, true);
-        this._cookiesTable.addCookiesFolder(WebInspector.UIString("Request Cookies"), this._resource.requestCookies);
-        this._cookiesTable.addCookiesFolder(WebInspector.UIString("Response Cookies"), this._resource.responseCookies);
-        this.element.appendChild(this._cookiesTable.element);
+        if (!this._cookiesTable) {
+            this._cookiesTable = new WebInspector.CookiesTable(null, true, true);
+            this._cookiesTable.addCookiesFolder(WebInspector.UIString("Request Cookies"), this._resource.requestCookies);
+            this._cookiesTable.addCookiesFolder(WebInspector.UIString("Response Cookies"), this._resource.responseCookies);
+            this.element.appendChild(this._cookiesTable.element);
+        }
 
         WebInspector.View.prototype.show.call(this, parentElement);
         this._cookiesTable.updateWidths();

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list