Last Comment Bug 737013 - Expose sanitizer flags to extensions/XULRunner apps that wish to use sanitized fragment parsing
: Expose sanitizer flags to extensions/XULRunner apps that wish to use sanitize...
Status: RESOLVED FIXED
: dev-doc-needed
Product: Core
Classification: Components
Component: HTML: Parser (show other bugs)
: Trunk
: All All
: -- normal (vote)
: mozilla14
Assigned To: Henri Sivonen (:hsivonen)
:
Mentors:
Depends on: 650776
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-19 07:20 PDT by Henri Sivonen (:hsivonen)
Modified: 2012-03-21 12:01 PDT (History)
3 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Expose a new method, migrate callers (12.46 KB, patch)
2012-03-19 08:40 PDT, Henri Sivonen (:hsivonen)
no flags Details | Diff | Review
Expose a new method, migrate callers, with IDL that actually compiles (13.13 KB, patch)
2012-03-20 08:30 PDT, Henri Sivonen (:hsivonen)
bugs: review+
Details | Diff | Review

Description Henri Sivonen (:hsivonen) 2012-03-19 07:20:16 PDT
Add nsIDOMDocumentFragment nsIParserUtils::parseFragment(in AString fragment, in boolean isXML, in nsIURI baseURI, in nsIDOMElement element, in unsigned long flags); that's like nsIDOMDocumentFragment nsIScriptableUnescapeHTML::parseFragment(in AString fragment, in boolean isXML, in nsIURI baseURI, in nsIDOMElement element); but exposes the sanitizer flags.
Comment 1 Henri Sivonen (:hsivonen) 2012-03-19 08:40:33 PDT
Created attachment 607178 [details] [diff] [review]
Expose a new method, migrate callers
Comment 2 Henri Sivonen (:hsivonen) 2012-03-20 08:30:35 PDT
Created attachment 607564 [details] [diff] [review]
Expose a new method, migrate callers, with IDL that actually compiles
Comment 3 Henri Sivonen (:hsivonen) 2012-03-20 11:19:40 PDT
Comment on attachment 607564 [details] [diff] [review]
Expose a new method, migrate callers, with IDL that actually compiles

Let's believe the sanitizer flags work based on the test case landed for bug 650776.
Comment 4 Henri Sivonen (:hsivonen) 2012-03-21 03:17:43 PDT
Thanks for the r+.

https://hg.mozilla.org/integration/mozilla-inbound/rev/eb7570cdfb9e
Comment 5 Matt Brubeck (:mbrubeck) 2012-03-21 12:01:30 PDT
https://hg.mozilla.org/mozilla-central/rev/eb7570cdfb9e

Note You need to log in before you can comment on or make changes to this bug.