Questions tagged [webidl]

Web IDL is an interface definition language, that can be used to describe interfaces that are intended to be implemented in web browsers.

Web IDL is an interface definition language that can be used to describe interfaces that are intended to be implemented in web browsers. Web IDL is an IDL variant with a number of features that allow the behavior of common script objects in the web platform to be specified more readily.

26 questions
1
vote
0 answers

How to add a IDL Speech Recognition api to javascript

I'm new to using api's but I'd like to implement a speech recognition api in my program. I am trying to use the api at this link https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html I need to add the api into my java script how do I do so I…
Ibounes
  • 107
  • 3
  • 13
0
votes
0 answers

WebIDL object class strings

In https://webidl.spec.whatwg.org/ , while I see reference to specific prescribed class strings on interface prototypes, I don't see any prescribed behavior for class strings on objects which implement an interface. Is that up to the spec to specify…
Brett Zamir
  • 14,034
  • 6
  • 54
  • 77
0
votes
1 answer

TypeError: Invalid schema configuration: `isAdmin.isAdmin` schematype definition is invalid

The server is crashing because of the line isAdmin: { isAdmin: boolean, default: false },
mertvae
  • 3
  • 1
0
votes
0 answers

Where is the WebIDL definition for window.JSON?

I'm looking for the WebIDL definition for JSON.parse method. I looked into the Mozila's WebIDL definitions at GitHub but I couldn't find. Where is that?
Yuki Ito
  • 403
  • 4
  • 11
0
votes
1 answer

Emscripten: How to define webidl for C++ array type

Hi I'm trying to convert the QR library quirc to WASM. For that I wrote a C++ wrapper such that I can use webIDL to make the conversion more straight forward. However I am having troubles with defining array types in webIDL. What would be correct…
JaapH
  • 391
  • 2
  • 6
0
votes
0 answers

Why do the webidl specifications for WebGL extensions have the [NoInterfaceObject] extended attribute

The specification for [NoInterfaceObject] states that the attribute "should not be used in specifications unless required to specify the behavior of legacy APIs". Is there something about the WebGL extensions that are somehow unspecifiable and…
Zachary Burns
  • 453
  • 2
  • 9
0
votes
1 answer

xul doesn't export this method `JS_BeginRequest@@YAXPAUJSContext@@@Z` after updating to Firefox 46 GeckoFX 45

I am trying to use Firefox 46.0 SDK for GeckoFX45. I was able to find the changed uuid "Guid id" but after updating to Firefox 46 SDK I got this crash in this line…
Ebram
  • 1,042
  • 1
  • 13
  • 26
0
votes
1 answer

Making existing C++ project to work in Firefox OS

I have an existing c++/java project that works on linux, windows and android and I want to make it work on firefox OS (B2G) too. I have built binaries(daemon and client) of my project for FFOS and tested them on command line using adb shell. The…
sqahmad
  • 11
  • 2
0
votes
1 answer

WebIDL defines unsigned short to JS Number type

I read a document and it points out that WebIDL defines IDL unsigned short mapped to JS Number. The range of unsigned short is from 0 to 65535. JS Number can be -9007199254740992 to 9007199254740992. This really confuses me since the big gape…
Sam
  • 4,521
  • 13
  • 46
  • 81
0
votes
1 answer

Analogue of nsIClassInfo for objects created using WebIDL in Firefox (C++)?

I use Gecko SDK to build a C++ tool to inspect web pages (along with their internals) opened in Firefox. I use nsIClassInfo to get information on properties and methods (with their parameters) of inspected objects and it works great. Firefox is now…
-2
votes
2 answers

How can I develop applications that call my self c/c++ library API in KaiOS

I know KaiOS application usually developed by html/js/css, but I develop some special functions that is not exist in the current Web API, so I develop the API of the special functions using C/C++, and now, I want to define JS API to call the C/C++…
1
2