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
11
test/assets/popup/window-open.html
Normal file
11
test/assets/popup/window-open.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Popup test</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.open('./popup.html');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user