Bug 188785 - Allow creating WeakPtrs to const objects
Summary: Allow creating WeakPtrs to const objects
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-08-21 05:03 PDT by Antti Koivisto
Modified: 2018-08-24 02:31 PDT (History)
6 users (show)

See Also:


Attachments
patch (10.26 KB, patch)
2018-08-21 06:16 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff
patch (10.49 KB, patch)
2018-08-24 00:49 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff
patch (10.48 KB, patch)
2018-08-24 01:25 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2018-08-21 05:03:47 PDT
const Foo foo;
auto weakFoo = makeWeakPtr(foo);

should work.
Comment 1 Antti Koivisto 2018-08-21 06:16:30 PDT
Created attachment 347638 [details]
patch
Comment 2 Geoffrey Garen 2018-08-21 09:59:33 PDT
Comment on attachment 347638 [details]
patch

r=me
Comment 3 WebKit Commit Bot 2018-08-21 12:09:37 PDT
Comment on attachment 347638 [details]
patch

Clearing flags on attachment: 347638

Committed r235129: <https://trac.webkit.org/changeset/235129>
Comment 4 WebKit Commit Bot 2018-08-21 12:09:38 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2018-08-21 12:10:24 PDT
<rdar://problem/43571796>
Comment 6 Dawei Fenton (:realdawei) 2018-08-23 16:36:14 PDT
Reverted r235129 for reason:

broke internal builds

Committed r235258: <https://trac.webkit.org/changeset/235258>
Comment 7 Antti Koivisto 2018-08-24 00:49:39 PDT
Created attachment 347996 [details]
patch
Comment 8 Antti Koivisto 2018-08-24 01:25:53 PDT
Created attachment 347999 [details]
patch
Comment 9 WebKit Commit Bot 2018-08-24 02:30:59 PDT
Comment on attachment 347999 [details]
patch

Clearing flags on attachment: 347999

Committed r235315: <https://trac.webkit.org/changeset/235315>
Comment 10 WebKit Commit Bot 2018-08-24 02:31:00 PDT
All reviewed patches have been landed.  Closing bug.