Closed
Bug 838343
Opened 13 years ago
Closed 13 years ago
Convert HTMLFrameElement to WebIDL
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: baku, Assigned: baku)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 4 obsolete files)
|
13.37 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
|
7.63 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Updated•13 years ago
|
Blocks: ParisBindings, 826738
| Assignee | ||
Comment 1•13 years ago
|
||
Attachment #710610 -
Flags: review?(peterv)
| Assignee | ||
Comment 2•13 years ago
|
||
Still waiting for green on try.
Attachment #710612 -
Flags: review?(peterv)
| Assignee | ||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
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?
| Assignee | ||
Comment 5•13 years ago
|
||
small indentation problem
Attachment #710610 -
Attachment is obsolete: true
Attachment #710610 -
Flags: review?(peterv)
Attachment #711248 -
Flags: review?(peterv)
| Assignee | ||
Comment 6•13 years ago
|
||
Attachment #710612 -
Attachment is obsolete: true
Attachment #710612 -
Flags: review?(peterv)
Attachment #711250 -
Flags: review?(peterv)
Comment 7•13 years ago
|
||
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.
| Assignee | ||
Comment 8•13 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=0a1e9cb05950 green on try
Comment 9•13 years ago
|
||
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 10•13 years ago
|
||
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+
| Assignee | ||
Comment 11•13 years ago
|
||
(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"
| Assignee | ||
Comment 12•13 years ago
|
||
Attachment #711248 -
Attachment is obsolete: true
Attachment #715092 -
Flags: review+
| Assignee | ||
Comment 13•13 years ago
|
||
Attachment #711250 -
Attachment is obsolete: true
Attachment #715093 -
Flags: review+
| Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 14•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/abba7ec43f00
https://hg.mozilla.org/integration/mozilla-inbound/rev/6b7b42fdfd57
Keywords: checkin-needed
Comment 15•13 years ago
|
||
(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"|.
Comment 16•13 years ago
|
||
> +#include "HTMLFrameElement.h"
Shouldn't that be mozilla/dom/HTMLFrameElement.h ?
Comment 17•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6b7b42fdfd57
https://hg.mozilla.org/mozilla-central/rev/abba7ec43f00
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•