Summary: | makeWeakPtr() on a derived class provides a bad pointer if CanMakeWeakPtr<> is not its first base class | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
Component: | Web Template Framework | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | cdumez, ggaren, jiewen_tan, koivisto, lforschler, sam, simon.fraser |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Description
Simon Fraser (smfr)
2018-10-10 15:22:22 PDT
Related: https://bugs.webkit.org/show_bug.cgi?id=188799 https://bugs.webkit.org/show_bug.cgi?id=179405 This could probably be marked a dup of one of those. I'd like this to work soonish... A short-term workaround is to list ScrollableArea first in the inheritance hierarchy: class RenderLayer final : public ScrollableArea, public RenderLayerNode { Sadly that breaks some other casting I wanted to do (but may have to do differently). I'll try to fix WeakPtr at some point. |