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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js

Issue 2186753002: [DevTools] Track URL through the target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: InspectedURLChanged now sends target and not just URL 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 if (request && request.resourceType() === WebInspector.resourceTypes.XHR ) { 592 if (request && request.resourceType() === WebInspector.resourceTypes.XHR ) {
593 contextMenu.appendSeparator(); 593 contextMenu.appendSeparator();
594 contextMenu.appendItem(WebInspector.UIString("Replay XHR"), request. replayXHR.bind(request)); 594 contextMenu.appendItem(WebInspector.UIString("Replay XHR"), request. replayXHR.bind(request));
595 } 595 }
596 596
597 contextMenu.show(); 597 contextMenu.show();
598 }, 598 },
599 599
600 _saveConsole: function() 600 _saveConsole: function()
601 { 601 {
602 var filename = String.sprintf("%s-%d.log", WebInspector.targetManager.in spectedPageDomain(), Date.now()); 602 var target = WebInspector.context.flavor(WebInspector.ExecutionContext). target();
dgozman 2016/07/27 20:24:23 Use mainTarget.
eostroukhov-old 2016/07/27 21:39:46 Done. I just wanted to be smart here :)
603 var filename = String.sprintf("%s-%d.log", target.inspectedDomain(), Dat e.now());
603 var stream = new WebInspector.FileOutputStream(); 604 var stream = new WebInspector.FileOutputStream();
604 605
605 var progressIndicator = new WebInspector.ProgressIndicator(); 606 var progressIndicator = new WebInspector.ProgressIndicator();
606 progressIndicator.setTitle(WebInspector.UIString("Writing file…")); 607 progressIndicator.setTitle(WebInspector.UIString("Writing file…"));
607 progressIndicator.setTotalWork(this.itemCount()); 608 progressIndicator.setTotalWork(this.itemCount());
608 609
609 /** @const */ 610 /** @const */
610 var chunkSize = 350; 611 var chunkSize = 350;
611 var messageIndex = 0; 612 var messageIndex = 0;
612 613
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 return true; 1339 return true;
1339 } 1340 }
1340 return false; 1341 return false;
1341 } 1342 }
1342 } 1343 }
1343 1344
1344 /** 1345 /**
1345 * @typedef {{messageIndex: number, matchIndex: number}} 1346 * @typedef {{messageIndex: number, matchIndex: number}}
1346 */ 1347 */
1347 WebInspector.ConsoleView.RegexMatchRange; 1348 WebInspector.ConsoleView.RegexMatchRange;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698