Bug 41065

Summary: [Qt] tst_QWebFrame::callQtInvokable() fails
Product: WebKit Reporter: Jędrzej Nowacki <jedrzej.nowacki>
Component: WebKit QtAssignee: QtWebKit Unassigned <webkit-qt-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: hausmann, kling, laszlo.gombos, robert
Priority: P1 Keywords: Qt, QtTriaged, Regression
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 38654    
Attachments:
Description Flags
Proposed patch none

Description Jędrzej Nowacki 2010-06-23 06:51:22 PDT
The autotest fails on my computer.
Checked against git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61683 268f45cc-cd09-0410-ab3c-d52691b4dbfc

FAIL! : tst_QWebFrame::callQtInvokable() Compared values are not the same Actual (vmap.keys().size()): 0 Expected (2): 2 Loc: [/home/nierob/dev/WebKit-script/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp(1275)]
Comment 1 Andreas Kling 2010-07-18 20:27:15 PDT
Regression caused by <http://trac.webkit.org/changeset/61478> (the change to WebCore/bridge/qt/qt_runtime.cpp)

I don't see why getPropertyNames() would crash in that scenario, and cannot reproduce with the two mentioned tests (world-reuse.html and didClearWindowObject.html)
Comment 2 Andreas Kling 2010-07-18 20:30:59 PDT
Created attachment 61925 [details]
Proposed patch

Proposed partial revert of <http://trac.webkit.org/changeset/61478>
Comment 3 Robert Hogan 2010-07-19 00:48:26 PDT
(In reply to comment #2)
> Created an attachment (id=61925) [details]
> Proposed patch
> 
> Proposed partial revert of <http://trac.webkit.org/changeset/61478>

Note to self: make sure I pass the unit tests in future too.

If you can't recreate that's fair enough - if I can still recreate when you revert I'll create a new bug for it. The two tests in question are already skipped.
Comment 4 Andreas Kling 2010-07-24 11:48:50 PDT
Comment on attachment 61925 [details]
Proposed patch

Clearing flags on attachment: 61925

Committed r64011: <http://trac.webkit.org/changeset/64011>
Comment 5 Andreas Kling 2010-07-24 11:49:01 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Simon Hausmann 2010-07-29 07:58:00 PDT
Revision r64011 cherry-picked into qtwebkit-2.1 with commit f1ec6bfb720b632660b49880cc088084bb15175c