Closed Bug 307997 Opened 19 years ago Closed 13 years ago

Windows shell32.dll functions cannot used by Gecko

Categories

(Core Graveyard :: Embedding: ActiveX Wrapper, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: alex.ehle, Unassigned)

Details

(Keywords: helpwanted)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6

Using the shellExecute function of the Windows shell32.dll ist not possible.
Try to use it result into a message that that oShell has no properties.
Creation of the object is obviously ok, but it is not possible to do anything
with it. IE-Code works fine. This is the code I used:

var commandtoRun = "C:\Program Files\OpenOffice.org 1.9.113\program\swriter.exe";
var commandParam = "";

if(window.GeckoActiveXObject) {
   // Mozilla/Firefox/Netscape
   var oShell = new GeckoActiveXObject("Shell.Application");
   oShell.ShellExecute(commandtoRun,commandParam,"","open","1");
   return true; }
else if(window.ActiveXObject) {
   // IE6
   var oShell = new ActiveXObject("Shell.Application");
   oShell.ShellExecute(commandtoRun,commandParam,"","open","1");
   return true; }
else {
   alert("No ActiveX-Support installed or available!");
   return false;
}

Reproducible: Always

Actual Results:  
Error-Message: "oShell has no properties"

Expected Results:  
Perform the shellExecute and start the defined executable.
Did you white list the control in
<http://lxr.mozilla.org/seamonkey/source/embedding/browser/activex/src/plugin/activex.js>
?
I make all neccesary settings in the activex.js. Found out that e.g.

var oShell = new GeckoActiveXObject("WScript.Shell");
oShell.Exec("C:\\Programme\\Internet Explorer\\IEXPLORE.EXE");

will work perfect. Seems that not all API-functions of Windows will
work. Some will do like the above.
Assignee: dbradley → adamlock
Status: UNCONFIRMED → NEW
Component: XPConnect → Embedding: ActiveX Wrapper
Ever confirmed: true
Keywords: helpwanted
QA Contact: pschwartau → dunn5557
QA Contact: dunn5557 → activex
The ActiveX embedding API was removed in bug 662023 and friends, making this INVALID.

[Filter bugspam on activexinvalid]
Assignee: adamlock → nobody
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.