Closed
Bug 69521
Opened 24 years ago
Closed 23 years ago
First launch of browser ignoring URI
Categories
(Core Graveyard :: Cmd-line Features, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: moz_user, Assigned: law)
Details
Attachments
(2 files)
775 bytes,
patch
|
Details | Diff | Splinter Review | |
1.33 KB,
patch
|
Details | Diff | Splinter Review |
From Bugzilla Helper: User-Agent: Mozilla/4.72 [en] (X11; U; Linux 2.4.0-test10 i686) BuildID: Build ID 20010207 First launch of browser opens to the "browser.startup.page" instead of the uri specified in the window.openDialog() arguments. Reproducible: Always Steps to Reproduce: 1.Launch the following xul 2.Click on the launch button 3.Browser opens to www.mozilla.org 4.Close browser window 5.Click on launch button a second time 6.Browser opens to www.google.com Actual Results: At step 3, browser opens to www.mozilla.org (start page) Expected Results: At step 3, expect browser to open to www.google.com FYI: This broke between build IDs 20010206 and 20010207. Sample XUL with problem ----------------------- <?xml version="1.0"?> <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?> <window id="fooWindow" title="browser launch test" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" orient="vertical" > <box orient="vertical" flex="1"> <spring style="height:20px;"/> <button class="top" value="launch browser" onclick="window.openDialog('chrome://navigator/content/', '_blank', 'chrome,dialog=no,all', 'http://www.google.com');"/> <spring style="height:20px;"/> </box> </window>
Reporter | ||
Comment 1•24 years ago
|
||
Problem introduced by patch for bug #65993.
Reporter | ||
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
What happens when you do something like: ./mozilla -chrome chrome://navigator/content/sample.xul http://slashdot.org/ When you then open the browser window, does it go to Slashdot, or does it go to the page you specified? I think it would be better to check for arguments[0], and if that's not defined, then fall back on the command line url or default url.
Reporter | ||
Comment 4•24 years ago
|
||
The example you gave goes to www.slashdot.com on launch but I'm trying to launch a browser from an already open window. That's where the problem actually lies.
Comment 5•24 years ago
|
||
Right, I understood that. So I was wondering what happens when you open the browser from an already open window, where that browser is the first one opened in this session.
Assignee: asa → law
Component: Browser-General → XP Apps: Cmd-line Features
QA Contact: doronr → sairuh
Reporter | ||
Comment 7•24 years ago
|
||
For a test case, I added the button element from my example to the browser's toolbar and then did the following: 1. ./mozilla -chrome chrome://navigator/content/ http://www.yahoo.com 2. clicked on "launch browser" button 3. a new browser window was opened with the correct URL 4. closed all windows 5. ./mozilla (which will use the startPage preference) 6. clicked on "launch browser" button 7. a new browser window was opened with the correct URL Is this the behavior you were questioning? It appears to work just fine. Just run into problems when a non-browser window attempts to use window.openDialog to get a browser open to a specific URL.
Comment 8•24 years ago
|
||
Right. My point was that if I take your sample xul there, save it in chrome/comm/content/navigator/sample.xul and do something like: ./mozilla -chrome chrome://navigator/content/sample.xul http://nieuw.nl/ Then click the button from sample.xul to launch the browser, it will start the browser with http://nieuw.nl/ instead of http://www.google.com/. So your patch is only a partial fix, and if I recall correctly I put that code you're removing there because if you do something like: ./mozilla --profile jag http://nieuw.nl/ the URL isn't passed in through window.arguments[0] and I'll need to get it myself. Nice mess huh :-) I think I have a short-term solution, let me test that, and I'll have to talk to some people for a long-term solution.
Comment 9•24 years ago
|
||
Comment 10•24 years ago
|
||
See also bug 61121, "Navigator doesn't go to home page on first startup".
Comment 11•23 years ago
|
||
Becki, did this patch fix things for you?
Reporter | ||
Comment 12•23 years ago
|
||
I tried the 02/21/01 patch and YES, it did fix the problem I was seeing. Thanks for taking care of that!! Much appreciated!
Comment 13•23 years ago
|
||
this sounds right to me sr=alecf for now
Comment 14•23 years ago
|
||
alecf recently checked in a patch which kinda did this. Is your bug fixed for you?
Reporter | ||
Comment 15•23 years ago
|
||
Tested with the latest navigator.js (-r1.352) and it appears that, one way or another, the problem I was having got fixed.
Comment 16•23 years ago
|
||
Becki, I've just checked in a small rewrite of the way urls are opened in the browser, could you check if this is still fixed for you with a build from after 16:30 pm PDT July 22nd? If so, please mark this bug fixed.
Reporter | ||
Comment 17•23 years ago
|
||
Retested with Linux nightly build 7/23/2001 (-r1.354 navigator.js) and things are still working. Thanks for all your efforts at resolving this bug. :) Marking bug as "Fixed"
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•