Bug 38949 - JavaScript unable to invoke methods declared in QML
Summary: JavaScript unable to invoke methods declared in QML
Status: CLOSED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 35784
  Show dependency treegraph
 
Reported: 2010-05-11 16:49 PDT by Aaron Kennedy
Modified: 2010-05-14 03:01 PDT (History)
1 user (show)

See Also:


Attachments
Proposed patch (1.57 KB, text/plain)
2010-05-11 16:51 PDT, Aaron Kennedy
no flags Details
Example testcase (313 bytes, application/octet-stream)
2010-05-11 16:51 PDT, Aaron Kennedy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Kennedy 2010-05-11 16:49:35 PDT
JavaScript code executed by webkit cannot call into QML declared methods, as it does not check for dynamic meta objects.  The attached patch addresses this.
Comment 1 Aaron Kennedy 2010-05-11 16:51:01 PDT
Created attachment 55775 [details]
Proposed patch
Comment 2 Aaron Kennedy 2010-05-11 16:51:33 PDT
Created attachment 55776 [details]
Example testcase
Comment 3 Simon Hausmann 2010-05-14 02:58:39 PDT
Committed r59460: <http://trac.webkit.org/changeset/59460>
Comment 4 Simon Hausmann 2010-05-14 03:01:09 PDT
Revision r59460 cherry-picked into qtwebkit-2.0 with commit 592fb4ee6db52db805a6cd24552842e1e3dd7515