JsObject(HTMLDocument) not converted to HtmlDocument #17330
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-duplicate
Closed in favor of an existing report
library-js
This issue was originally filed by @DisDis
My chrome extension contains:
background.html
page1.html
background page registers javascript function "Page1.init"(pageDoc):$param1 $ {param1.runtimeType})");
js.context["Page1"] = new js.JsObject.jsify({
"init": (param1,param2,param3) {
print("Page1.init(
new UIPage1(param1);
}
});
page1 - get background window (used chrome.runtime.getBackgroundPage) and execute bw.Page1.init(document).
function initPage(){
chrome.runtime.getBackgroundPage(function(bw){
bw.Page1.init(document);
});
}
Real background log:
Page1.init([object HTMLDocument] JsObject)
Expect:
Page1.init(Instance of 'HtmlDocument' HtmlDocument)
Sample extension source code:
https://github.com/DisDis/JsOToHtmlDoc
The text was updated successfully, but these errors were encountered: