Closed Bug 140959 Opened 22 years ago Closed 22 years ago

Browse button does not work after using it second time

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0.1

People

(Reporter: dslmichael, Assigned: cmanske)

References

Details

(Keywords: regression, Whiteboard: [adt2 RTM][fixed in branch],custrtm-)

Attachments

(1 file, 1 obsolete file)

If you publish via FTP without filling in the "HTTP address to browse to:"
field, and then click on the Browse button, you will see an about:blank page.

Steps to reproduce:
1. Launch Composer
2. Type some text
3. Publish the page via FTP without filling in the "HTTP address to browse to:"
field.
4. Click on the Browse button on the toolbar.

Actual results:
Blank page displayed, with about:blank in the URL bar.

Expected results:
I would expect that the page I just created would be published.

Reproduced on the 04-29 trunk.  04-28 1.0.0 branch appears to be working fine.
I can't reproduce this. I'm wondering if the page actually published correctly.
Where are you publishing to?
What is the url of the page after you publish? After publishing, look in "Format,
Page Title and Properties" to view the url.
Yes, the page is publishing fine.  If I go into the browser, and manually
navigate to the page, it is there.

The URL of the page after publish is
ftp://user1@poochie.office.aol.com/sites/index.html.  Which is exactly what I
would expect it to be.  
When you published, was your password saved in Password Manager (checkbox was 
checked in Publish dialog and you supplied password there)?
Whatever you did before for password, try the opposite. E.g., if you supplied it,
don't now and uncheck the "Save..." checkbox.
I am seeing this problem whether I save the password or not.  

When I save the password, the FTP url flashes in the URL bar briefly before
about:blank is displayed.

When I do not save the password, the FTP url flashes briefly in the URL bar,
then about:blank is displayed, and finally the password box comes up asking me
for the password.  When I enter the password, the page does not change to the
actual page, and about:blank is still displayed.
Ahhh! Now I'm seeing this bug. The very first time I used "Browser" after 
starting Composer and publishing a page, the Browse command works.
But if I make further changes to page, then used it, I see the url appear very
briefly in Browser's URL input field, but then it changes to "about:blank:"
In debug output window, I see this error:
"Error loading URL ftp://jivamedia.com@ftp.jivamedia.com/test.html : 804b0002"
This was working fine not too long ago.
Status: NEW → ASSIGNED
Keywords: nsbeta1, regression
Whiteboard: [adt2]
Target Milestone: --- → mozilla1.0
Looks to me as though this was first broken on the 04-28 trunk build.  The 04-27
trunk build appears to me to be working.

Hope this helps.
Keywords: nsbeta1, regression
Whiteboard: [adt2]
Target Milestone: mozilla1.0 → ---
So to test, be sure to 
1. publish once
2. Use Browse button to load into Browser.
3. Close that browser window.
4. Use Browse button again.
Keywords: nsbeta1, regression
Whiteboard: [adt2]
Target Milestone: --- → mozilla1.0
Attached patch patch v1 (obsolete) — Splinter Review
Fix is to not try to reload URL with "bypass cache" flags after we just 
created a new browser window with the URL to preview. The problem only occurs
in that case; maybe the cause is some timing issue because we are trying to 
reload the url before initial load is finished?
While this problem was probably caused by a recent checkin, this fix makes 
sense for these reasons:
1. You must have saved or published the document from Composer before you are
allowed to preview contents in browser, thus when you create a new browser
with that url, it always gets the newest version of the page. I tested this
with cache pref settings set to both "Every Time" and "Never". Thus there's 
no need to try to reload the url again.
2. All cases when you find an existing browser with the url we are editing are
still found and the BrowserReloadSkipCache() still works fine for reloading 
the page to show newly edited content.
CC'ing Darin and Adam: Do you know any recent checkins that might make
BrowserReloadSkipCache() fail if browser window is in the process of loading
that URL? That behavior doesn't sound bad, but it was the cause of this bug so I
just curious why that behavior changed.
Whiteboard: [adt2] → [adt2][FIX IN HAND][need r=,sr=]
does this bug also occur on the branch?
I am not seeing this problem on the 04-30 1.0.0 branch.
Attached patch patch v2Splinter Review
If we don't need to reload the url after creating a new browser window,
then we don't need the "setTimer" delay when calling BrowserReloadSkipCache()
when the window already exists.
Attachment #81706 - Attachment is obsolete: true
cmanske: i have no idea what might explain this change in behavior.
Comment on attachment 81801 [details] [diff] [review]
patch v2

now that I've seen more context I understand this fix better; I think it's the
right thing to do.  r=brade
Attachment #81801 - Flags: review+
Severity: normal → major
Whiteboard: [adt2][FIX IN HAND][need r=,sr=] → [adt2][FIX IN HAND][need sr=]
Comment on attachment 81801 [details] [diff] [review]
patch v2

sr=kin@netscape.com
Attachment #81801 - Flags: superreview+
Whiteboard: [adt2][FIX IN HAND][need sr=] → [adt2][FIX IN HAND][reviewed]
checked into trunk
ComposerCommands.js:
new revision: 1.123; previous revision: 1.122
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Whiteboard: [adt2][FIX IN HAND][reviewed] → [adt2 TRM]
OS: Windows XP → All
Hardware: PC → All
Whiteboard: [adt2 TRM] → [adt2 RTM]
Verified on the 05-06 trunk build.
Status: RESOLVED → VERIFIED
*** Bug 144811 has been marked as a duplicate of this bug. ***
Keywords: adt1.0.0
Keywords: nsbeta1nsbeta1+
adt1.0.0+ (on ADT's behalf) for approval to checkin to the 1.0 branch, pending
Drivers approval.  After, checking in, please add the fixed1.0 keyword.
Keywords: adt1.0.0adt1.0.0+, approval
Whiteboard: [adt2 RTM] → [adt2 RTM] [Needs a=]
Blocks: 143047
Whiteboard: [adt2 RTM] [Needs a=] → [adt2 RTM] [Needs a=],custrtm-
Keywords: mozilla1.0.1
Target Milestone: mozilla1.0 → mozilla1.0.1
a=chofmann for 1.0.1
Whiteboard: [adt2 RTM] [Needs a=],custrtm- → [adt2 RTM]approved,custrtm-
checked into mozilla1.0.1 branch
Summary: Browse button does not work with FTP publish if the HTTP field is left blank. → Browse button does not work after using it second time
Whiteboard: [adt2 RTM]approved,custrtm- → [adt2 RTM][fixed in branch],custrtm-
verified in 6/4 branch build.
Keywords: verified1.0.1
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: