Closed
Bug 190971
Opened 22 years ago
Closed 22 years ago
DDE control with WWW_OpenURL always opens a new window
Categories
(SeaMonkey :: UI Design, defect)
Tracking
(Not tracked)
People
(Reporter: geisj, Assigned: law)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 I am using the command line -remote feature on linux no problem. I am trying to find a way to remote control mozilla under windows. I have found DDE and have had limited success. My question comes from the fact that under IE using the DDE topic WWW_OpenURL it opens the URL in the same window it does not open a new window. Under mozilla the WWW_OpenURL always opens a new window. I am looking for a way to open a different URL in the same window. I tried the WWW_ShowURL but I get errors on that as it is possible not supported? I dont know. I have tried to find documentation on this and have not found anything. Again, my quest is to find a way to tell mozilla to load a new url just like the -remote does under unix. I am close but not quite. I am not sure this is a bug - but the behaviour is different than IE so I thought someone would like to know. I put my code in the addition info. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: opens a new window with WWW_OpenURL and IE does not under windows. Expected Results: I was expecting a way to either use WWW_OpenURL or WWW_ShowURl from DDE to control mozilla. /****************************************************************** ** int SendBrowserCommand(char *command_ptr) ** ** Return TRUE on error and FALSE if no error. ** where command_ptr is something like www.cnn.com *****************************************************************/ int SendBrowserCommand(char *command_ptr) { DWORD dwDDEInst = 0; HSZ service; HSZ topic; HCONV hconv; static started_service = FALSE; /* initialize DDEML */ if(DdeInitialize(&dwDDEInst, DDECallback, CBF_FAIL_ALLSVRXACTIONS, 0) != DMLERR_NO_ERROR) { return(TRUE); } /* initiate a conversation */ //service = DdeCreateStringHandle(dwDDEInst, "IExplore", CP_WINANSI); service = DdeCreateStringHandle(dwDDEInst, "mozilla", CP_WINANSI); topic = DdeCreateStringHandle(dwDDEInst, "WWW_OpenURL", CP_WINANSI); hconv = DdeConnect(dwDDEInst, service, topic, NULL); DdeFreeStringHandle(dwDDEInst, service); DdeFreeStringHandle(dwDDEInst, topic); if(!hconv) { return(TRUE); } // possible use and XTYP_REQUEST and XTP_EXECUTE DdeClientTransaction((void *)command_ptr, (DWORD) ascii_strlen(command_ptr), hconv, 0, 0, XTYP_EXECUTE, 5000, NULL); DdeDisconnect(hconv); DdeUninitialize(dwDDEInst); return(FALSE);
Comment 2•22 years ago
|
||
I believe this has been changed to open in an existing window since 1.2.1...
.
Assignee: rods → jaggernaut
Component: X-remote → XP Apps
OS: Linux → Windows 98
QA Contact: blizzard → paw
*** This bug has been marked as a duplicate of 92156 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•