-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
[🐛 Bug]: find-elements-fragment has an issue with JSON #12549
Copy link
Copy link
Closed as not planned
Labels
B-atomsJavaScript chunks generated by Google closureJavaScript chunks generated by Google closureI-defectSomething is not working as intendedSomething is not working as intendedJ-staleApplied to issues that become stale, and eventually closed.Applied to issues that become stale, and eventually closed.R-help wantedIssues looking for contributionsIssues looking for contributions
Metadata
Metadata
Assignees
Labels
B-atomsJavaScript chunks generated by Google closureJavaScript chunks generated by Google closureI-defectSomething is not working as intendedSomething is not working as intendedJ-staleApplied to issues that become stale, and eventually closed.Applied to issues that become stale, and eventually closed.R-help wantedIssues looking for contributionsIssues looking for contributions
What happened?
I generated
find-element-fragment.jsand pasted it into a browser. One line (minified it looks like the only line in the fragment that includesba.JSON.stringify) seems to host this bug:bais undefined.Reading the minified code as best I can, it looks like
bais eitherdocumentorwindow.navigator. Neither of these host theJSONglobal (it is onwindow, I think).Removing
ba.from the line so that it referencesJSONas a pure global fixes the issue.I'm not sure how to navigate the whole Google Closure Compiler situation. A quick grep of the codebase for a fixable line only showed up
goog.global.JSON. Perhaps this issue is internal to the Compiler?How can we reproduce the issue?
Relevant log output
Operating System
macOS
Selenium version
4.11.0
What are the browser(s) and version(s) where you see this issue?
Chrome, Safari
What are the browser driver(s) and version(s) where you see this issue?
N/A
Are you using Selenium Grid?
N/A