Closed
Bug 90224
Opened 25 years ago
Closed 24 years ago
nsISHistoryListener::OnHistoryReload() doesn't get callback
Categories
(Core Graveyard :: Embedding: APIs, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.9
People
(Reporter: depman1, Assigned: radha)
References
()
Details
Attachments
(2 files)
|
672 bytes,
patch
|
Details | Diff | Splinter Review | |
|
3.94 KB,
patch
|
rpotts
:
superreview+
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•25 years ago
|
||
| Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla0.9.4
| Assignee | ||
Comment 3•24 years ago
|
||
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
| Assignee | ||
Updated•24 years ago
|
Keywords: mozilla1.0
| Assignee | ||
Updated•24 years ago
|
Target Milestone: mozilla1.0 → mozilla0.9.9
| Assignee | ||
Comment 4•24 years ago
|
||
Comment 5•24 years ago
|
||
r=mcafee, make sure this works & stuff :-)
Comment 6•24 years ago
|
||
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 7•24 years ago
|
||
Comment on attachment 66973 [details] [diff] [review]
patch 1.0
sr=rpotts@netscape.com
(after talking with radha)
Attachment #66973 -
Flags: superreview+
| Assignee | ||
Comment 8•24 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 9•24 years ago
|
||
Mozilla 0.9.8 Gecko/20020209. verified.
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•