IRC Log Viewer » #firebreath » 2011-06-02

IRC Nick Time (GMT-7) Message
dougma 00:06 taxilian: IEventTarget
taxilian 00:06 dougma: excelent! this looks very promising
dougma: in fact, this may be very very easy to implement! I'm kinda excited to try it
dougma 00:06 alrighty!
taxilian 00:06 Hmm. now if I implement this interface it should just not get used on XP, correct? not going to be an issue with loading the DLL or anything?
dougma 00:06 nope...
taxilian 00:06 was pretty sure, but wanted to check
dougma 00:06 hardest part will be finding the classid i spose!
taxilian 00:06 you may be right about that
almost done with this proxy stuff
FireBreathBot 00:06 Commit 28d0473 on master by Richard Bateman: "FIREBREATH-28: Windows proxy detection implemented"
Commit da6dff9 on master by Richard Bateman: "FIREBREATH-28: Mac proxy detection implemented, X11 stubbed"
dougma 00:06 not sure if the brower will QI the plugin for this though... probably you query the site for the IEventTarget and then fire from there?
that's sounds like the IE way.
taxilian 00:06 hmm. then use dispatchEvent to fire the event?
that could be
hmm. however, this could be an interface that you can basically only use on other DOM elements
of course, we do have the dom element for our plugin
dougma 00:06 yeah... and it fires IDOMEvent s
interesting anyway though i'm not exactly sure where it fits
taxilian 00:06 right
worth tinkering
hmm. maybe I should tinker tomorrow, though; it's kinda late
dougma 00:06 ok, well i'm off now too. cheerio
taxilian 00:06 g'night
FireBreathBot 00:06 Commit 1a4883c on master by Richard Bateman: "FIREBREATH-28: Fixed X11 stub for proxy detection"
JIRA issue issue resolved by richard "NPN_GetAuthenticationInfo actually doesn't seem to apply to proxies -- just to getting HTTP auth ..."
JIRA issue issue commented by richard "Haven't seen any activity on this for awhile, but now that school is over I hope to have some tim..."
jshanab_wcw 08:06 What does the multiple mime type feature give me?
taxilian 09:06 jshanab_wcw: Well, it depends on whether you use it or not
But if you were to use it, it could give you the ability to have your plugin respond to multiple mimetypes
Also you could have each mimetype instantiate a different plugincore object
jshanab_wcw 09:06 So perhaps i could have two divs, each with a mime type and then draw in each div?
lxgreen 09:06 hi everyone, i'm a firebreath newbie, and i got a question -- is it possible to run my plugin automatically with browser startup? i mean without placing <object> on a web page
taxilian 10:06 jshanab_wcw: yeah, you could do that
jshanab_wcw 10:06 That will fit the bill perfectly. It is in 1.5 right ? ;-)
taxilian 10:06 1.4, actually
but you should still upgrade to 1.5 ;-)
jshanab_wcw 10:06 I was looking for some do or an example on the wiki,
(LOL, yeah 1.5, i know)
taxilian 10:06 nobody has documented that particular feature yet
there are only two groups that I know of that are using it in production
kalev is one
and his may not be in production yet, actually
jshanab_wcw 10:06 k, thanks.
taxilian 10:06 I can walk you through what you need to do; particularly if you might be willing to throw up some docs about it afterwords
jshanab_wcw 10:06 sure!
taxilian 10:06 so the first place to start is to look at the PluginConfig.cmake file for FBTestPlugin
because it actually supports two mimetypes
jshanab_wcw 10:06 It seems to do that with the registry? I thought FF had it's own mime registry
taxilian 10:06 FF's registry registration area includes a place where mimetypes are placed
but really it's not used
however, in order to support multiple mimetypes on IE you need multiple CLSIDs
which do have to go in the registry
and mappings from the mimetype to the clsid
jshanab_wcw 10:06 OK. So will the MMT work when I port to mac, i take it the mac has no registry
taxilian 10:06 on the Mac it comes from the bundle resources or the Info.plist file (depending on which browser you're on)
and yes, that's supported
even on linux it is supported
jshanab_wcw 10:06 So just need to figure out how to connect code to each mime type
taxilian 10:06 easy
go to Factory.cpp
!findfile Factory.cpp
FireBreathBot 10:06 Found 3 matching file(s) in the master branch. First 3 are:
taxilian 10:06 the FBTestPlugin one
notice that the createPlugin function accepts a mimetype parameter
so you just check to see which mimetype it is
and return the correct instance of a PluginCore object
jshanab_wcw 10:06 I see it. Nice. that means they are actually seperate instances? I want to share data between them. They should be on the same process...
taxilian 10:06 they are in the same process
they can be seperate instances or you could create instances of the same plugincore object and just pass the mimetype in so you can check it with a flag
jshanab_wcw 10:06 Seems like i could then go thru a globalpublic static map to instances to allow the plugin instancess to talk to each other.
taxilian 10:06 that's more or less how I did it
the trick is to figure out how best to connect two on the same page without getting instances on other pages as well
jshanab_wcw 11:06 Maybe the seerver generates an ID and the javascript passes it in. Is there more than one jsapi instance also?
taxilian 11:06 you can do it however you want
but I would make more than one JSAPI instance, yes
taxilian 11:06 !findfile COMJavascriptObject
FireBreathBot 11:06 Found 2 matching file(s) in the master branch. First 2 are:
taxilian 11:06 !find ActiveXBrowserHost
FireBreathBot 11:06 Found 3 possible matches. Displaying 3
/^ActiveXBrowserHost::ActiveXBrowserHost(IWebBrowser2 *doc, IOleClientSite* site)$/ (f) found in src/ActiveXCore/ActiveXBrowserHost.cpp:
/^ class ActiveXBrowserHost :$/ (c) found in src/ActiveXCore/ActiveXBrowserHost.h:
/^ typedef boost::shared_ptr<ActiveXBrowserHost> ActiveXBrowserHostPtr;$/ (t) found in src/ActiveXCore/FBControl.h:
FireBreathBot 12:06 JIRA issue issue created by wargloom
taxilian 12:06 !find win_common.h
FireBreathBot 12:06 Could not find any tags matching win_common.h
taxilian 12:06 !findfile win_common.h
FireBreathBot 12:06 Found 1 matching file(s) in the master branch. First 1 are:
sabotaged|wk 16:06 anyone know how to turn on NSZombieEnabled for browsers that spawn out of process plugin containers?
stuartmorgan 16:06 sabotaged|wk: you could try adding it to the plugin host bundle's plist under LSEnvironment; hacky since you have to modify another app's files on disk (and remember to change it back), but it should work
sabotaged|wk 16:06 ok i'll try that thanks
sabotaged|wk 18:06 (delayed response) well, for the record that didn't seem to work for safari. but adding ~/.MacOSX/environment.plist file with NSZombiesEnabled entry worked
can verify with return value of getenv("NSZombieEnabled")
stuartmorgan 19:06 sabotaged|wk: You added it to the webkit plugin host app bundle and it didn't work?
(i.e., /System/Library/Frameworks/WebKit.framework/