IRC Log Viewer » #firebreath » 2015-10-14

IRC Nick Time (GMT-7) Message
Enkindler 10:10 In one of the examples you sent me, you use a FWJS = window.FireWyrmJS
and then you do a window.pluginFactory = new FWJS(wyrmhole)
taxilian 10:10 yes
yes
Enkindler 10:10 meaning that the plugin is actually instansiated in pluginFactory yes?
taxilian 10:10 yes
yes
Enkindler 10:10 instantiated*
so the calling to the plugin would go with the pluginFactory.wyrmhole.sendMessage?
so the calling to the plugin would go with the pluginFactory.wyrmhole.sendMessage?
taxilian 10:10 internally, but you don't worry about that
this might help; it's the code we use to instantiate ours: https://gist.github.com/taxilian/601f23e3de34dc0dce2e
you're going to do pluginFactory.create("application/x-mymimetypethingy", {arg1, arg2, arg3}).then(function(pluginObj) { /* from now on we can use the pluginObj like the plugin object tag more or less */ }, function(err) { /* error handler })
Enkindler 10:10 Basically, I have to create the plugin everytime i want to do a call?
and the args become my params equivalent yes?
taxilian 10:10 no, you create the plugin once and then use it
and the params are actually key:value, equiv of having <param> tags
the pluginObj should be pretty darn close to a direct replacement for using your current plugin through the object tag
Enkindler 10:10 Alright, let me see if I can manage something with this...
Enkindler 14:10 what do inp mean inside the window[callbackFn] = function(inp)?
taxilian 14:10 I'm afk for a bit
Enkindler 14:10 Very well, no pressure!..
taxilian 14:10 okay, I'm back; I'm not sure where that code is, so I don't know
can you find it in github and give me a link?
Enkindler 15:10 https://gist.github.com/taxilian/601f23e3de34dc0dce2e
The one you sent me...
The one you sent me...
line 30
also, you use a_.Deferred... I suppose that's an internal object of yours?
taxilian 15:10 oh, that's just the callback
yes, _.Deferred is just a jquery deferred object; don't really recommend them, but that's what we built that project with
Enkindler 15:10 yea, i know that. but the var inp itself, what does it reference (as a name)?
taxilian 15:10 so inp is just the object which is passed in through the callback which can be used to create the wyrmhole and such
input
I wasn't sure what to call it =]
not my best name ever
Enkindler 15:10 Ohhhh.... That... For a minute i thought it was something like InstalledPlugin or something...
taxilian 15:10 nope
nothing so useful or descriptive =]
Raz__ 16:10 Hello. We are popping a notifications alert using npapi fireBreath. It works fine on Chrome and firefox, but on safari, ever since we upgraded to safari 9, we are unable to click any of the buttons in the alert's html. It allows to drag and drop, but not click. Is there a solution to that?
taxilian 16:10 I haven't encountered the issue (we don't use mouse events) so I couldn't say
it could be that there is a difference in how things are layered in Safari or it could be that Safari isn't passing events the same way
I'd try stripping it down to the most basic example html page you can, then if that doesn't help try a test plugin with the most basic stuff you can get
also try adding logs and/or setting breakpoints in the event code and see if the event is coming through in an unusual way
also try adding logs and/or setting breakpoints in the event code and see if the event is coming through in an unusual way
Raz__ 16:10 I tried to add a log message inside the click function. It was never called. It looks like the events are never fired.
I tried to add a log message inside the click function. It was never called. It looks like the events are never fired.
taxilian 16:10 make sure you add it at the source, not just in your plugin
make sure you add it at the source, not just in your plugin
it could be a change that breaks the abstraction somehow
it could be a change that breaks the abstraction somehow
Raz__ 16:10 I did. Usually, when an element is clickable, the cursor changes to a pointer. That is not the case here. It's like some element is covering the body and preventing from clicking.
taxilian 16:10 interesting
interesting
what drawing model are you using?
what drawing model are you using?
Raz__ 16:10 I am not sure
taxilian 16:10 worth checking
worth checking
Raz__ 16:10 What are the different types?
taxilian 16:10 event model could be cocoa or carbon (though carbon isn't supported on anything anymore AFAIK) and drawing can be CG, CA, or ICA
Raz__ 16:10 Thanks Taxilian. I admit, I am not sure. I am trying to debug the issue and find a solution, but I did not write the plugin. Can I get back to you when I have the answer? Do you by any chance can tell me what combo will work best for Safari?
taxilian 16:10 I honestly don't know
I honestly don't know
was just going to brainstorm with you
I'm generally around, though sometimes I don't notice messages here. ping me (i.e. mention my nick) to get my attention if I'm not responding. sometimes I'm just not at my desk
Raz__ 16:10 I see. Ok. when the guy who wrote the plugin is back at the office, we will contact you. I appreciate your help.
taxilian 16:10 good luck
Raz__ 16:10 Thanks :)