.
D 2026-08-31T20:33:28.461
J icomment Landed\sacross\sef352402\s(policy,\snonces,\shandlers,\shashed\sscripts),\sce8dcd1a\s(url-safe\snonce)\sand\sthe\salphabet\sregression\stest.\n\nAll\s14\sinline\shandlers\sgone:\s11\sidentical\sonchange=this.form.submit()\sbecame\sdata-on:change\swith\srequestSubmit\s(validates,\sunlike\ssubmit),\stwo\sselection\shandlers\sbecame\sexpressions,\sand\sthe\scopy-hash\sbutton\smoved\sto\sa\sdelegated\sassets/copy.js.\sScripts\snow\scarry\scontent-hashed\simmutable\sURLs\srather\sthan\srevalidating\sdaily.\n\nPolicy\sserved\son\severy\spage:\sdefault-src\sself;\sscript-src\sself\snonce-...;\sstyle-src\sself;\sbase-uri\snone;\sframe-ancestors\snone.\sNo\sunsafe-eval,\sno\sunsafe-inline.\n\nTHE\sAUDIT\sfound\sthe\sexpressions\salready\ssafe,\sfor\sa\sreason\sworth\spinning:\shtml/template\sstrips\sa\sdata-\sprefix\sbefore\sclassifying\san\sattribute,\sso\sdata-on:drop\sreads\sas\son*\sand\sgets\sthe\sJAVASCRIPT\sescaper.\sA\shostile\sboard\sstatus\srenders\sas\s\\u0027\srather\sthan\s'\s—\swhich\smatters\sbecause\san\sHTML-escaped\squote\sdecodes\sback\sto\sa\squote\sbefore\sany\sscript\sreads\sthe\sattribute.\sBoard\sstatuses\scome\sfrom\s.quarry/tickets.json,\supstream\scontent\son\sa\smirror.\sPinned\sby\sTestExpressionsGetJavaScriptEscaping.\n\nONE\sREAL\sTRAP,\sfound\sonly\sin\sa\sbrowser:\sthe\snonce\swas\sstandard\sbase64,\swhose\s+\sis\sescaped\sto\s+\sinside\sdata-nonce.\sThe\sbrowser\sdecodes\sit\sbefore\sdatastar\sreads\sit,\sso\sthe\stwo\svalues\sdisagreed\sby\sone\sround\sof\sencoding\sand\severy\sinjected\sscript\swas\srejected\s—\sSILENTLY,\swith\sno\sconsole\sviolation.\sThe\spage\sjust\sstopped\sbeing\sinteractive.\sFixed\swith\surl-safe\sbase64\sand\spinned\sby\sTestNonceNeedsNoHTMLEscaping.\n\nVerified\sin\sa\sbrowser\sunder\sthe\senforced\spolicy:\sfile\swindowing\s(2,617\sto\s5,166\snodes\son\sscroll),\sticket\sselect\ssave-on-change,\scomposer\slive\spreview.\sNo\sconsole\serrors.
J mimetype text/x-markdown
J resolution Fixed
J status Closed
K 3b0939bad2dd72e9fd91a979d4d2f931ae6fe7a4
U ai-local
Z 7624b479f5deaf9b91027998f5fc3afd