Skip to content

Commit

Permalink
- Part 1 add support for <applet> tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
oceanlantern committed Mar 31, 2020
1 parent a73cb95 commit 6132f75
Show file tree
Hide file tree
Showing 12 changed files with 770 additions and 5 deletions.
8 changes: 7 additions & 1 deletion dom/bindings/BindingUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#include "mozilla/dom/HTMLEmbedElement.h"
#include "mozilla/dom/HTMLElementBinding.h"
#include "mozilla/dom/HTMLEmbedElementBinding.h"
#include "mozilla/dom/HTMLAppletElementBinding.h"
#include "mozilla/dom/MaybeCrossOriginObject.h"
#include "mozilla/dom/ReportingUtils.h"
#include "mozilla/dom/XULElementBinding.h"
Expand Down Expand Up @@ -2274,8 +2275,13 @@ void UpdateReflectorGlobal(JSContext* aCx, JS::Handle<JSObject*> aObjArg,
nsresult rv = UNWRAP_OBJECT(HTMLObjectElement, &maybeObjLC, htmlobject);
if (NS_FAILED(rv)) {
rv = UNWRAP_OBJECT(HTMLEmbedElement, &maybeObjLC, htmlobject);

if (NS_FAILED(rv)) {
htmlobject = nullptr;
//rv = UNWRAP_OBJECT(HTMLAppletElement, &maybeObjLC, htmlobject);

if (NS_FAILED(rv)) {
htmlobject = nullptr;
}
}
}
if (htmlobject) {
Expand Down
4 changes: 4 additions & 0 deletions dom/bindings/Bindings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ DOMInterfaces = {
'nativeType': 'nsHistory'
},

'HTMLAppletElement': {
'nativeType': 'mozilla::dom::HTMLAppletElement'
},

'HTMLBaseElement': {
'nativeType': 'mozilla::dom::HTMLSharedElement'
},
Expand Down
3 changes: 2 additions & 1 deletion dom/bindings/Configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,8 @@ def needsXrayResolveHooks(self):
"""
return (self.interface.getExtendedAttribute("NeedResolve") and
self.interface.identifier.name not in ["HTMLObjectElement",
"HTMLEmbedElement"])
"HTMLEmbedElement",
"HTMLAppletElement"])
def needsXrayNamedDeleterHook(self):
return self.operations["NamedDeleter"] is not None

Expand Down
Loading

0 comments on commit 6132f75

Please sign in to comment.