зеркало из https://github.com/mozilla/pjs.git
Bug 659910 - Evaluating console.log or other API messages in Scratchpad presents wrong source link in web console. r=rcampbell,gavin
This commit is contained in:
Родитель
39d64df7e6
Коммит
449bd172d1
|
@ -5655,6 +5655,13 @@ ConsoleUtils = {
|
|||
|
||||
// Make the location clickable.
|
||||
locationNode.addEventListener("click", function() {
|
||||
if (aSourceURL == "Scratchpad") {
|
||||
let win = Services.wm.getMostRecentWindow("devtools:scratchpad");
|
||||
if (win) {
|
||||
win.focus();
|
||||
}
|
||||
return;
|
||||
}
|
||||
let viewSourceUtils = aDocument.defaultView.gViewSourceUtils;
|
||||
viewSourceUtils.viewSource(aSourceURL, null, aDocument, aSourceLine);
|
||||
}, true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче