Why ChromeRenderFrameObserver::ShouldCapturePageTextForTranslateOrPhishing check render_frame()->GetWebFrame() is Null

234 views
Skip to first unread message

wd l

unread,
Sep 13, 2023, 12:26:02 AM9/13/23
to Chromium-discuss
I am studying the chromium source code. Today I found a strange problem. Why do We need to determine that render_frame()->GetWebFrame() is not empty in ChromeRenderFrameObserver::ShouldCapturePageTextForTranslateOrPhishing[1]?

[1] https://source.chromium.org/chromium/chromium/src/+/main:chrome/renderer/chrome_render_frame_observer.cc;l=579;bpv=0;bpt=1
Reply all
Reply to author
Forward
0 new messages