Summary: | [chromium] WebDocument:applicationID() crashes on <meta> tag with no http-equiv attribute | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | John Gregg <johnnyg> | ||||||||
Component: | WebKit API | Assignee: | John Gregg <johnnyg> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | aa, commit-queue, fishd, webkit.review.bot | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | PC | ||||||||||
OS: | OS X 10.5 | ||||||||||
Attachments: |
|
Description
John Gregg
2010-03-04 15:27:58 PST
Created attachment 50061 [details]
patch
Attachment 50061 [details] did not pass style-queue:
Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1
WebKit/chromium/src/WebDocument.cpp:152: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
Total errors found: 1 in 2 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 50062 [details]
fix style warning
Comment on attachment 50062 [details]
fix style warning
Can we please just remove WebDocument::applicationID. As I mentioned to Aaron,
it doesn't belong here and can be implemented purely in terms of WebKit APIs.
Comment on attachment 50062 [details] fix style warning > Index: WebKit/chromium/src/WebDocument.cpp > + if (element->hasAttribute("http-equiv") > + && element->getAttribute("http-equiv").lower() == kChromeApplicationHeader) { > return element->getAttribute("value"); > } nit: there should be no brackets around single line statements Darin, I knew you'd say that. I am going to start pulling it out soon. Can johnnyg just fix this immediate issue in the meantime? Because notifications are hooked up to applicationID() already, this is causing real crashes when people use notifications... so i'd rather not wait for a large refactor to fix that. Created attachment 50065 [details]
removing {}s
well I didn't put the braces there but I can remove them...
Sorry to give you a hard time about the applicationID thing. I would have r+'d the patch before if it didn't have the style issue. Comment on attachment 50065 [details] removing {}s Clearing flags on attachment: 50065 Committed r55571: <http://trac.webkit.org/changeset/55571> All reviewed patches have been landed. Closing bug. |