Closed Bug 65608 Opened 24 years ago Closed 24 years ago

need nsIHistoryObserver interface and underlying implementation

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
Windows 2000
defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.8

People

(Reporter: jud, Assigned: radha)

References

Details

(Keywords: embed)

Attachments

(3 files)

http://www.mozilla.org/projects/embedding/apiReviewNotes.html#nsIHistoryObserver 
points to what we're after to provide more functional history info for 
embeddors.

Here's the latest info:

[1/4/01]

Too complicated to have embedding app impl the current session history 
interfaces. 
See nsIWebNavigation for other notes. 
We have to maintain loaded state internally. It's not enoughthat the embedding 
app maintain a list of URLs which they LoadURI() on when the user jumps around 
in the history list. 
It's not clear whether or not we should be index (number) based or cookie 
(history entry interface) based. 
Maybe the embedding app tells us *when* to trim, thus makingthe index option 
more attractive.
nominating 0.8
Blocks: 64833
Severity: normal → major
Keywords: embed, mozilla0.8
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.8
I have attached a initial patch for the implementation. I'm seeking input (from
appripriate people) for certain parts of the patch. This patch has not been
built on linux yet.
I don't see the nsWebBRowser.cpp changes in there to enable session history 
observer registration from nsIWebBrowser.
oops! forgot to attach nsWebBrowser.cpp diffs in the previous patch id 24170. 
The latest one 24242 has it. Thanks jud for pointing it out.
nice! r=valeski
In nsISHistory.idl:

    * Add a new Entry to the History List
-       * @param aEntry - The entry to add
-       * @param aPersist - If true this specifies that the entry should persist
-       * in the list.  If false, this means that when new entries are added
-       * this element will not appear in the session history list.
+        * @param aEntry - The entry to add
+        * @param aPersist - If true this specifies that the entry should
persist
+        * in the list.  If false, this means that when new entries are added
+        * this element will not appear in the session history list.
    */

radha, would you mind fixing this so the *s lines up (since you're touching
those lines anyway)?

Will there only ever be one history listener or should we support multiple
listeners? The comments could be more clear on this, as could the method names
(setSHistoryListener or something).
sr=rpotts (thro' email) and this got checked in yesterday. 

jag: for your question, each browser window or embedding window will have its 
own instance of SH. SH is not a service. so, it is enough if each instance have 
one listener. 
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
*** Bug 28615 has been marked as a duplicate of this bug. ***
Keywords: mozilla0.8
Moving API bug ownership to David Epstein.
QA Contact: mdunn → depstein
Correction: Changing QA contact for the Embed API bugs to David Epstein.
Interface is now called nsISHistoryListener. Idl file found in lxr.mozilla.org 
Used in winEmbed for history notifications (in AddWebBrowserListener()).
Status: RESOLVED → VERIFIED
No longer blocks: 64833
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: