-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Refactor the container/viewer checks in the BaseViewer constructor #12388
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The solution implemented here feels way too complex, considering that the purpose of these checks were simply to catch outright user error. Can this be implemented simpler, e.g. by just checking the tagName
instead?
Furthermore, note that the existing checks are only relevant for one particular build and consequently we do not want to add this code in e.g. MOZCENTRAL
builds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please improve the commit message, since it's currently a bit difficult to tell what the patch does without looking at the code and the linked issue.
For example, something like "Refactor the container
/viewer
checks in the BaseViewer
constructor" might work. Furthermore, please also explain in the commit message why these changes are necessary; by mentioning the iframe use-case.
Sure thing! :) |
The previous checks prevented specifying a container/viewer that was in another document/window. Fixes #12385
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/9340338045b1e3a/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/9340338045b1e3a/output.txt Total script time: 3.53 mins Published |
Looks good to me. Thanks! |
Fixes #12385