Talk:Internet Browser

Active discussions

Creditable Source?

Yeah sure, a UA test can EASILY be faked. Though, this unlike the Wii U UA string doesn't include a region suffix which in my eyes confirms it since nobody knew about it being region free.

Filfat (talk) 11:27, 13 January 2017 (CST)

Websession proposed changes

I tried edit the page but ends considered being spam These are the changes I want do



Next info was tested in 9.0.0

In the js side, there is a method called window.nx.sendMessage(arg) that sends data to the native side, this method returns a boolean indicating if sending was succesful and accepts a string as an argument. The string is encoded like a C null terminated string in the message content. For receive messages from native part, there is a dom event called message which is dispatched when a message arrives. The event can be listened using window.nx.addEventListener("message", callback) being callback a function which first parameter is like a dom event arg and contains a member called data which contains the string decoded from the arrived message

If messages aren't acked by the native part, js side will not longer receive messages. Ack to web applet must have 4 bytes after the message content or will crash.

SessionMessage

Offset Size Description
0x0 0x10 #SessionMessageHeader
0x10 Size from header Message content
After message content 0x4 if message is ack, 0x0 otherwise Padding

SessionMessageHeader

Offset Size Description
0x0 0x4 Message ID
0x4 0x4 Content size following the header.
0x8 0x8 Unused

IDs

ID Content size Description
0x0 Arbitrary Arbitrary content. Used to communicate with the applet via JsExtensions used by the Js being run by the applet on the current page.
0x1000 0xc Ack. Content: first u32 is the entire storage size of the message being acked, the rest is not used.


Amicuchu (talk) 16:43, 5 January 2020 (UTC)