After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 489874 - Add Firefox plugin so iTunes podcast links are handled
Add Firefox plugin so iTunes podcast links are handled
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Podcast
unspecified
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on: 484768
Blocks:
 
 
Reported: 2007-10-24 17:24 UTC by Bastien Nocera
Modified: 2007-12-03 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rhythmbox-itms-plugin.cpp (6.32 KB, text/plain)
2007-10-25 16:45 UTC, Bastien Nocera
Details

Description Bastien Nocera 2007-10-24 17:24:30 UTC
See iTunesMozillaPluginDetected in http://ax.phobos.apple.com.edgesuite.net/detection/itmsCheck.js

Maybe this could go in epiphany instead.
Comment 1 Christian Persch 2007-10-24 17:47:34 UTC
I think it's more appropriate to put the plugin with the programme that will handle those links, not epiphany...

(BTW, their browser detection sucks, they check for "Firefox" directly. -> http://geckoisgecko.org/ )

Does that plugin have a JS API exposed to the web site, or how is it used?
Comment 2 Bastien Nocera 2007-10-24 18:27:14 UTC
(In reply to comment #1)
> I think it's more appropriate to put the plugin with the programme that will
> handle those links, not epiphany...
> 
> (BTW, their browser detection sucks, they check for "Firefox" directly. ->
> http://geckoisgecko.org/ )
> 
> Does that plugin have a JS API exposed to the web site, or how is it used?

Don't think so. I think it's just a way to see if iTunes is already installed on the computer. Not very important as you can override it anyway, clicking "Yes, I have iTunes"...
Comment 3 Christian Persch 2007-10-24 18:50:53 UTC
In that case it should be easy to create it: just copy epiphany/plugin/desktop-file/plugin.cpp and trim it down to almost nothing :)
The only thing required is probably giving it the expected name.
Comment 4 Reviczky Ádám János 2007-10-25 11:22:10 UTC
As Bastien requested (So, if you have a Windows machine with Firefox and iTunes installed, could you please attach the output (pertaining to iTunes) of "about:plugins" from Firefox to the bug?), here is what i get from firefox:

iTunes Application Detector

    File name: npitunes.dll
    iTunes Detector Plug-in

MIME Type 	Description 	Suffixes 	Enabled
application/itunes-plugin 	This plug-in detects the presence of iTunes when opening iTunes Store URLs in a web page with Firefox. 		Yes
Comment 5 Bastien Nocera 2007-10-25 16:45:14 UTC
Created attachment 97859 [details]
rhythmbox-itms-plugin.cpp

Trimmed down version of ephy's desktop plugin. Tested in ephy's build system, and works great!
Comment 6 Christian Persch 2007-10-25 17:57:11 UTC
Code looks fine to me :)
You can trim it a bit more I think, the mozilla_functions aren't needed anywhere.
Comment 7 James "Doc" Livingston 2007-11-25 06:53:15 UTC
This sounds good to me, and looks fine to commit with the appropriate build system bits.
Comment 8 Bastien Nocera 2007-11-25 18:17:44 UTC
(In reply to comment #7)
> This sounds good to me, and looks fine to commit with the appropriate build
> system bits.

Will do once the code in bug 484768 gets committed...
Comment 9 Bastien Nocera 2007-11-30 18:14:08 UTC
Proper patch now in bug 484768.
Comment 10 Bastien Nocera 2007-12-03 13:21:10 UTC
2007-12-03  Bastien Nocera  <hadess@hadess.net>

        * configure.ac:
        * podcast/Makefile.am:
        * podcast/plugin.symbols:
        * podcast/rhythmbox-itms-plugin.cpp: Add a Mozilla plugin
        to allow the iTMS pages to detect that we can handle itms:// URIs
        (Closes: #489874)