Skip to content

Commit

Permalink
Core - IFrame.IsMain remove ThrowIfFrameInvalid guard
Browse files Browse the repository at this point in the history
- Calling IsMain on an invalid frame is allowable
  • Loading branch information
amaitland committed Nov 3, 2022
1 parent 4245e0e commit 2887891
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion CefSharp.Core.Runtime/Internals/CefFrameWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ Task<JavascriptResponse^>^ CefFrameWrapper::EvaluateScriptAsync(String^ script,
bool CefFrameWrapper::IsMain::get()
{
ThrowIfDisposed();
ThrowIfFrameInvalid();

return _frame->IsMain();
}
Expand Down

0 comments on commit 2887891

Please sign in to comment.