Bug 67904 - JS properties assigned to Qt objects are not persistent
Summary: JS properties assigned to Qt objects are not persistent
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-11 01:35 PDT by Kang Liu
Modified: 2022-07-29 10:47 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kang Liu 2011-09-11 01:35:50 PDT
There are two QObjects to be injcected to JS context, named "A" and "B", and A is the parent of B.

frame->addToJavaScriptWindowObject(A->objectName(), A);
QString js("A.B.foo = 'bar';");
frame->evaluateJavaScript(js);

The property A.B.foo is not persistent: it is no longer accessible after doing some operations, for example, invoke the web inspector.
Comment 1 Alexey Proskuryakov 2022-07-29 10:47:10 PDT
The Qt port has been removed from WebKit, resolving.