Changeset 273156 in webkit


Ignore:
Timestamp:
Feb 19, 2021 12:09:37 PM (3 years ago)
Author:
Fujii Hironori
Message:

A number of offscreencanvas tests are asserting isMainThread trying to access strictCSSParserContext
https://bugs.webkit.org/show_bug.cgi?id=222156

Reviewed by Carlos Garcia Campos.

Source/WebCore:

strictCSSParserContext() can be used only in the main thread.
It can't be used in parseColorWorkerSafe().

  • css/parser/CSSParser.cpp:

(WebCore::CSSParser::parseColorWorkerSafe): Use
CSSParserContext(HTMLStandardMode) instead of
strictCSSParserContext().

LayoutTests:

  • platform/glib/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r273154 r273156  
     12021-02-19  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        A number of offscreencanvas tests are asserting isMainThread trying to access strictCSSParserContext
     4        https://bugs.webkit.org/show_bug.cgi?id=222156
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * platform/glib/TestExpectations:
     9
    1102021-02-19  Aditya Keerthi  <akeerthi@apple.com>
    211
  • trunk/LayoutTests/platform/glib/TestExpectations

    r273124 r273156  
    664664webkit.org/b/221311 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/filter/offscreencanvas.filter.w.html [ Slow ]
    665665webkit.org/b/221311 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/manual/filter/offscreencanvas.filter.w.html [ Slow ]
    666 
    667 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.invalidstring.worker.html [ Crash ]
    668 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.invalidtype.worker.html [ Crash ]
    669 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-1.worker.html [ Crash ]
    670 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-2.worker.html [ Crash ]
    671 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-3.worker.html [ Crash ]
    672 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-4.worker.html [ Crash ]
    673 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-5.worker.html [ Crash ]
    674 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-6.worker.html [ Crash ]
    675 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-7.worker.html [ Crash ]
    676 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-8.worker.html [ Crash ]
    677 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-9.worker.html [ Crash ]
    678 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-1.worker.html [ Crash ]
    679 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-2.worker.html [ Crash ]
    680 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-3.worker.html [ Crash ]
    681 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-4.worker.html [ Crash ]
    682 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-5.worker.html [ Crash ]
    683 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-6.worker.html [ Crash ]
    684 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-7.worker.html [ Crash ]
    685 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-8.worker.html [ Crash ]
    686 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-9.worker.html [ Crash ]
    687 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-1.worker.html [ Crash ]
    688 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-2.worker.html [ Crash ]
    689 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-3.worker.html [ Crash ]
    690 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-4.worker.html [ Crash ]
    691 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-5.worker.html [ Crash ]
    692 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-6.worker.html [ Crash ]
    693 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-1.worker.html [ Crash ]
    694 webkit.org/b/222156 [ Debug ] imported/w3c/web-platform-tests/html/canvas/offscreen/shadows/2d.shadow.attributes.shadowColor.invalid.worker.html [ Crash ]
    695666
    696667#////////////////////////////////////////////////////////////////////////////////////////
  • trunk/Source/WebCore/ChangeLog

    r273155 r273156  
     12021-02-19  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        A number of offscreencanvas tests are asserting isMainThread trying to access strictCSSParserContext
     4        https://bugs.webkit.org/show_bug.cgi?id=222156
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        strictCSSParserContext() can be used only in the main thread.
     9        It can't be used in parseColorWorkerSafe().
     10
     11        * css/parser/CSSParser.cpp:
     12        (WebCore::CSSParser::parseColorWorkerSafe): Use
     13        CSSParserContext(HTMLStandardMode) instead of
     14        strictCSSParserContext().
     15
    1162021-02-19  Patrick Angle  <pangle@apple.com>
    217
  • trunk/Source/WebCore/css/parser/CSSParser.cpp

    r272870 r273156  
    118118    range.consumeWhitespace();
    119119
    120     return CSSPropertyParserHelpers::consumeColorWorkerSafe(range, strictCSSParserContext());
     120    return CSSPropertyParserHelpers::consumeColorWorkerSafe(range, CSSParserContext(HTMLStandardMode));
    121121}
    122122
Note: See TracChangeset for help on using the changeset viewer.