MouseEvent.buttons of contextmenu event should mention about the platform dependency.
On Windows, context menu should be opened when mouse button is released. However, on the other platforms, it may be not. Therefore buttons won't contain the mouse button triggering to open the context menu on Windows, but may contain on the other platforms.
There is a note like:
Depending on the platform, the contextmenu event may be dispatched before or after the mouseup event.
MouseEvent.buttons
of contextmenu event should mention about the platform dependency.On Windows, context menu should be opened when mouse button is released. However, on the other platforms, it may be not. Therefore
buttons
won't contain the mouse button triggering to open the context menu on Windows, but may contain on the other platforms.There is a note like:
But I think that this is not enough for
buttons
.(Coming from https://bugzilla.mozilla.org/show_bug.cgi?id=1770671)