On Thursday, December 5, 2013 9:13:56 AM UTC+1, Jan Jongboom wrote:
> Cool, thanks. I figured it would be something like that.
> 
> 
> 
> 
> 
> On Wed, Dec 4, 2013 at 9:58 PM, Fabrice Desré <[email protected]> wrote:
> 
> 
> 
> > On 12/04/2013 08:50 AM, Jan Jongboom wrote:
> 
> > > I'm trying to copy some stuff from a frame script, so I do:
> 
> > >
> 
> > > let clipboard = Components.classes["@
> 
> > mozilla.org/widget/clipboardhelper;1"]
> 
> > >
> 
> >  .getService(Components.interfaces.nsIClipboardHelper);
> 
> > >
> 
> > > But it throws
> 
> > >
> 
> > > TypeError: Components.classes['@mozilla.org/widget/clipboardhelper;1']
> 
> > is undefined
> 
> > >
> 
> > > So I think something is not loaded, anyone any idea what?
> 
> >
> 
> > It looks like we don't have clipboard code in b2g widgetry at all. Look
> 
> > at Android:
> 
> >
> 
> > https://mxr.mozilla.org/mozilla-central/source/widget/android/nsWidgetFactory.cpp#93
> 
> > and gonk:
> 
> >
> 
> > https://mxr.mozilla.org/mozilla-central/source/widget/gonk/nsWidgetFactory.cpp#93
> 
> >
> 
> > It looks simple enough to add it since clipboard code lives in xpwidgets:
> 
> > https://mxr.mozilla.org/mozilla-central/ident?i=nsClipboardHelper
> 
> >
> 
> >         Fabrice
> 
> > --
> 
> > Fabrice Desré
> 
> > b2g team
> 
> > Mozilla Corporation
> 
> >

FYI, here is the tracking bug + patch: 
https://bugzilla.mozilla.org/show_bug.cgi?id=946646
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to