120 function pageShowEventHandlers(event)
121 {
122 // Filter out events that are not about the document load we are interested in
123 if (event.originalTarget == content.document) {
124 checkForDirectoryListing();
125 charsetLoadListener(event);
126 #ifdef ALTSS_ICON
127 updatePageStyles();
128 #endif
129 FeedHandler.updateFeeds();
130 }
131
132 // some event handlers want to be told what the original browser/listener is
133 var targetBrowser = null;
134 if (gBrowser.mTabbedMode) {
135 var targetBrowserIndex = gBrowser.getBrowserIndexForDocument(event.originalTarget);
136 if (targetBrowserIndex == -1)
137 return;
138 targetBrowser = gBrowser.getBrowserAtIndex(targetBrowserIndex);
139 } else {
140 targetBrowser = gBrowser.mCurrentBrowser;
141 }
142
143 // update the last visited date
144 if (targetBrowser.currentURI.spec)
145 BMSVC.updateLastVisitedDate(targetBrowser.currentURI.spec,
146 targetBrowser.contentDocument.characterSet);
147 }