| Summary: | Fix missing exception check in createIDBKeyFromValue(). | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Lam <mark.lam> | ||||||||
| Component: | WebCore Misc. | Assignee: | Mark Lam <mark.lam> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | alecflett, beidson, cdumez, ews-watchlist, ggaren, jsbell, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Mark Lam
2020-06-27 10:04:15 PDT
Created attachment 402962 [details]
proposed patch.
Comment on attachment 402962 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=402962&action=review > Source/WebCore/bridge/objc/WebScriptObject.mm:286 > + bool isSafe = BindingSecurity::shouldAllowAccessToDOMWindow(_private->originRootObject->globalObject(), target->wrapped()); Will remove extra space. Created attachment 402963 [details]
proposed patch.
Comment on attachment 402963 [details]
proposed patch.
r=me if the bots are happy
Comment on attachment 402963 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=402963&action=review > Source/WebCore/bridge/objc/WebScriptObject.mm:287 > + bool isSafe = BindingSecurity::shouldAllowAccessToDOMWindow(_private->originRootObject->globalObject(), target->wrapped()); > + CLEAR_AND_RETURN_IF_EXCEPTION(scope, false); This call to BindingSecurity::shouldAllowAccessToDOMWindow() will never throw because it uses a default argument SecurityReportingOption = LogSecurityError. I'll change this CLEAR_AND_RETURN_IF_EXCEPTION to an EXCEPTION_ASSERT_UNUSED to assert that no exception is thrown. Created attachment 402966 [details]
patch for landing.
Thanks for the review.
Committed r263628: <https://trac.webkit.org/changeset/263628> All reviewed patches have been landed. Closing bug and clearing flags on attachment 402966 [details]. |