gecko-dev/accessible/interfaces
Nika Layzell 7ced96212e Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana
We'll probably want to do something more accurate in the future with a
custom clang static analysis pass which validates that XPIDL interfaces
have the expected vtable and struct layout, however doing so would be
more involved than the string matching done in this patch.

In addition to checking for extra virtual methods, we'll likely also
want to check for data members on interfaces, and reject them unless the
class is marked as `[builtinclass]` in addition to some other attribute
which we'll need to add to prevent them from being implemented in Rust
(as c++ data members will not be reflected by the rust macro).

There were 2 instances of a comment which contained the word 'virtual'
within a CDATA block. These comments were moved out of the CDATA block
to avoid triggering the error.

Differential Revision: https://phabricator.services.mozilla.com/D151068
2022-07-06 14:53:06 +00:00
..
gecko
ia2
msaa
moz.build
nsIAccessibilityService.idl
nsIAccessible.idl
nsIAccessibleAnnouncementEvent.idl
nsIAccessibleApplication.idl
nsIAccessibleCaretMoveEvent.idl
nsIAccessibleDocument.idl
nsIAccessibleEditableText.idl
nsIAccessibleEvent.idl
nsIAccessibleHideEvent.idl
nsIAccessibleHyperLink.idl
nsIAccessibleHyperText.idl
nsIAccessibleImage.idl
nsIAccessibleMacInterface.idl
nsIAccessibleObjectAttributeChangedEvent.idl
nsIAccessiblePivot.idl
nsIAccessibleRelation.idl
nsIAccessibleRole.idl
nsIAccessibleScrollingEvent.idl
nsIAccessibleSelectable.idl
nsIAccessibleStateChangeEvent.idl
nsIAccessibleStates.idl
nsIAccessibleTable.idl
nsIAccessibleTableChangeEvent.idl
nsIAccessibleText.idl
nsIAccessibleTextChangeEvent.idl
nsIAccessibleTextRange.idl
nsIAccessibleTextSelectionChangeEvent.idl
nsIAccessibleTypes.idl
nsIAccessibleValue.idl
nsIAccessibleVirtualCursorChangeEvent.idl