зеркало из https://github.com/mozilla/gecko-dev.git
Bug 900228 - fix "TypeError: this.selectedEditor.sourceEditor is null" in mochitest runs; r=dcamp
This commit is contained in:
Родитель
08f5a61aff
Коммит
941a886296
|
@ -149,7 +149,7 @@ StyleEditorUI.prototype = {
|
|||
*/
|
||||
_onStyleSheetsCleared: function() {
|
||||
// remember selected sheet and line number for next load
|
||||
if (this.selectedEditor) {
|
||||
if (this.selectedEditor && this.selectedEditor.sourceEditor) {
|
||||
let href = this.selectedEditor.styleSheet.href;
|
||||
let {line, col} = this.selectedEditor.sourceEditor.getCaretPosition();
|
||||
this.selectStyleSheet(href, line, col);
|
||||
|
|
Загрузка…
Ссылка в новой задаче