ASSIGNED 163429
[Web IDL] Update [CachedAttribute]'s behavior now that we support [SameObject]
https://bugs.webkit.org/show_bug.cgi?id=163429
Summary [Web IDL] Update [CachedAttribute]'s behavior now that we support [SameObject]
Chris Dumez
Reported 2016-10-13 21:08:37 PDT
[SameObject] and [CachedAttribute] currently mean the same thing, so to clean things up: - Rename [CachedAttribute] to [SameObject] in all IDLs where we always return the same object. - Update [CachedAttribute] to ask the implementation since if the value has changed since the last access before actually using the cached value. This allows for caching attributes but adds flexibility by supporting invalidation. This is used now used by History.state instead of using custom bindings code to achieve this. In a follow-up patch, this will also be used for MessageEvent.data to fix a bug. I am also considering making [CachedAttribute] being the implicit default for FrozenArray attributes to match the specification more closely.
Attachments
Patch (24.92 KB, patch)
2016-10-13 21:16 PDT, Chris Dumez
no flags
Patch (26.64 KB, patch)
2016-10-13 21:42 PDT, Chris Dumez
no flags
Patch (25.91 KB, patch)
2016-10-13 22:31 PDT, Chris Dumez
no flags
Archive of layout-test-results from ews125 for ios-simulator-wk2 (9.62 MB, application/zip)
2016-10-13 23:41 PDT, Build Bot
no flags
Archive of layout-test-results from ews116 for mac-yosemite (1.71 MB, application/zip)
2016-10-13 23:43 PDT, Build Bot
no flags
Archive of layout-test-results from ews102 for mac-yosemite (1.01 MB, application/zip)
2016-10-13 23:54 PDT, Build Bot
no flags
Archive of layout-test-results from ews106 for mac-yosemite-wk2 (1.27 MB, application/zip)
2016-10-14 00:02 PDT, Build Bot
no flags
Patch (26.57 KB, patch)
2016-10-14 10:49 PDT, Chris Dumez
buildbot: commit-queue-
Archive of layout-test-results from ews103 for mac-yosemite (1.13 MB, application/zip)
2016-10-14 11:42 PDT, Build Bot
no flags
Archive of layout-test-results from ews113 for mac-yosemite (1.71 MB, application/zip)
2016-10-14 12:02 PDT, Build Bot
no flags
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (1.16 MB, application/zip)
2016-10-14 12:08 PDT, Build Bot
no flags
Archive of layout-test-results from ews126 for ios-simulator-wk2 (deleted)
2016-10-14 12:16 PDT, Build Bot
no flags
Chris Dumez
Comment 1 2016-10-13 21:16:08 PDT
Chris Dumez
Comment 2 2016-10-13 21:42:41 PDT
Chris Dumez
Comment 3 2016-10-13 22:31:03 PDT
Build Bot
Comment 4 2016-10-13 23:41:12 PDT
Comment on attachment 291569 [details] Patch Attachment 291569 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/2282189 New failing tests: fast/loader/stateobjects/state-attribute-history-getter.html
Build Bot
Comment 5 2016-10-13 23:41:16 PDT
Created attachment 291575 [details] Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 6 2016-10-13 23:43:43 PDT
Comment on attachment 291569 [details] Patch Attachment 291569 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2282227 New failing tests: fast/loader/stateobjects/state-attribute-history-getter.html
Build Bot
Comment 7 2016-10-13 23:43:47 PDT
Created attachment 291576 [details] Archive of layout-test-results from ews116 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 8 2016-10-13 23:54:32 PDT
Comment on attachment 291569 [details] Patch Attachment 291569 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/2282312 New failing tests: fast/loader/stateobjects/state-attribute-history-getter.html
Build Bot
Comment 9 2016-10-13 23:54:36 PDT
Created attachment 291577 [details] Archive of layout-test-results from ews102 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 10 2016-10-14 00:02:22 PDT
Comment on attachment 291569 [details] Patch Attachment 291569 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/2282332 New failing tests: fast/loader/stateobjects/state-attribute-history-getter.html
Build Bot
Comment 11 2016-10-14 00:02:26 PDT
Created attachment 291579 [details] Archive of layout-test-results from ews106 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Chris Dumez
Comment 12 2016-10-14 10:49:09 PDT
Build Bot
Comment 13 2016-10-14 11:42:45 PDT
Comment on attachment 291647 [details] Patch Attachment 291647 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/2285701 New failing tests: fast/loader/stateobjects/replacestate-then-pushstate.html fast/loader/stateobjects/pushstate-object-types.html fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html fast/loader/stateobjects/state-attribute-popstate-event.html fast/loader/stateobjects/document-destroyed-navigate-back.html fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange.html
Build Bot
Comment 14 2016-10-14 11:42:49 PDT
Created attachment 291655 [details] Archive of layout-test-results from ews103 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 15 2016-10-14 12:02:34 PDT
Comment on attachment 291647 [details] Patch Attachment 291647 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2285746 New failing tests: fast/loader/stateobjects/replacestate-then-pushstate.html fast/loader/stateobjects/pushstate-object-types.html fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html fast/loader/stateobjects/state-attribute-popstate-event.html fast/loader/stateobjects/document-destroyed-navigate-back.html fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange.html
Build Bot
Comment 16 2016-10-14 12:02:38 PDT
Created attachment 291656 [details] Archive of layout-test-results from ews113 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 17 2016-10-14 12:08:24 PDT
Comment on attachment 291647 [details] Patch Attachment 291647 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/2285785 New failing tests: fast/loader/stateobjects/replacestate-then-pushstate.html fast/loader/stateobjects/pushstate-object-types.html fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html fast/loader/stateobjects/state-attribute-popstate-event.html fast/loader/stateobjects/document-destroyed-navigate-back.html fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange.html
Build Bot
Comment 18 2016-10-14 12:08:28 PDT
Created attachment 291658 [details] Archive of layout-test-results from ews107 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 19 2016-10-14 12:16:39 PDT
Comment on attachment 291647 [details] Patch Attachment 291647 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/2285789 New failing tests: fast/loader/stateobjects/state-attribute-popstate-event.html fast/loader/stateobjects/replacestate-then-pushstate.html fast/loader/stateobjects/document-destroyed-navigate-back.html fast/loader/stateobjects/pushstate-object-types.html fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html
Build Bot
Comment 20 2016-10-14 12:16:44 PDT
Created attachment 291659 [details] Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Note You need to log in before you can comment on or make changes to this bug.