| Summary: | Document.dir should reflect the 'dir' attribute of the root html element | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||
| Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | ap, commit-queue, darin, esprehn+autocc, gyuyoung.kim, rniwa, sam | ||||
| Priority: | P2 | Keywords: | BlinkMergeCandidate | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| URL: | https://src.chromium.org/viewvc/blink?view=rev&revision=171734 | ||||||
| Bug Depends on: | 141480 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Chris Dumez
2015-01-26 20:09:36 PST
Created attachment 245408 [details]
Patch
Comment on attachment 245408 [details] Patch Clearing flags on attachment: 245408 Committed r179166: <http://trac.webkit.org/changeset/179166> All reviewed patches have been landed. Closing bug. This caused a regression where we crash if the document has no root element when calling document.dir. Filed https://bugs.webkit.org/show_bug.cgi?id=141480. Comment on attachment 245408 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=245408&action=review > Source/WebCore/html/HTMLDocument.cpp:111 > + if (!is<HTMLHtmlElement>(*documentElement)) We need to stop dereferencing documentElement here as documentElement can be null. is<>() will take care of the null-check for us. |