Closed Bug 1176698 Opened 4 years ago Closed 4 years ago

Use fallible allocator for attribute values in the HTML parser

Categories

(Core :: HTML: Parser, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

References

Details

Attachments

(2 files, 2 obsolete files)

No description provided.
Attached patch htmlparser repo patch (obsolete) — Splinter Review
Attached patch m-c patch (obsolete) — Splinter Review
This is some ugly code, but AFAICT, this is the most practical way to signal error out of the nsHtml5Portability calls. :-(
Attachment #8625289 - Flags: review?(wchen)
Comment on attachment 8625290 [details] [diff] [review]
m-c patch

See bug 1029671 comment 36 for the big picture of the whole queue and about landing.
Attachment #8625290 - Flags: review?(wchen)
Attachment #8625290 - Flags: review?(wchen) → review+
Comment on attachment 8625289 [details] [diff] [review]
htmlparser repo patch

Review of attachment 8625289 [details] [diff] [review]:
-----------------------------------------------------------------

::: src/nu/validator/htmlparser/impl/MetaScanner.java
@@ +164,5 @@
>      
> +    // CPPONLY: private TreeBuilder treeBuilder;
> +    
> +    public MetaScanner(
> +        // CPPONLY: TreeBuilder tb        

trailing whitespace

::: src/nu/validator/htmlparser/impl/TreeBuilder.java
@@ +3184,5 @@
>       * @throws SAXException
>       * @throws StopSniffingException
>       */
> +    public static String extractCharsetFromContent(String attributeValue
> +        // CPPONLY: , TreeBuilder tb        

trailing whitespace
Attachment #8625289 - Flags: review?(wchen) → review+
Attachment #8625289 - Attachment is obsolete: true
Attachment #8644273 - Flags: review+
Attachment #8625290 - Attachment is obsolete: true
Attachment #8644274 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/470bee720c97
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in before you can comment on or make changes to this bug.