Closed Bug 838343 Opened 13 years ago Closed 13 years ago

Convert HTMLFrameElement to WebIDL

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: baku, Assigned: baku)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 4 obsolete files)

No description provided.
Attachment #710610 - Flags: review?(peterv)
Attached patch part 2 - webidl (obsolete) — Splinter Review
Still waiting for green on try.
Attachment #710612 - Flags: review?(peterv)
We clearly have terrible test coverage. :( As far as I can tell, this needs to implement MozFrameLoaderOwner like XULElement does and also needs a WebIDL equivalent for nsIDOMMozBrowserFrame and nsIMozBrowserFrame. Justin, it looks like nsIDOMMozBrowserFrame stuff should just be exposed to untrusted web content and nsIMozBrowserFrame should be [ChromeOnly], right?
Attached patch part 1 - renaming (obsolete) — Splinter Review
small indentation problem
Attachment #710610 - Attachment is obsolete: true
Attachment #710610 - Flags: review?(peterv)
Attachment #711248 - Flags: review?(peterv)
Attached patch part 2 - webidl (obsolete) — Splinter Review
Attachment #710612 - Attachment is obsolete: true
Attachment #710612 - Flags: review?(peterv)
Attachment #711250 - Flags: review?(peterv)
Might be worth putting GetContentDocument and GetContentWindow (and anything else shared with <iframe>, in fact) on the generic frame element, so <iframe> can just pick them up from there too.
Comment on attachment 711248 [details] [diff] [review] part 1 - renaming Review of attachment 711248 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/html/content/src/nsHTMLFrameElement.cpp @@ +2,5 @@ > /* This Source Code Form is subject to the terms of the Mozilla Public > * License, v. 2.0. If a copy of the MPL was not distributed with this > * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ > > +#include "HTMLFrameElement.h" Is this really needed here? I'd remove it (or leave it in the .cpp) if we can.
Attachment #711248 - Flags: review?(peterv) → review+
Comment on attachment 711250 [details] [diff] [review] part 2 - webidl Review of attachment 711250 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/bindings/Bindings.conf @@ +407,5 @@ > }, > > +'HTMLFrameElement': { > + 'hasInstanceInterface': 'nsIDOMHTMLFrameElement', > +}, You can now drop this (bug 838269 made it obsolete). ::: dom/webidl/HTMLFrameElement.webidl @@ +9,5 @@ > + * Opera Software ASA. You are granted a license to use, reproduce > + * and create derivative works of this document. > + */ > + > +// http://www.whatwg.org/specs/web-apps/current-work/#dom-frameelement I think this should be http://www.whatwg.org/specs/web-apps/current-work/#htmlframeelement. @@ +16,5 @@ > + attribute DOMString scrolling; > + attribute DOMString src; > + attribute DOMString frameBorder; > + attribute DOMString longDesc; > + attribute boolean noResize; All of these need SetterThrows, no? @@ +23,5 @@ > + [GetterThrows] > + readonly attribute WindowProxy? contentWindow; > + > + [TreatNullAs=EmptyString] attribute DOMString marginHeight; > + [TreatNullAs=EmptyString] attribute DOMString marginWidth; SetterThrows?
Attachment #711250 - Flags: review?(peterv) → review+
(In reply to Peter Van der Beken [:peterv] from comment #9) > Comment on attachment 711248 [details] [diff] [review] > part 1 - renaming > > Review of attachment 711248 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: content/html/content/src/nsHTMLFrameElement.cpp > @@ +2,5 @@ > > /* This Source Code Form is subject to the terms of the Mozilla Public > > * License, v. 2.0. If a copy of the MPL was not distributed with this > > * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ > > > > +#include "HTMLFrameElement.h" > > Is this really needed here? I'd remove it (or leave it in the .cpp) if we > can. It's needed. This is the cpp file that defines the class defined by HTMLFrameElement.h Maybe I can change it to #include "mozilla/dom/HTMLFrameElement.h"
Attachment #711248 - Attachment is obsolete: true
Attachment #715092 - Flags: review+
Attached patch part 2 - webidlSplinter Review
Attachment #711250 - Attachment is obsolete: true
Attachment #715093 - Flags: review+
Keywords: checkin-needed
(In reply to Andrea Marchesini (:baku) from comment #11) > (In reply to Peter Van der Beken [:peterv] from comment #9) > > Comment on attachment 711248 [details] [diff] [review] > > > +#include "HTMLFrameElement.h" > > > > Is this really needed here? I'd remove it (or leave it in the .cpp) if we > > can. > > It's needed. This is the cpp file that defines the class defined by > HTMLFrameElement.h Ugh, that was badly quoted. It was supposed to be about |#include "mozilla/Util.h"|.
> +#include "HTMLFrameElement.h" Shouldn't that be mozilla/dom/HTMLFrameElement.h ?
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Depends on: 842986
Depends on: 844462
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: