feat: enhance native window.open to match the custom implementation's behavior (#19703)
Co-authored-by: Andy Locascio <andy@slack-corp.com>
This commit is contained in:
parent
b1f4ac00f0
commit
74372d65ae
20 changed files with 350 additions and 143 deletions
|
@ -15,8 +15,13 @@ namespace electron {
|
|||
// created by native `window.open()`
|
||||
struct ChildWebContentsTracker
|
||||
: public content::WebContentsUserData<ChildWebContentsTracker> {
|
||||
~ChildWebContentsTracker() override;
|
||||
|
||||
GURL url;
|
||||
std::string frame_name;
|
||||
content::Referrer referrer;
|
||||
std::string raw_features;
|
||||
scoped_refptr<network::ResourceRequestBody> body;
|
||||
|
||||
private:
|
||||
explicit ChildWebContentsTracker(content::WebContents* web_contents);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue