{"id":15,"date":"2004-07-08T15:25:23","date_gmt":"2004-07-08T22:25:23","guid":{"rendered":"\/?p=15"},"modified":"2004-07-08T15:25:23","modified_gmt":"2004-07-08T22:25:23","slug":"using-firefoxexe-as-an-out-of-process-server-for-the-mozilla-activex-control","status":"publish","type":"post","link":"https:\/\/benjamin.smedbergs.us\/blog\/2004-07-08\/using-firefoxexe-as-an-out-of-process-server-for-the-mozilla-activex-control\/","title":{"rendered":"Using firefox.exe as an out-of-process server for the Mozilla ActiveX control"},"content":{"rendered":"<p>I had an epiphany the other day, and I haven&#8217;t had time to explore every niggly little detail. So I am proposing a challenge for some enterprising hacker: make firefox.exe an out-of-process COM server for the mozilla activeX control.<\/p>\n<p>Then, once it&#8217;s working, have the control register itself as a full-page handler for the text\/xml, application\/xhtml+xml, and application\/vnd.mozilla.xul+xml mime types. This would allow IE to seamlessly\/silently display XHTML and XUL content using the (much more powerful and standards-compliant) gecko rendering engine. Note: this would not replace the default IE HTML rendering engine, which is possible if you hack the IE binary or the windows registry, but isn&#8217;t a &#8220;good thing&#8221;.<\/p>\n<p>I don&#8217;t have the time\/energy to actually code this, at least not for a decent while, but I would happy to give detailed assistance to an enterprising hacker: what&#8217;s involved is basically calling CoRegisterClassObject during the bootstrap process (somewhere in nsAppRunner.cpp or nsNativeAppSupportWin.cpp). It&#8217;s likely that the <a href=\"http:\/\/lxr.mozilla.org\/mozilla\/source\/embedding\/browser\/activex\/src\/control\/\">existing activex control code<\/a> can be used almost unchanged, but you would probably need to excise some of the custom profile-handling code. There&#8217;s a little bit of COM magic needed to inform the appshellservice that it shouldn&#8217;t shut down until all embedded instances have gone away, in addition to ordinary XUL\/browser windows.<\/p>\n<p>Note: I haven&#8217;t talked to Adam Lock about this yet&#8230; I just posted on the spur of the moment. If somebody wants to make this happen, we definitely need to talk with him.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had an epiphany the other day, and I haven&#8217;t had time to explore every niggly little detail. So I am proposing a challenge for some enterprising hacker: make firefox.exe an out-of-process COM server for the mozilla activeX control. Then, once it&#8217;s working, have the control register itself as a full-page handler for the text\/xml, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-mozilla"],"_links":{"self":[{"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":0,"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"wp:attachment":[{"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}