aqbal / firefox-mac-pdf

Automatically exported from code.google.com/p/firefox-mac-pdf
0 stars 0 forks source link

Take the add-on from the past (Carbon era) into the present (Cocoa era) and thus make it 64bit capable #203

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
#What steps will reproduce the problem?
Install/use the add-on.
It is _not_ possible to install and run the add-on on a Firefox 4+ in default 
64bit mode. It is only possible to run it on Firefox 4+ 32bit. 

#What is the expected output? What do you see instead?
Per default Firefox runs in 64bit mode, if the system is able to.
So should the add-on.
User interaction is needed to run Firefox in 32bit mode. Many advantages of 
using Firefox in 64bit mode can't be used.

#Please use labels and text to provide additional information.

As I read the bugs, error messages and the comments here, the main cause of the 
problem is, that this add-on is written in Carbon code (Carbon: backwards 
looking to OS 9 and aimed as a transition way to Cocoa), which isn't able to 
use recent MacOSX APIs in 64bit mode. Only a Cocoa code base is able to use 
recent MacOSX APIs in 64bit mode as well as in 32bit mode. This roadmap to 
Cocoa is known since many years (~10 years?)! The transitional time window of 
Carbon era is closed. Cocoa/Cocoa-only is the present and the future.

Original issue reported on code.google.com by sie...@gmail.com on 23 May 2011 at 10:34

GoogleCodeExporter commented 8 years ago
do you have this confused with a different plugin? this plugin already uses PDF 
Kit, not 32bit Carbon APIs

Original comment by jpmhous...@gmail.com on 23 May 2011 at 3:25

GoogleCodeExporter commented 8 years ago
i shouldn't continue commenting if i don't know what i'm talking about, but see 
issue 198

Original comment by jpmhous...@gmail.com on 23 May 2011 at 3:44

GoogleCodeExporter commented 8 years ago
@ Comment #1:

And what are the error messages and comments in

Issue 179, Comment #c54
http://code.google.com/p/firefox-mac-pdf/issues/detail?id=179#c54

and

Issue 179, Comment #c56
http://code.google.com/p/firefox-mac-pdf/issues/detail?id=179#c56

and

Issue 179, Comment #c60
http://code.google.com/p/firefox-mac-pdf/issues/detail?id=179#c60

saying

<quote src="Issue 179#c54">
Errors generated in Console on attempting to load a PDF:
3/4/11 4:37:22 PM   plugin-container[49446] NPP_New(npp=0x1d183c4,mode=2,argc=5)
3/4/11 4:37:22 PM   [0x0-0xcd2cd2].org.mozilla.firefox[49431]   2011-03-04 
16:37:22.655 plugin-container[49446:903] NPP_New(npp=0x1d183c4,mode=2,argc=5)
3/4/11 4:37:22 PM   [0x0-0xcd2cd2].org.mozilla.firefox[49431]   Carbon event model 
not supported, can't create a plugin instance.
3/4/11 4:37:22 PM   [0x0-0xcd2cd2].org.mozilla.firefox[49431]   ###!!! 
[Child][RPCChannel] Error: Processing error: message was deserialized, but the 
handler returned false (indicating failure)
</quote>

<quote src="Issue 179#c56">
With that error it looks like it's because it's built using the carbon API's 
which are 32 bit only.  Not sure what it would take to create a cocoa version 
(which is the only way to do 64 bit).  Hope it won't take a complete rewrite of 
the core code but that seems likely.
</quote>

<quote src="Issue 179#c60">
In 32-bit Console says...
3/10/11 11:34:20 AM firefox-bin[2822]   NPP_New(npp=0x1d3a1558,mode=2,argc=5)
3/10/11 11:34:20 AM firefox-bin[2822]   firefox-mac-pdf: could not get PDF 
service 
In 64-bit Console says...
3/10/11 11:35:53 AM [0x0-0x38f38f].org.mozilla.firefox[2864]    2011-03-10 
11:35:53.788 plugin-container[2868:903] NPP_New(npp=0x1d46394,mode=2,argc=5)
3/10/11 11:35:53 AM [0x0-0x38f38f].org.mozilla.firefox[2864]    Carbon event model 
not supported, can't create a plugin instance.
</quote>

about and give a hint for, when saying "Carbon event model not supported, can't 
create a plugin instance"?

Original comment by sie...@gmail.com on 23 May 2011 at 3:56