Skip to content

Commit 6177ade

Browse files
Nancy LiDevtools-frontend LUCI CQ
authored andcommitted
[RPP] Rebuild the timeline data after the ignore list is changed
Fixed: 376021345 Change-Id: I4e513e18c2cbcadac9aafc0158d4e7194c5abe9f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5971495 Commit-Queue: Nancy Li <[email protected]> Reviewed-by: Jack Franklin <[email protected]>
1 parent 7771e3e commit 6177ade

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

front_end/panels/timeline/TimelineFlameChartDataProvider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,15 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
283283
if (Utils.IgnoreList.isIgnoreListedEntry(entry)) {
284284
contextMenu.defaultSection().appendItem(i18nString(UIStrings.removeScriptFromIgnoreList), () => {
285285
Bindings.IgnoreListManager.IgnoreListManager.instance().unIgnoreListURL(url);
286+
this.timelineData(/* rebuild= */ true);
286287
this.dispatchEventToListeners(Events.DATA_CHANGED);
287288
}, {
288289
jslogContext: 'remove-from-ignore-list',
289290
});
290291
} else {
291292
contextMenu.defaultSection().appendItem(i18nString(UIStrings.addScriptToIgnoreList), () => {
292293
Bindings.IgnoreListManager.IgnoreListManager.instance().ignoreListURL(url);
294+
this.timelineData(/* rebuild= */ true);
293295
this.dispatchEventToListeners(Events.DATA_CHANGED);
294296
}, {
295297
jslogContext: 'add-to-ignore-list',

0 commit comments

Comments
 (0)