Bug 1460201 - Follow-up: remove use of nsISelectionPrivate in C-C. r=bz DONTBUILD

This commit is contained in:
aceman 2018-05-11 12:35:00 +02:00
Родитель 59e01d7797
Коммит e81f9942ca
3 изменённых файлов: 4 добавлений и 9 удалений

Просмотреть файл

@ -209,9 +209,7 @@
this.autoCopyEnabled = Services.clipboard.supportsSelectionClipboard() &&
Services.prefs.getBoolPref("clipboard.autocopy");
if (this.autoCopyEnabled) {
this.contentWindow.getSelection()
.QueryInterface(Ci.nsISelectionPrivate)
.addSelectionListener(this);
this.contentWindow.getSelection().addSelectionListener(this);
}
]]>
</body>
@ -222,9 +220,7 @@
<![CDATA[
this.contentWindow.controllers.removeController(this);
if (this.autoCopyEnabled) {
this.contentWindow.getSelection()
.QueryInterface(Ci.nsISelectionPrivate)
.removeSelectionListener(this);
this.contentWindow.getSelection().removeSelectionListener(this);
}
]]>
</body>

Просмотреть файл

@ -335,8 +335,7 @@ typeAheadFind.prototype = {
this.mSelection = editable.editor.selection;
else
this.mSelection = commandDispatcher.focusedWindow.getSelection();
this.mSelection.QueryInterface(Ci.nsISelectionPrivate)
.addSelectionListener(this);
this.mSelection.addSelectionListener(this);
return false;
},
startFind: function(aWindow, aLinks) {

Просмотреть файл

@ -49,7 +49,7 @@ function EditorTestSelection()
dump("Selection contains:\n");
// 3rd param = column to wrap
dump(selection.QueryInterface(Ci.nsISelectionPrivate)
dump(selection
.toStringWithFormat("text/plain",
kOutputFormatted | kOutputSelectionOnly,
0) + "\n");