Closed
Bug 686913
Opened 13 years ago
Closed 13 years ago
HTMLProgressElement should not be form controls
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: mounir, Assigned: mjschranz)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 5 obsolete files)
(deleted),
patch
|
mjschranz
:
review+
|
Details | Diff | Splinter Review |
Thus, they should not have |.form| attributes.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → schranz.m
Reporter | ||
Comment 2•13 years ago
|
||
Comment on attachment 612436 [details] [diff] [review]
Patch V1 removing form attribute
Review of attachment 612436 [details] [diff] [review]:
-----------------------------------------------------------------
The class shouldn't inherit from nsGenericHTMLFormElement but from nsGenericHTMLElement.
Could you update the patch with that change?
Attachment #612436 -
Flags: review?(mounir)
Assignee | ||
Comment 3•13 years ago
|
||
I'm not sure if I missed anything here or not but the patch doesn't seem to be blowing up my try server test of it so that's a decent sign!
https://tbpl.mozilla.org/?tree=Try&rev=1112805beb34
Attachment #612436 -
Attachment is obsolete: true
Attachment #613050 -
Flags: review?
Assignee | ||
Comment 4•13 years ago
|
||
Accidentally didn't assign a reviewer!
Attachment #613050 -
Attachment is obsolete: true
Attachment #613050 -
Flags: review?
Attachment #613051 -
Flags: review?(mounir)
Reporter | ||
Comment 5•13 years ago
|
||
Comment on attachment 613051 [details] [diff] [review]
Patch V2 Changing Inheritance from GenericFormElement to GenericElement
Review of attachment 613051 [details] [diff] [review]:
-----------------------------------------------------------------
Sorry for not noticing that before but you have to remove NS_FORM_PROGRESS from content/html/content/public/nsIFormControl.h and all occurences of that.
You will also have to fix the tests that are failing.
Except that, your patch looks good.
::: content/html/content/src/nsHTMLProgressElement.cpp
@@ +165,1 @@
> aValue, aResult);
nit: could you re-align this line?
Attachment #613051 -
Flags: review?(mounir)
Assignee | ||
Comment 6•13 years ago
|
||
Fixed up the tests I was causing to fail with this patch. Or at least, removed them since they were checking against a now non existent form attribute.
Try server results of this are here https://tbpl.mozilla.org/?tree=Try&rev=874fc96bb753
Let me know if there's something else I've missed.
Attachment #613051 -
Attachment is obsolete: true
Attachment #616860 -
Flags: review?(mounir)
Reporter | ||
Comment 7•13 years ago
|
||
Comment on attachment 616860 [details] [diff] [review]
Patch V3 Changing Inheritance from GenericFormElement to GenericElement
Review of attachment 616860 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with the two changes applied.
::: content/html/content/src/nsHTMLProgressElement.cpp
@@ -68,2 @@
> NS_IMETHOD Reset();
> NS_IMETHOD SubmitNamesValues(nsFormSubmission* aFormSubmission);
You should remove Reset() and SubmitNamesValues() too. nsHTMLProgressElement doesn't inherit from nsIFormControl anymore.
::: content/html/content/test/test_bug588683-1.html
@@ -453,5 @@
> is(formsList[i].elements[j], elementsList[j],
> "The form should contain " + elementsList[j]);
> }
> - is(elementsList[j].form, formsList[i],
> - "The form owner should be the form associated to the list");
Keep that. You should only remove "progress" from the array |elementNames|.
Attachment #616860 -
Flags: review?(mounir) → review+
Assignee | ||
Comment 8•13 years ago
|
||
Two minor changes made. Carrying over the review+ mentioned above by mounir.
Attachment #616860 -
Attachment is obsolete: true
Attachment #616992 -
Flags: review+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Reporter | ||
Comment 9•13 years ago
|
||
Comment on attachment 616992 [details] [diff] [review]
Patch V3 Changing Inheritance from GenericFormElement to GenericElement
Review of attachment 616992 [details] [diff] [review]:
-----------------------------------------------------------------
For a few days, patches need to be approved to go to mozilla-central.
Attachment #616992 -
Flags: review+
Attachment #616992 -
Flags: approval-mozilla-central?
Updated•13 years ago
|
Attachment #616992 -
Flags: approval-mozilla-central? → approval-mozilla-central+
Comment 10•13 years ago
|
||
Comment 11•13 years ago
|
||
Backed out due to build failures.
https://hg.mozilla.org/integration/mozilla-inbound/rev/1f41d05f51c6
Logs:
https://tbpl.mozilla.org/php/getParsedLog.php?id=11096252&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=11096228&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=11096257&tree=Mozilla-Inbound
../../../../../content/html/content/src/nsHTMLProgressElement.cpp:124: error: no 'nsresult nsHTMLProgressElement::Reset()' member function declared in class 'nsHTMLProgressElement'
../../../../../content/html/content/src/nsHTMLProgressElement.cpp:131: error: no 'nsresult nsHTMLProgressElement::SubmitNamesValues(nsFormSubmission*)' member function declared in class 'nsHTMLProgressElement'
make[8]: *** [nsHTMLProgressElement.o] Error 1
http://mozillamemes.tumblr.com/post/19498220636/try-server-takes-the-beatings-so-mozilla-inbound
Target Milestone: mozilla14 → ---
Assignee | ||
Comment 12•13 years ago
|
||
http://i0.kym-cdn.com/entries/icons/original/000/000/554/facepalm.jpg
Man do I feel dumb right now.
I pushed it up to try during, but didn't on the final one...
Anyway, fixed and going through try right now!
Reporter | ||
Comment 13•13 years ago
|
||
Could you attach the updated patch so I can push it to mozilla-inbound?
Assignee | ||
Comment 14•13 years ago
|
||
Yeah, last one was me just being silly. As you can see in this try run, it's actually just fine now!
https://tbpl.mozilla.org/?tree=Try&rev=c18e66d1a153
Most of the fails I see are with fullscreen tests.
Attachment #616992 -
Attachment is obsolete: true
Attachment #617458 -
Flags: review+
Reporter | ||
Updated•13 years ago
|
Summary: HTMLProgressElement and HTMLMeterElement should not be form controls → HTMLProgressElement should not be form controls
Reporter | ||
Comment 16•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite- → in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
Reporter | ||
Updated•13 years ago
|
Keywords: dev-doc-needed
Updated•13 years ago
|
Target Milestone: mozilla15 → mozilla14
Comment 17•13 years ago
|
||
Docs updated:
https://developer.mozilla.org/en/HTML/Element/progress
And listed on Firefox 14 for developers.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•