Web Inspector: Show Resource Initiator in Network Tab detail views
[WebKit-https.git] / Source / WebInspectorUI / ChangeLog
index 97c277f..0042ac8 100644 (file)
@@ -1,3 +1,37 @@
+2019-03-28  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: Show Resource Initiator in Network Tab detail views
+        https://bugs.webkit.org/show_bug.cgi?id=196316
+        <rdar://problem/49352679>
+
+        Reviewed by Devin Rousso.
+
+        * UserInterface/Controllers/NetworkManager.js:
+        (WI.NetworkManager.prototype.resourceRequestWillBeSent):
+        (WI.NetworkManager.prototype.resourceRequestWasServedFromMemoryCache):
+        (WI.NetworkManager.prototype._initiatorCallFramesFromPayload):
+        Initialize call frames from the initiator payload.
+
+        * UserInterface/Models/Resource.js:
+        (WI.Resource.prototype.get initiatorCallFrames):
+        Initialization and accessor.
+
+        * UserInterface/Views/CallFrameTreeElement.js:
+        (WI.CallFrameTreeElement):
+        Selecting a native element won't do anything so just don't allow selection.
+
+        * UserInterface/Views/ResourceHeadersContentView.css:
+        (.resource-headers .go-to-link):
+        (.resource-headers .call-stack):
+        (.resource-headers .call-stack:hover):
+        (@media (prefers-color-scheme: dark)):
+        * UserInterface/Views/ResourceHeadersContentView.js:
+        (WI.ResourceHeadersContentView):
+        (WI.ResourceHeadersContentView.prototype.hidden):
+        (WI.ResourceHeadersContentView.prototype._refreshSummarySection):
+        Add an "Initiator" line in the summary with a way to view the whole
+        initiator backtrace if one exists.
+
 2019-03-26  Devin Rousso  <drousso@apple.com>
 
         Web Inspector: Sources: fix typo in CSS selector to always show add breakpoint button