Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js

Issue 2204803002: [Devtools] Preview view in network should always show data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [Devtools] Preview view in network should always Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js b/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
index 1a4f90811e064009d25b906eb56849a91c2ee317..a316ec37b3998595b8294d609638079f1f38e944 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
@@ -55,17 +55,20 @@ WebInspector.RequestPreviewView.prototype = {
delete this._emptyWidget;
}
- if (!this._previewView)
+ if (!this._previewView) {
this._createPreviewView(handlePreviewView.bind(this));
- else
+ } else {
this.innerView = this._previewView;
+ handlePreviewView.call(this, this.innerView);
+ }
}
/**
* @param {!WebInspector.Widget} view
* @this {WebInspector.RequestPreviewView}
*/
- function handlePreviewView(view) {
+ function handlePreviewView(view)
+ {
this._previewView = view;
this._previewView.show(this.element);
if (this._previewView instanceof WebInspector.View) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698