[Webkit-unassigned] [Bug 69037] ASSERT if WebView's UIDelegate does not implement webView:runOpenPanel

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 28 17:25:11 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=69037





--- Comment #4 from Joseph Pecoraro <joepeck at webkit.org>  2011-09-28 17:25:11 PST ---
In this case, -cancel doesn't release the object, it just sends a message down
to the WebCore::FileChooser and clears the FileChooser. -release just
deallocates, which expects the chooser to have already been cleared.

The relevant code here is:

    ifndef NDEBUG
    - (void)dealloc
    {
        ASSERT(!_chooser);
        [super dealloc];
    }
    - (void)finalize
    {
        ASSERT(!_chooser);
        [super finalize];
    }
    #endif

    - (void)cancel
    {
        ASSERT(_chooser);
        if (!_chooser)
            return;
        _chooser->deref();
        _chooser = 0;
    }

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list