Bug 1460201 - Follow-up: remove use of nsISelectionPrivate in C-C. r=bz DONTBUILD
This commit is contained in:
Родитель
59e01d7797
Коммит
e81f9942ca
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче