Title: [244829] branches/safari-607-branch/Source/WebInspectorUI
Revision
244829
Author
[email protected]
Date
2019-05-01 10:36:40 -0700 (Wed, 01 May 2019)

Log Message

Cherry-pick r242772. rdar://problem/50352729

    Web Inspector: REGRESSION: Network Cookies Table does not load
    https://bugs.webkit.org/show_bug.cgi?id=195599

    Patch by Joseph Pecoraro <[email protected]> on 2019-03-11
    Reviewed by Devin Rousso.

    * UserInterface/Views/ResourceCookiesContentView.js:
    (WI.ResourceCookiesContentView.prototype.tableIndexForRepresentedObject):
    (WI.ResourceCookiesContentView.prototype.tableRepresentedObjectForIndex):
    Include needed delegate methods.

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242772 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-607-branch/Source/WebInspectorUI/ChangeLog (244828 => 244829)


--- branches/safari-607-branch/Source/WebInspectorUI/ChangeLog	2019-05-01 17:33:03 UTC (rev 244828)
+++ branches/safari-607-branch/Source/WebInspectorUI/ChangeLog	2019-05-01 17:36:40 UTC (rev 244829)
@@ -1,3 +1,32 @@
+2019-04-30  Alan Coon  <[email protected]>
+
+        Cherry-pick r242772. rdar://problem/50352729
+
+    Web Inspector: REGRESSION: Network Cookies Table does not load
+    https://bugs.webkit.org/show_bug.cgi?id=195599
+    
+    Patch by Joseph Pecoraro <[email protected]> on 2019-03-11
+    Reviewed by Devin Rousso.
+    
+    * UserInterface/Views/ResourceCookiesContentView.js:
+    (WI.ResourceCookiesContentView.prototype.tableIndexForRepresentedObject):
+    (WI.ResourceCookiesContentView.prototype.tableRepresentedObjectForIndex):
+    Include needed delegate methods.
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-03-11  Joseph Pecoraro  <[email protected]>
+
+            Web Inspector: REGRESSION: Network Cookies Table does not load
+            https://bugs.webkit.org/show_bug.cgi?id=195599
+
+            Reviewed by Devin Rousso.
+
+            * UserInterface/Views/ResourceCookiesContentView.js:
+            (WI.ResourceCookiesContentView.prototype.tableIndexForRepresentedObject):
+            (WI.ResourceCookiesContentView.prototype.tableRepresentedObjectForIndex):
+            Include needed delegate methods.
+
 2019-04-24  Alan Coon  <[email protected]>
 
         Revert r244173. rdar://problem/28160396

Modified: branches/safari-607-branch/Source/WebInspectorUI/UserInterface/Views/ResourceCookiesContentView.js (244828 => 244829)


--- branches/safari-607-branch/Source/WebInspectorUI/UserInterface/Views/ResourceCookiesContentView.js	2019-05-01 17:33:03 UTC (rev 244828)
+++ branches/safari-607-branch/Source/WebInspectorUI/UserInterface/Views/ResourceCookiesContentView.js	2019-05-01 17:36:40 UTC (rev 244829)
@@ -56,6 +56,21 @@
         table.reloadData();
     }
 
+    tableIndexForRepresentedObject(table, object)
+    {
+        let cookies = this._dataSourceForTable(table);
+        let index = cookies.indexOf(object);
+        console.assert(index >= 0);
+        return index;
+    }
+
+    tableRepresentedObjectForIndex(table, index)
+    {
+        let cookies = this._dataSourceForTable(table);
+        console.assert(index >= 0 && index < cookies.length);
+        return cookies[index];
+    }
+
     // Table delegate
 
     tableShouldSelectRow(table, cell, column, rowIndex)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to