CLOSED FIXED 10194
[S60] InTSW ID: KNOD-6QGSQ7 CBrCtl::FocusedElementType can return uninitialized data when no element has focus
https://bugs.webkit.org/show_bug.cgi?id=10194
Summary [S60] InTSW ID: KNOD-6QGSQ7 CBrCtl::FocusedElementType can return uninitializ...
Joseph Ligman
Reported 2006-08-01 14:54:57 PDT
CBrCtl::FocusedElementType can return unitialized data when no element has focus. To reproduce, build and run BrCtlBCTest application located in \S60\WebEngine\internal\test\BrCtlBCTest Set a breakpoint in CBrCtlBCTestContainer::FocusedElementTypeTest. The returned value of elementtype will be a large negative number, and should be EElementNone. WebKitView.iFocusedElementType appears to be set to an unintialized variable in CWebKitControl::FinalProgressComplete: This code: TWebCoreFocusedElementType elType; iWebKitView->MainFrame().WebKitBridge().WebCoreBridge().TabbedNavigation(EWebNavDown,elType,ETrue); iWebKitView->SetFocusedElementType((TBrCtlDefs::TBrCtlElementType)elType); perhaps should be: TWebCoreFocusedElementType elType = EWebCoreElementNone; iWebKitView->MainFrame().WebKitBridge().WebCoreBridge().TabbedNavigation(EWebNavDown,elType,ETrue); iWebKitView->SetFocusedElementType((TBrCtlDefs::TBrCtlElementType)elType);
Attachments
Files: WebKitControl.cpp (1.13 KB, patch)
2006-08-01 15:29 PDT, Joseph Ligman
bradley.morrison: review-
Files: WebKitControl.cpp (1.32 KB, patch)
2006-08-02 06:27 PDT, Joseph Ligman
yongjun.zhang: review+
Bradley Morrison
Comment 1 2006-08-01 15:10:16 PDT
Added PlatformOnly & InTSW keywords.
Bradley Morrison
Comment 2 2006-08-01 15:10:31 PDT
Added PlatformOnly & InTSW keywords.
Joseph Ligman
Comment 3 2006-08-01 15:29:48 PDT
Created attachment 9803 [details] Files: WebKitControl.cpp Assign a default value to the element type.
Bradley Morrison
Comment 4 2006-08-01 16:09:51 PDT
Comment on attachment 9803 [details] Files: WebKitControl.cpp Please add a short description to the edited ChangeLog and regenerate the patch. Thanks, Bradley
Bradley Morrison
Comment 5 2006-08-01 16:12:30 PDT
(In reply to comment #4) > (From update of attachment 9803 [details] [edit]) > Please add a short description to the edited ChangeLog and regenerate the > patch. Oh and also include a link to the bug in bugzilla. Thanks, Bradley
Joseph Ligman
Comment 6 2006-08-02 06:27:18 PDT
Created attachment 9818 [details] Files: WebKitControl.cpp Added a short description to the edited ChangeLog and regenerated the patch, also included a link to the bug in bugzilla. Assigned a default element type to keep the focus from being undefined. TWebCoreFocusedElementType elType = EWebCoreElementNone;
Yongjun Zhang
Comment 7 2006-08-02 06:51:20 PDT
Comment on attachment 9818 [details] Files: WebKitControl.cpp The fix is fine. r=me
Bradley Morrison
Comment 8 2006-08-02 11:02:00 PDT
Thanks for updating your ChangeLog entry. Applied, r15752.
Krishna
Comment 9 2006-08-07 08:02:25 PDT
Closed.
Joel Parks
Comment 10 2011-03-21 11:52:24 PDT
re-purposing InTSW keyword for use by QtWebkit team
Note You need to log in before you can comment on or make changes to this bug.