Closed Bug 90224 Opened 25 years ago Closed 24 years ago

nsISHistoryListener::OnHistoryReload() doesn't get callback

Categories

(Core Graveyard :: Embedding: APIs, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: depman1, Assigned: radha)

References

()

Details

Attachments

(2 files)

1. Apply the patch file for Tests.cpp. Contains isolated test for Reload(). 2. Launch testEmbed. /mozilla/embedding/qa/testembed 3. Enter a url. can reverse steps 4 & 5. same result. 4. Turn on history listener. Tests > Add History Listener. 5. Reload. Tools > Test Your Method (in Tests.cpp, OnToolsTestYourMethod(), Reload() is called with no flags, will try out with other cases). 6. Check logfile in C:/temp folder, called "TestOutput.txt". Also notice no alert popup for reload notification. Result: Callback for reload isn't appearing. Expected: Currently, only have printf statements in the nsISHistoryListener implementations, but it still should appear for OnHistoryReload(). note: hist lstner impls are in BrowserImplHistoryLstnr.cpp. Here's what appears in the TestOutput logfile: TestEmbed started up. nsIWebBrowserChrome::SetWebBrowser(). AddWebBrowserListener(). Add History Lstnr test passed. Reload(): w/ LOAD_FLAGS_NONE test passed. TestEmbed shut down.
changed qa contact to depstein
QA Contact: mdunn → depstein
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla0.9.4
Listener is hooked up only in nsISHistory, but not to docshell. ie., if you QI nsISHistory to nsIWebNavigation and did a reload() off of that, you will be notified in your listener. Reload() called from docshell and JS will not trigger the listener. I don't believe I can take care of this for 0.9.4 as I have more important bugs. Moving to next milestone.
Target Milestone: mozilla0.9.4 → mozilla1.0
Target Milestone: mozilla1.0 → mozilla0.9.9
r=mcafee, make sure this works & stuff :-)
hey radha, can nsDocShell::Reload() just delegate to nsSHistory::Reload() via nsIWebNavigation just like the rest of the history methods in the docShell? it scares me that we have two *different* implementations of Reload() ;-) it seems like these two implementations should be consolidated... -- rick
Comment on attachment 66973 [details] [diff] [review] patch 1.0 sr=rpotts@netscape.com (after talking with radha)
Attachment #66973 - Flags: superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Mozilla 0.9.8 Gecko/20020209. verified.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: