Closed Bug 514411 Opened 16 years ago Closed 7 years ago

Register Prism with built-in js-functions as Mailto-Handler per User

Categories

(Mozilla Labs :: Prism, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: michael.groene, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729) Build Identifier: 1.0b2 I'm trying to register my webmail-app to handle mailto-Links. The Problem seems to be, that our security policy doesn't allow to write in HKEY_LOCAL_MACHINE (monitored with regmon; result is "ACCESS FORBIDDEN". So I need to register the Mailto-Handler in the userprofile: HKEY_CURRENT_USER\Software\Classes\mailto\* instead HKEY_LOCAL_MACHINE\Classes\mailto\* (also see Additional Information) When I register Prism in my Userprofile and then clicking a mailto:-Link, the Prism-Application will be started, but something will go wrong and I get an error in the Error-Console of Prism: Error: [Exception... "Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]" nsresult: "0x804b000a (NS_ERROR_MALFORMED_URI)" location: "JS frame :: file:///C:/Dokumente%20und%20Einstellungen/username/Eigene%20Dateien/prism/prism_distr/components/nsPlatformGlue.js :: newURI :: line 140" data: no] Source File: file:///C:/Dokumente%20und%20Einstellungen/username/Eigene%20Dateien/prism/prism_distr/components/nsPlatformGlue.js Line: 140 Prism will be focused, but nothing further happens. Reproducible: Always Actual Results: Nothing but errors Expected Results: Compose-Form should be loaded Prism should register itself not globally, but for the loggedin user. ------------------- Export of Prism-generated registry-entries with Admin-Rights -------------- [HKEY_CLASSES_ROOT\mailto] "EditFlags"="2" "URL Protocol"="" [HKEY_CLASSES_ROOT\mailto\shell] [HKEY_CLASSES_ROOT\mailto\shell\open] [HKEY_CLASSES_ROOT\mailto\shell\open\command] @="\"C:\\Dokumente und Einstellungen\\username\\Eigene Dateien\\prism\\prism_distr\\prism.exe\" -webapp \"horde@01092009.date\" -url \"%1\"" [HKEY_CLASSES_ROOT\mailto\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\mailto\shell\open\ddeexec\Application] @="Prism" [HKEY_CLASSES_ROOT\mailto\shell\open\ddeexec\Topic] @="WWW_OpenURL" ------------------- Changed to the "per-user-Entries" -------------- [HKEY_CURRENT_USER\Software\Classes\mailto] "EditFlags"="2" "URL Protocol"="" [HKEY_CURRENT_USER\Software\Classes\mailto\shell] [HKEY_CURRENT_USER\Software\Classes\mailto\shell\open] [HKEY_CURRENT_USER\Software\Classes\mailto\shell\open\command] @="\"C:\\Dokumente und Einstellungen\\username\\Eigene Dateien\\prism\\prism_distr\\prism.exe\" -webapp \"horde@01092009.date\" -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\mailto\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\mailto\shell\open\ddeexec\Application] @="Prism" [HKEY_CURRENT_USER\Software\Classes\mailto\shell\open\ddeexec\Topic] @="WWW_OpenURL"
I found out, that when I use my own Registry-File (the one writing in CURRENT_USER) the problem is, that Prism doesn't know about that. So I need a mailto-uri in the profiles' prefs.js: user_pref("prism.protocol.mailto", "http://xyz.local/?url=http://xyz.local/imp/compose.php?to=%s"); Is it possible to add this by javascript within the webapp?
You can set the preference using the corresponding XPCOM APIs. See https://developer.mozilla.org/en/Code_snippets/Preferences for more information.
Prism isn't maintained anymore. Mass closing of the bugs.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.