Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the topmost browsing context for links in the dialog iframe #8194

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

Malvoz
Copy link
Member

@Malvoz Malvoz commented Apr 27, 2022

Per #8193 (review).

(target="_top" escapes all levels of iframes, not only parents.)

@Malvoz Malvoz added the docs Improvements or additions to documentation label Apr 27, 2022
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base target="_top">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

off-topic: <meta charset> should be present in the first 1024 bytes of the document: https://web.dev/charset/

@Malvoz Malvoz marked this pull request as draft April 27, 2022 13:45
@Malvoz
Copy link
Member Author

Malvoz commented Apr 27, 2022

For tutorial_frame.html this'll affect clicks on the popup's close button, due to regression described in #8159. Maybe we should just change this for the dialog for now?

@mourner
Copy link
Member

mourner commented Apr 27, 2022

Yeah, let's just do the dialog frame for now.

@Malvoz Malvoz marked this pull request as ready for review April 27, 2022 16:21
@Malvoz Malvoz changed the title Use the topmost browsing context for links in iframes Use the topmost browsing context for links in the dialog iframe Apr 27, 2022
@mourner mourner merged commit 716ffa0 into Leaflet:main Apr 27, 2022
@Malvoz Malvoz deleted the iframe-target_top branch April 27, 2022 17:12
@jonkoops jonkoops added this to the 1.9.0 milestone Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants