Closed
Bug 172716
Opened 22 years ago
Closed 22 years ago
Browse button launches blank page
Categories
(SeaMonkey :: Composer, defect)
SeaMonkey
Composer
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: bugzilla, Assigned: jag+mozilla)
References
Details
(Keywords: regression, smoketest, Whiteboard: [adt3])
Attachments
(1 file, 1 obsolete file)
2.31 KB,
patch
|
cmanske
:
review+
dveditz
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
found using 2002.10.04 commercial trunk builds on linux rh7.2 and mac 10.2.1.
1. open a file in composer.
2. click the Browse button in the toolbar.
results: the resulting browser window is blank.
no js console output, unfortunately.
Reporter | ||
Updated•22 years ago
|
Keywords: nsbeta1,
regression
Reporter | ||
Comment 1•22 years ago
|
||
kathy, pls do reassign as needed. thanks!
Reporter | ||
Comment 2•22 years ago
|
||
whups, forgot to turn on the js/chrome debug pref for the profile i was using.
after that, i did get the following js console output after clicking the Browse
button:
Error: window.arguments[0].split is not a function
Source File: chrome://navigator/content/navigator.js
Line: 500
relevant or not?
Comment 3•22 years ago
|
||
The Browse button works fine for me in Win98-SE, Mozilla 1.2alpha.
Updated•22 years ago
|
Whiteboard: EDITORBASE
Comment 4•22 years ago
|
||
This is a regression caused by jag's checkin for bug 118835 (or so it would appear).
Assignee | ||
Comment 5•22 years ago
|
||
I have a patch, let me attach it here.
Fix is simple, composer was depending on navigator stringifying the object that
was passed in.
Assignee | ||
Comment 6•22 years ago
|
||
Reporter | ||
Comment 7•22 years ago
|
||
*** Bug 173183 has been marked as a duplicate of this bug. ***
Comment 8•22 years ago
|
||
Actually, Composer generally uses "GetDocumentUrl()" (which gets the url string
from the document) instead of "window.location" or "window.location.href" This
command seems to be the only user of the "window.location..." pattern. Sorry!
Please test using "GetDocumentUrl()" instead. It seems to work for me.
Comment 9•22 years ago
|
||
Hmmm. But now I see that we are comparing to "browser._content.location.href"
when trying to find an existing browser window with the url we are previewing.
I wonder if it's safer to use "window.location.href" in these circumstances?
Comment 10•22 years ago
|
||
Comment on attachment 102092 [details] [diff] [review]
Fix composer to give browser a string object, make browser stringify incoming objects just in case
r=brade
I think it's fine to use window._content.location.href for this place; plus it
will be more consistent if this needs to land on the 1.0 branch
Attachment #102092 -
Flags: review+
Assignee | ||
Comment 11•22 years ago
|
||
Attachment #102092 -
Attachment is obsolete: true
Comment 12•22 years ago
|
||
Comment on attachment 102186 [details] [diff] [review]
Use GetDocumentUrl and getBrowser().currentURI.spec instead
r=cmanske
Attachment #102186 -
Flags: review+
Comment 13•22 years ago
|
||
Comment on attachment 102186 [details] [diff] [review]
Use GetDocumentUrl and getBrowser().currentURI.spec instead
>+ var uriArray = ("" + window.arguments[0]).split('\n'); // stringify and split
window.arguments[0].toString().split() would have looked prettier, but I'm fine
with this.
sr=dveditz
Attachment #102186 -
Flags: superreview+
Comment 14•22 years ago
|
||
-->jag since this is his patch
Jag--did this fix also land on the 1.0x branch to fix the problem there?
Assignee: brade → jaggernaut
Comment 15•22 years ago
|
||
Nav triage team: nsbeta1+/adt3
Assignee | ||
Comment 16•22 years ago
|
||
Doh, yes, this made it onto the branch. It must've slipped my mind for the
trunk, I thought I had checked it in but bonsai says otherwise.
I'll try and get it in.
Updated•22 years ago
|
Attachment #102186 -
Flags: approval+
Comment 17•22 years ago
|
||
Comment on attachment 102186 [details] [diff] [review]
Use GetDocumentUrl and getBrowser().currentURI.spec instead
a=asa for checkin to 1.2 (on behalf of drivers).
Comment 18•22 years ago
|
||
This is fixed on win XP branch build 2002102209, linux branch build 2002102207
and Mac OS X branch build 2002102105, adding verified1.0.2 keyword
Keywords: verified1.0.2
Comment 19•22 years ago
|
||
*** Bug 175519 has been marked as a duplicate of this bug. ***
Comment 20•22 years ago
|
||
Removing EDITORBASE, does not match the criteria for editorbase.
Whiteboard: [adt3] EDITORBASE → [adt3]
Reporter | ||
Comment 21•22 years ago
|
||
looks like this has already been checked in on the trunk (at least with a 10/29
build). marking resolved --but do reopen if there are other things remaining to
be done here!
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•