Parse errors for XML data are already handled in 4d8f9a9add1805a5cb3b7fd1cc1ff8dd4b020fe4 -- this is a follow-up to suppress unnecessary console errors.
Add a chrome and XBL accessor for the sandboxed scripts flag to Document WEBIDL.
This also includes changes to use the new function instead of getting and checking the sandbox flags in most places.