Changeset 190728 in webkit


Ignore:
Timestamp:
Oct 8, 2015 9:26:40 AM (9 years ago)
Author:
Antti Koivisto
Message:

CrashTracer: [USER] com.apple.WebKit.WebContent at …Core::SelectorChecker::checkScrollbarPseudoClass const + 217
https://bugs.webkit.org/show_bug.cgi?id=149921
rdar://problem/22731359

Reviewed by Andreas Kling.

Source/WebCore:

Test: svg/css/use-window-inactive-crash.html

  • css/SelectorCheckerTestFunctions.h:

(WebCore::isWindowInactive):

Null check page.

LayoutTests:

The test crashes with shipping WebKit but not with current ToT (probably due to shadow DOM styling changes). Still adding
it for coverage.

  • svg/css/use-window-inactive-crash-expected.html: Added.
  • svg/css/use-window-inactive-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r190717 r190728  
     12015-10-08  Antti Koivisto  <antti@apple.com>
     2
     3        CrashTracer: [USER] com.apple.WebKit.WebContent at …Core::SelectorChecker::checkScrollbarPseudoClass const + 217
     4        https://bugs.webkit.org/show_bug.cgi?id=149921
     5        rdar://problem/22731359
     6
     7        Reviewed by Andreas Kling.
     8
     9        The test crashes with shipping WebKit but not with current ToT (probably due to shadow DOM styling changes). Still adding
     10        it for coverage.
     11
     12        * svg/css/use-window-inactive-crash-expected.html: Added.
     13        * svg/css/use-window-inactive-crash.html: Added.
     14
    1152015-10-08  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebCore/ChangeLog

    r190725 r190728  
     12015-10-08  Antti Koivisto  <antti@apple.com>
     2
     3        CrashTracer: [USER] com.apple.WebKit.WebContent at …Core::SelectorChecker::checkScrollbarPseudoClass const + 217
     4        https://bugs.webkit.org/show_bug.cgi?id=149921
     5        rdar://problem/22731359
     6
     7        Reviewed by Andreas Kling.
     8
     9        Test: svg/css/use-window-inactive-crash.html
     10
     11        * css/SelectorCheckerTestFunctions.h:
     12        (WebCore::isWindowInactive):
     13
     14            Null check page.
     15
    1162015-10-08  Michael Catanzaro  <mcatanzaro@igalia.com>
    217
  • trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h

    r189270 r190728  
    118118ALWAYS_INLINE bool isWindowInactive(const Element* element)
    119119{
    120     return !element->document().page()->focusController().isActive();
     120    auto* page = element->document().page();
     121    if (!page)
     122        return false;
     123    return !page->focusController().isActive();
    121124}
    122125
Note: See TracChangeset for help on using the changeset viewer.