Bug 224351 - Safari unit tests sometimes fail an ASSERTion in IOSurface.mm's optionsFor32BitSurface()
Summary: Safari unit tests sometimes fail an ASSERTion in IOSurface.mm's optionsFor32B...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-08 17:46 PDT by Tim Horton
Modified: 2021-04-08 18:49 PDT (History)
3 users (show)

See Also:


Attachments
Patch (5.29 KB, patch)
2021-04-08 17:46 PDT, Tim Horton
no flags Details | Formatted Diff | Diff
Patch (5.26 KB, patch)
2021-04-08 18:16 PDT, Tim Horton
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2021-04-08 17:46:30 PDT
Safari unit tests sometimes fail an ASSERTion in IOSurface.mm's optionsFor32BitSurface()
Comment 1 Tim Horton 2021-04-08 17:46:49 PDT
Created attachment 425565 [details]
Patch
Comment 2 Tim Horton 2021-04-08 17:46:52 PDT
<rdar://problem/76405354>
Comment 3 Wenson Hsieh 2021-04-08 18:00:25 PDT
Comment on attachment 425565 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=425565&action=review

> Source/WebCore/platform/graphics/cocoa/IOSurface.mm:209
> +    ASSERT(size.width());
> +    ASSERT(size.height());

Nit - perhaps just `ASSERT(!size.isEmpty());` would be cleaner?
Comment 4 Tim Horton 2021-04-08 18:06:58 PDT
(In reply to Wenson Hsieh from comment #3)
> Comment on attachment 425565 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=425565&action=review
> 
> > Source/WebCore/platform/graphics/cocoa/IOSurface.mm:209
> > +    ASSERT(size.width());
> > +    ASSERT(size.height());
> 
> Nit - perhaps just `ASSERT(!size.isEmpty());` would be cleaner?

Sure, that ... seems like the obvious thing to do, in hindsight.
Comment 5 Tim Horton 2021-04-08 18:16:07 PDT
Created attachment 425566 [details]
Patch
Comment 6 EWS 2021-04-08 18:49:09 PDT
Committed r275737 (236324@main): <https://commits.webkit.org/236324@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 425566 [details].