WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
210760
The rect for the primary screen should be retrieved on the main thread.
https://bugs.webkit.org/show_bug.cgi?id=210760
Summary
The rect for the primary screen should be retrieved on the main thread.
Andres Gonzalez
Reported
2020-04-20 12:21:33 PDT
The rect for the primary screen should be retrieved on the main thread.
Attachments
Patch
(1.96 KB, patch)
2020-04-20 12:26 PDT
,
Andres Gonzalez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andres Gonzalez
Comment 1
2020-04-20 12:26:12 PDT
Created
attachment 397001
[details]
Patch
EWS
Comment 2
2020-04-20 13:11:15 PDT
Committed
r260392
: <
https://trac.webkit.org/changeset/260392
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 397001
[details]
.
Radar WebKit Bug Importer
Comment 3
2020-04-20 13:12:15 PDT
<
rdar://problem/62072352
>
Darin Adler
Comment 4
2020-04-20 14:49:18 PDT
Comment on
attachment 397001
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=397001&action=review
> Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1952 > + static FloatRect screenRect; > + if (screenRect.isEmpty()) { > + screenRect = Accessibility::retrieveValueFromMainThread<FloatRect>([] () -> FloatRect { > + return screenRectForPrimaryScreen(); > + }); > + }
You don’t need to add the if statement: static FloatRect screenRect = Accessibility::retrieveValueFromMainThread<FloatRect>([] () -> FloatRect { return screenRectForPrimaryScreen(); });
Andres Gonzalez
Comment 5
2020-04-23 08:40:07 PDT
(In reply to Darin Adler from
comment #4
)
> Comment on
attachment 397001
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=397001&action=review
> > > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1952 > > + static FloatRect screenRect; > > + if (screenRect.isEmpty()) { > > + screenRect = Accessibility::retrieveValueFromMainThread<FloatRect>([] () -> FloatRect { > > + return screenRectForPrimaryScreen(); > > + }); > > + } > > You don’t need to add the if statement: > > static FloatRect screenRect = > Accessibility::retrieveValueFromMainThread<FloatRect>([] () -> FloatRect { > return screenRectForPrimaryScreen(); > });
Fixed in
https://bugs.webkit.org/show_bug.cgi?id=210914
. Thanks!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug