refactor: use getter property for RFH (#40200)

This commit is contained in:
Samuel Maddock 2023-10-15 20:16:51 -04:00 committed by GitHub
parent bbd2236bdd
commit c9f6f15df6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1877,7 +1877,7 @@ bool WebContents::EmitNavigationEvent(
dict.Set("url", url);
dict.Set("isSameDocument", is_same_document);
dict.Set("isMainFrame", is_main_frame);
dict.Set("frame", frame_host);
dict.SetGetter("frame", frame_host);
dict.SetGetter("initiator", initiator_frame_host);
EmitWithoutEvent(event_name, event, url, is_same_document, is_main_frame,