| Index: third_party/WebKit/Source/devtools/front_end/common/StaticContentProvider.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/common/StaticContentProvider.js b/third_party/WebKit/Source/devtools/front_end/common/StaticContentProvider.js
|
| index 7403bb85738b3f922c819a190c04c41a41c91b62..07bfc7eb68f97b806f0e2b181fd4e4d508f38268 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/common/StaticContentProvider.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/common/StaticContentProvider.js
|
| @@ -9,7 +9,7 @@ Common.StaticContentProvider = class {
|
| /**
|
| * @param {string} contentURL
|
| * @param {!Common.ResourceType} contentType
|
| - * @param {function():!Promise<string>} lazyContent
|
| + * @param {function():!Promise<?string>} lazyContent
|
| */
|
| constructor(contentURL, contentType, lazyContent) {
|
| this._contentURL = contentURL;
|
| @@ -61,9 +61,13 @@ Common.StaticContentProvider = class {
|
| */
|
| searchInContent(query, caseSensitive, isRegex, callback) {
|
| /**
|
| - * @param {string} content
|
| + * @param {?string} content
|
| */
|
| function performSearch(content) {
|
| + if (!content) {
|
| + callback(/** @type {!Array<!Common.ContentProvider.SearchMatch>} */ ([]));
|
| + return;
|
| + }
|
| callback(Common.ContentProvider.performSearchInContent(content, query, caseSensitive, isRegex));
|
| }
|
|
|
|
|