Hey,
I think it is not visible to web developers in most of the cases on
which non-object interface these methods or properties are installed. I
would therefore recommend to just make the WindowTimers, WindowBase64,
ImageBitmapFactories, GlobalFetch and IDBEnvironment pages redirect to
the WindowOrWorkerGlobalScope mixin.
Likely more relevant here is what is available to which scope (window,
workers or both). So, for example the setTimeout method (quite a popular
one), was on WindowTimers and is now on WindowOrWorkerGlobalScope. It
doesn't change anything, because WindowTimers was also available to
workers. Sometimes this does change though.
Why are changing the interfaces/mixins anyway? Why isn't just
window.setTimeout? Well, it is more convenient if we follow closely with
the IDLs and we have started to visualize inheritance and we build the
side navigations based on this inheritance.
In the sidebars this is visible whenever use see "Inheritance" followed
by a list of parent interfaces or "Implements", e.g. on
https://developer.mozilla.org/en-US/docs/Web/API/Window where you can
see methods and properties of all the mixins that the window object uses.
As a visualization, some pages use an Inheritance diagram, but it is
still a bit experimental
https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent
In order for this to work, inheritance data has to be maintained. You
can find this data in this macro:
https://github.com/mozilla/kumascript/blob/master/macros/InterfaceData.json
So, what you still need to do, is to update the entry for "Window"
there. Remove the WindowTimers, WindowBase64, ImageBitmapFactories,
GlobalFetch and IDBEnvironment from the "impl" list and add
WindowOrWorkerGlobalScope there. Do the same for "WorkerGlobalScope".
I hope this makes things more clear. Please don't hesitate to ask in
case you have any more questions.
-Florian
Florian Scholz
Technical Writer / Macro-Meister
Mozilla Developer Network
> _______________________________________________
> mdn mailing list
>
m...@lists.mozilla.org
>
https://lists.mozilla.org/listinfo/mdn