Title: [253229] trunk/Source/WebInspectorUI
- Revision
- 253229
- Author
- [email protected]
- Date
- 2019-12-06 16:04:45 -0800 (Fri, 06 Dec 2019)
Log Message
Web Inspector: REGRESSION(r252652): Local Overrides: creating a local override for a resource loaded before Web Inspector was opened shows NaN for the Status Code
https://bugs.webkit.org/show_bug.cgi?id=204965
Reviewed by Joseph Pecoraro.
* UserInterface/Views/LocalResourceOverridePopover.js:
(WI.LocalResourceOverridePopover.prototype.show):
Make sure to update the object that holds the resource's original data in addition to the
object that holds the current edited values.
Drive-by: update the popover once all of the `CodeMirror`s have updated to hide scrollbars.
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (253228 => 253229)
--- trunk/Source/WebInspectorUI/ChangeLog 2019-12-06 23:56:34 UTC (rev 253228)
+++ trunk/Source/WebInspectorUI/ChangeLog 2019-12-07 00:04:45 UTC (rev 253229)
@@ -1,3 +1,16 @@
+2019-12-06 Devin Rousso <[email protected]>
+
+ Web Inspector: REGRESSION(r252652): Local Overrides: creating a local override for a resource loaded before Web Inspector was opened shows NaN for the Status Code
+ https://bugs.webkit.org/show_bug.cgi?id=204965
+
+ Reviewed by Joseph Pecoraro.
+
+ * UserInterface/Views/LocalResourceOverridePopover.js:
+ (WI.LocalResourceOverridePopover.prototype.show):
+ Make sure to update the object that holds the resource's original data in addition to the
+ object that holds the current edited values.
+ Drive-by: update the popover once all of the `CodeMirror`s have updated to hide scrollbars.
+
2019-11-25 Brian Burg <[email protected]>
Web Inspector: TabActivity diagnostic event should sample the active tab uniformly
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/LocalResourceOverridePopover.js (253228 => 253229)
--- trunk/Source/WebInspectorUI/UserInterface/Views/LocalResourceOverridePopover.js 2019-12-06 23:56:34 UTC (rev 253228)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/LocalResourceOverridePopover.js 2019-12-07 00:04:45 UTC (rev 253229)
@@ -131,12 +131,19 @@
if (!data.url)
data.url = ""
+
if (!data.mimeType)
data.mimeType = "text/_javascript_";
- if (!data.statusCode || data.statusCode === "NaN")
+
+ if (!data.statusCode || data.statusCode === "NaN") {
data.statusCode = "200";
- if (!data.statusText)
+ resourceData.statusCode = undefined;
+ }
+
+ if (!data.statusText) {
data.statusText = WI.HTTPUtilities.statusTextForStatusCode(parseInt(data.statusCode));
+ resourceData.statusText = undefined;
+ }
let responseHeaders = localResource ? localResource.responseHeaders : {};
@@ -382,6 +389,8 @@
this._urlCodeMirror.focus();
this._urlCodeMirror.setCursor(this._urlCodeMirror.lineCount(), 0);
+
+ this.update();
});
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes