)]}'
{"scripts/core.js":[{"author":{"_account_id":1000004,"name":"spike","display_name":"Spike [AI AGENT]","email":"spike@jottocraft.com","username":"spike","avatars":[{"url":"https://www.gravatar.com/avatar/a2fc8341fa61ec84d6563a03d95a1a44.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/a2fc8341fa61ec84d6563a03d95a1a44.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/a2fc8341fa61ec84d6563a03d95a1a44.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/a2fc8341fa61ec84d6563a03d95a1a44.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}],"status":"AI agent. Responds only to internal users (@jottocraft.com)."},"change_message_id":"0633d2c780682cc9150496de8f2821d5dfc7b10b","unresolved":true,"context_lines":[{"line_number":180,"context_line":"            formattedDevNotes \u003d \u0027\u003cdiv style\u003d\"font-size: 12px; color: var(--secText, gray); margin-top: 10px;\"\u003e\u0027 + DOMPurify.sanitize(devNotes) + \u0027\u003c/div\u003e\u0027;\r"},{"line_number":181,"context_line":"        }\r"},{"line_number":182,"context_line":"        console.error(\"[DTPS !!ERROR!!]\", devNotes + \": \", err);\r"},{"line_number":183,"context_line":"        fluid.alert(\"Error\", DOMPurify.sanitize(msg) + formattedDevNotes, \"error\");\r"},{"line_number":184,"context_line":"    }\r"},{"line_number":185,"context_line":"}\r"},{"line_number":186,"context_line":"\r"}],"source_content_type":"text/javascript","patch_set":1,"id":"4424a699_5d6299c7","line":183,"updated":"2026-10-13 06:39:13.000000000","message":"`DOMPurify` is only loaded at the end of the `dtps.JS` chain, so `dtps.error` throws a ReferenceError if it is called before that finishes, for example on a failed script load or an early init failure. That hides the original error. Also, the sanitizer is now needed for most rendering, but `chrome/loader.js` and the demo page never load it. Consider guarding with `window.DOMPurify` here, or loading it before anything that renders.","commit_id":"080715410a8ebd446f0d140eda9f100c281612a5"},{"author":{"_account_id":1000000,"name":"j","display_name":"Jackson Loeffler","email":"j@jottocraft.com","username":"j","avatars":[{"url":"https://www.gravatar.com/avatar/32bf5990de5230430180c7fddb04b99e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/32bf5990de5230430180c7fddb04b99e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/32bf5990de5230430180c7fddb04b99e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/32bf5990de5230430180c7fddb04b99e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"change_message_id":"88ecdbf4b3839cc7aa75068491400ada2eb6077a","unresolved":false,"context_lines":[{"line_number":180,"context_line":"            formattedDevNotes \u003d \u0027\u003cdiv style\u003d\"font-size: 12px; color: var(--secText, gray); margin-top: 10px;\"\u003e\u0027 + DOMPurify.sanitize(devNotes) + \u0027\u003c/div\u003e\u0027;\r"},{"line_number":181,"context_line":"        }\r"},{"line_number":182,"context_line":"        console.error(\"[DTPS !!ERROR!!]\", devNotes + \": \", err);\r"},{"line_number":183,"context_line":"        fluid.alert(\"Error\", DOMPurify.sanitize(msg) + formattedDevNotes, \"error\");\r"},{"line_number":184,"context_line":"    }\r"},{"line_number":185,"context_line":"}\r"},{"line_number":186,"context_line":"\r"}],"source_content_type":"text/javascript","patch_set":1,"id":"7d7b287e_40cfe56d","line":183,"in_reply_to":"4424a699_5d6299c7","updated":"2026-10-13 20:34:59.000000000","message":"Done","commit_id":"080715410a8ebd446f0d140eda9f100c281612a5"},{"author":{"_account_id":1000004,"name":"spike","display_name":"Spike [AI AGENT]","email":"spike@jottocraft.com","username":"spike","avatars":[{"url":"https://www.gravatar.com/avatar/a2fc8341fa61ec84d6563a03d95a1a44.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/a2fc8341fa61ec84d6563a03d95a1a44.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/a2fc8341fa61ec84d6563a03d95a1a44.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/a2fc8341fa61ec84d6563a03d95a1a44.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}],"status":"AI agent. Responds only to internal users (@jottocraft.com)."},"change_message_id":"f574f1dffc5f28f630938d85b8ba6a2234cada07","unresolved":true,"context_lines":[{"line_number":180,"context_line":"}\r"},{"line_number":181,"context_line":"\r"},{"line_number":182,"context_line":"/**\r"},{"line_number":183,"context_line":" * Shows an error message alert and logs to console, WITHOUT SANITIZING INPUT\r"},{"line_number":184,"context_line":" * \r"},{"line_number":185,"context_line":" * @param {string} msg The error to display\r"},{"line_number":186,"context_line":" * @param {string} [devNotes] Technical error details displayed in a smaller font\r"}],"source_content_type":"text/javascript","patch_set":2,"id":"e064459f_f16de2f8","line":183,"in_reply_to":"7d7b287e_40cfe56d","updated":"2026-10-13 20:36:13.000000000","message":"This is marked Done, but `dtps.error` (around L208) still calls `DOMPurify.sanitize` unconditionally, and I don\u0027t see a `window.DOMPurify` guard. DOMPurify is still loaded last in the `dtps.JS` chain (L312), so an early failure still throws a ReferenceError and hides the original error. Please guard it, for example fall back to `dtps.escapeHTML` or plain text when `window.DOMPurify` is undefined. Or if you fixed this somewhere I missed, point me to it.","commit_id":"d2c7d44a44d41233cd1fac5a2892b28b13a84705"},{"author":{"_account_id":1000000,"name":"j","display_name":"Jackson Loeffler","email":"j@jottocraft.com","username":"j","avatars":[{"url":"https://www.gravatar.com/avatar/32bf5990de5230430180c7fddb04b99e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/32bf5990de5230430180c7fddb04b99e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/32bf5990de5230430180c7fddb04b99e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/32bf5990de5230430180c7fddb04b99e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"change_message_id":"3efdf11436b78fc6458d97e2295a1b101c6affe3","unresolved":false,"context_lines":[{"line_number":180,"context_line":"}\r"},{"line_number":181,"context_line":"\r"},{"line_number":182,"context_line":"/**\r"},{"line_number":183,"context_line":" * Shows an error message alert and logs to console, WITHOUT SANITIZING INPUT\r"},{"line_number":184,"context_line":" * \r"},{"line_number":185,"context_line":" * @param {string} msg The error to display\r"},{"line_number":186,"context_line":" * @param {string} [devNotes] Technical error details displayed in a smaller font\r"}],"source_content_type":"text/javascript","patch_set":2,"id":"12df32bf_e1ebbc67","line":183,"in_reply_to":"e064459f_f16de2f8","updated":"2026-10-13 20:38:30.000000000","message":"dtps.init is the first function to run, so any early error in loading the scripts or other data can only happen there. I added dtps.unsafeError to handle this case which shows static/trusted messages without DOMPurify.","commit_id":"d2c7d44a44d41233cd1fac5a2892b28b13a84705"}],"scripts/people.js":[{"author":{"_account_id":1000004,"name":"spike","display_name":"Spike [AI AGENT]","email":"spike@jottocraft.com","username":"spike","avatars":[{"url":"https://www.gravatar.com/avatar/a2fc8341fa61ec84d6563a03d95a1a44.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/a2fc8341fa61ec84d6563a03d95a1a44.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/a2fc8341fa61ec84d6563a03d95a1a44.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/a2fc8341fa61ec84d6563a03d95a1a44.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}],"status":"AI agent. Responds only to internal users (@jottocraft.com)."},"change_message_id":"0633d2c780682cc9150496de8f2821d5dfc7b10b","unresolved":true,"context_lines":[{"line_number":126,"context_line":"                                /*html*/`\r"},{"line_number":127,"context_line":"                                    \u003cdiv\u003e\r"},{"line_number":128,"context_line":"                                        \u003cp\u003e\r"},{"line_number":129,"context_line":"                                            \u003cimg style\u003d\"width: 30px; border-radius: 50%; vertical-align: middle; margin-right: 5px;\" src\u003d\"${dtps.escapeAttr(user.photoURL)}\" /\u003e\r"},{"line_number":130,"context_line":"                                            \u003ca href\u003d\"${user.url}\" style\u003d\"color: var(--text); vertical-align: middle;\"\u003e${DOMPurify.sanitize(user.name)}\u003c/a\u003e\r"},{"line_number":131,"context_line":"                                        \u003c/p\u003e\r"},{"line_number":132,"context_line":"                                    \u003c/div\u003e\r"}],"source_content_type":"text/javascript","patch_set":1,"id":"7300fe30_3889c647","line":129,"updated":"2026-10-13 06:39:13.000000000","message":"`user.url` is still interpolated unescaped into the `href` attribute, so a value containing a `\"` can break out of the attribute and inject attributes like `onmouseover`. This is the same attribute-injection issue the rest of the CL fixes. Use `dtps.escapeAttr(user.url)` here. Also consider rejecting non-http(s) schemes such as `javascript:`.","commit_id":"080715410a8ebd446f0d140eda9f100c281612a5"},{"author":{"_account_id":1000000,"name":"j","display_name":"Jackson Loeffler","email":"j@jottocraft.com","username":"j","avatars":[{"url":"https://www.gravatar.com/avatar/32bf5990de5230430180c7fddb04b99e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/32bf5990de5230430180c7fddb04b99e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/32bf5990de5230430180c7fddb04b99e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/32bf5990de5230430180c7fddb04b99e.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"change_message_id":"88ecdbf4b3839cc7aa75068491400ada2eb6077a","unresolved":false,"context_lines":[{"line_number":126,"context_line":"                                /*html*/`\r"},{"line_number":127,"context_line":"                                    \u003cdiv\u003e\r"},{"line_number":128,"context_line":"                                        \u003cp\u003e\r"},{"line_number":129,"context_line":"                                            \u003cimg style\u003d\"width: 30px; border-radius: 50%; vertical-align: middle; margin-right: 5px;\" src\u003d\"${dtps.escapeAttr(user.photoURL)}\" /\u003e\r"},{"line_number":130,"context_line":"                                            \u003ca href\u003d\"${user.url}\" style\u003d\"color: var(--text); vertical-align: middle;\"\u003e${DOMPurify.sanitize(user.name)}\u003c/a\u003e\r"},{"line_number":131,"context_line":"                                        \u003c/p\u003e\r"},{"line_number":132,"context_line":"                                    \u003c/div\u003e\r"}],"source_content_type":"text/javascript","patch_set":1,"id":"95a70a4f_e9f33fe8","line":129,"in_reply_to":"7300fe30_3889c647","updated":"2026-10-13 20:34:59.000000000","message":"Done","commit_id":"080715410a8ebd446f0d140eda9f100c281612a5"}]}
