зеркало из https://github.com/mozilla/pjs.git
Fix bug 45786 - need to use getService(), not createInstance() to get the
clipboard. r=jelwell,rjc.
This commit is contained in:
Родитель
0583d7d8e7
Коммит
418358288d
|
@ -289,7 +289,7 @@ function doPaste()
|
|||
debug("Container status: " + ((isContainerFlag) ? "true" : "false"));
|
||||
|
||||
var clip_uri = "component://netscape/widget/clipboard";
|
||||
var clip = Components.classes[clip_uri].createInstance();
|
||||
var clip = Components.classes[clip_uri].getService();
|
||||
if (clip) clip = clip.QueryInterface(Components.interfaces.nsIClipboard);
|
||||
if (!clip) return false;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче