mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat(targets): add target.opener() (#2641)
This adds a `.opener` property to a target so that its origin can be tracked. For now returns `null` when there's no `openerId`. Fixes #1830
This commit is contained in:
committed by
Andrey Lushnikov
parent
0b94fa70eb
commit
f6356683cd
9
test/assets/popup/popup.html
Normal file
9
test/assets/popup/popup.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Popup</title>
|
||||
</head>
|
||||
<body>
|
||||
I am a popup
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user