mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 900228 - fix "TypeError: this.selectedEditor.sourceEditor is null" in mochitest runs; r=dcamp
This commit is contained in:
parent
80fa8cef4f
commit
204ad78052
@ -149,7 +149,7 @@ StyleEditorUI.prototype = {
|
|||||||
*/
|
*/
|
||||||
_onStyleSheetsCleared: function() {
|
_onStyleSheetsCleared: function() {
|
||||||
// remember selected sheet and line number for next load
|
// 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 href = this.selectedEditor.styleSheet.href;
|
||||||
let {line, col} = this.selectedEditor.sourceEditor.getCaretPosition();
|
let {line, col} = this.selectedEditor.sourceEditor.getCaretPosition();
|
||||||
this.selectStyleSheet(href, line, col);
|
this.selectStyleSheet(href, line, col);
|
||||||
|
Loading…
Reference in New Issue
Block a user