[Webkit-unassigned] [Bug 57411] New: [Qt] application crashes performing findFirst(":focus")

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 29 18:02:14 PDT 2011


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

           Summary: [Qt] application crashes performing
                    findFirst(":focus")
           Product: WebKit
           Version: 420+
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: gonzo at bluezbox.com


Sometimes application crashes while performing findFirst(":focus") in microFocusChanged signal handler. Mostly it happens when GoBack action is triggered for page

Code that causes crash looks like: 

return page()->currentFrame()->documentElement().findFirst(":focus");

backtrace:
     QtWebKitd4.dll!WebCore::SelectionController::isFocusedAndActive()  Line 1346 + 0x3 bytes    C++
     QtWebKitd4.dll!WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector(WebCore::CSSSelector * sel=0x04733e08, WebCore::Element * e=0x0471d798, WTF::HashSet<WebCore::AtomicStringImpl *,WTF::PtrHash<WebCore::AtomicStringImpl *>,WTF::HashTraits<WebCore::AtomicStringImpl *> > * selectorAttrs=0x00000000, WebCore::PseudoId & dynamicPseudo=NOPSEUDO, bool isAncestor=true, bool isSubSelector=false, WebCore::RenderStyle * elementStyle=0x00000000, WebCore::RenderStyle * elementParentStyle=0x00000000)  Line 2384 + 0x32 bytes    C++
     QtWebKitd4.dll!WebCore::CSSStyleSelector::SelectorChecker::checkSelector(WebCore::CSSSelector * sel=0x04733e08, WebCore::Element * e=0x0471d798, WTF::HashSet<WebCore::AtomicStringImpl *,WTF::PtrHash<WebCore::AtomicStringImpl *>,WTF::HashTraits<WebCore::AtomicStringImpl *> > * selectorAttrs=0x00000000, WebCore::PseudoId & dynamicPseudo=NOPSEUDO, bool isAncestor=true, bool isSubSelector=false, WebCore::RenderStyle * elementStyle=0x00000000, WebCore::RenderStyle * elementParentStyle=0x00000000)  Line 1792 + 0x28 bytes    C++
     QtWebKitd4.dll!WebCore::CSSStyleSelector::SelectorChecker::checkSelector(WebCore::CSSSelector * sel=0x04733e08, WebCore::Element * element=0x0471d798)  Line 929 + 0x1e bytes    C++
     QtWebKitd4.dll!WebCore::Node::querySelector(const WebCore::String & selectors={...}, int & ec=0)  Line 1666 + 0x19 bytes    C++
     QtWebKitd4.dll!QWebElement::findFirst(const QString & selectorQuery={...})  Line 245 + 0x2a bytes    C++


Qt version is 4.7.1
Most likely the problem is in 
src\3rdparty\webkit\webcore\css\cssstyleselector.cpp:2384 

this in isFocusedAndActive is 0x000002f0
I'll try to write isolated test case if you need one.

-- 
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