Changeset 21333 in webkit
- Timestamp:
- May 9, 2007 7:00:26 AM (17 years ago)
- Location:
- S60/branches/3.1m/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
S60/branches/3.1m/WebKit/BrowserView/src/LoadListeners.cpp
r20161 r21333 161 161 // create new document only if 162 162 if( headerInfo.HttpStatus() == EHttpOK ) 163 { 163 { 164 // Since the new page is loading fine, we should update the position of history 165 // the history list 166 iWebKitLoader->WebKitBridge().Frame().WebKitView().WebKitControl().HistoryController().UpdateCurrentEntryPosition(); 167 168 //Reset all the flags in webkitview, do this only once 169 if (!iWebKitLoader->WebKitBridge().Frame().Parent()) 170 { 171 iWebKitLoader->WebKitBridge().Frame().WebKitView().ResetFlags(); 172 } 173 174 // Let the webcore know about the incoming data 175 // workaround for handling xhtml contents. webcore is able to 176 // parse xhtml contents but if we pass application/xhtml+xml type here, then 177 // it'll start xmlparsing it. 178 TPtrC contentType( headerInfo.ContentType() ); 179 180 if( contentType.Find( KContentTypeApplicationXhtml ) == 0 ) 181 { 182 // 183 contentType.Set( KContentTypeTextHtml ); 184 } 185 CWebCoreBridge& bridge = iWebKitLoader->WebKitBridge().WebCoreBridge(); 186 187 bridge.OpenURL( headerInfo.ResponseUrl(), 188 iWebKitLoader->IsReloading(), contentType, headerInfo.RefreshL(), headerInfo.LastModified() ); 189 164 190 // When the new page is loaded, the scroll position needs to be reset to (0,0) 165 191 // otherwise an unncessary draw() happens while changing the scrollposition to (0,0) … … 167 193 // TSW# SPIO-6W7GCZ 168 194 iWebKitLoader->WebKitBridge().Frame().SetContentPosition(TPoint(0,0)); 169 170 // Since the new page is loading fine, we should update the position of history171 // the history list172 iWebKitLoader->WebKitBridge().Frame().WebKitView().WebKitControl().HistoryController().UpdateCurrentEntryPosition();173 174 //Reset all the flags in webkitview, do this only once175 if (!iWebKitLoader->WebKitBridge().Frame().Parent())176 {177 iWebKitLoader->WebKitBridge().Frame().WebKitView().ResetFlags();178 }179 180 // Let the webcore know about the incoming data181 // workaround for handling xhtml contents. webcore is able to182 // parse xhtml contents but if we pass application/xhtml+xml type here, then183 // it'll start xmlparsing it.184 TPtrC contentType( headerInfo.ContentType() );185 186 if( contentType.Find( KContentTypeApplicationXhtml ) == 0 )187 {188 //189 contentType.Set( KContentTypeTextHtml );190 }191 CWebCoreBridge& bridge = iWebKitLoader->WebKitBridge().WebCoreBridge();192 193 bridge.OpenURL( headerInfo.ResponseUrl(),194 iWebKitLoader->IsReloading(), contentType, headerInfo.RefreshL(), headerInfo.LastModified() );195 195 196 196 // certain broken operator proxies add ISO-8859-1 charset if -
S60/branches/3.1m/WebKit/ChangeLog
r21190 r21333 1 2007-05-07 raalexan <rasvan.alexandrescu@nokia.com> 2 3 Reviewed by Yongjun Zhang. 4 DESC: Browser back goes to the beginning of the previous page 5 http://bugs.webkit.org/show_bug.cgi?id=13394 6 TSW ID : TMCN-6YDJDU 7 8 * BrowserView/src/LoadListeners.cpp: 9 (CPageLoadListener::HeadersL): 10 1 11 raalexan, reviewed by <sachin.padma@nokia.com> 2 12 DESC: Browser crashes while loading www.cnn.com
Note: See TracChangeset
for help on using the changeset viewer.