Bug 87092 - [EFL] webintents/web-intents-delivery-reuse.html is failing on EFL port
Summary: [EFL] webintents/web-intents-delivery-reuse.html is failing on EFL port
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks: 86868
  Show dependency treegraph
 
Reported: 2012-05-22 00:34 PDT by Chris Dumez
Modified: 2012-05-23 13:58 PDT (History)
7 users (show)

See Also:


Attachments
Patch (2.78 KB, patch)
2012-05-23 06:05 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2012-05-22 00:34:55 PDT
webkitIntent cannot be assigned for some reason and is always null after assignment.
Comment 1 Chris Dumez 2012-05-23 05:47:41 PDT
gbillock: In DOMWindowIntents.idl, should the webkitIntent attribute be really marked as readonly? Because of this, the JSC bindings generator does not generate a setter and does not do any shadowing.

As a consequence, the webintents/web-intents-delivery-reuse.html test is failing for us. If I remove the "readonly" for the attribute, then the test is passing just fine. Is it really something that should be fixed in the JSC bindings generator?
Comment 2 Chris Dumez 2012-05-23 06:05:03 PDT
Created attachment 143551 [details]
Patch

Here is a patch which removes the "readonly" keyword from the webkitIntent attribute so that it becomes truly replaceable with JSC.
The patch also unskips the corresponding test case for EFL port.

Note that in the whole source tree, there is no other IDL attribute which is both readonly and [Replaceable].
Comment 3 Greg Billock 2012-05-23 08:06:01 PDT
(In reply to comment #1)
> gbillock: In DOMWindowIntents.idl, should the webkitIntent attribute be really marked as readonly? Because of this, the JSC bindings generator does not generate a setter and does not do any shadowing.
> 
> As a consequence, the webintents/web-intents-delivery-reuse.html test is failing for us. If I remove the "readonly" for the attribute, then the test is passing just fine. Is it really something that should be fixed in the JSC bindings generator?

Seems fine to me, but Adam is a better person to ask. I put readonly because when the internal object is returned, JS shouldn't be altering it -- since it is replaceable, they can just write their own. It sounds like JSC uses another mechanism to accomplish that, though.
Comment 4 Adam Barth 2012-05-23 13:20:35 PDT
Comment on attachment 143551 [details]
Patch

Ok.
Comment 5 WebKit Review Bot 2012-05-23 13:58:04 PDT
Comment on attachment 143551 [details]
Patch

Clearing flags on attachment: 143551

Committed r118241: <http://trac.webkit.org/changeset/118241>
Comment 6 WebKit Review Bot 2012-05-23 13:58:09 PDT
All reviewed patches have been landed.  Closing bug.