⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 283484 in webkit


Ignore:
Timestamp:
Oct 3, 2021, 4:09:02 PM (5 years ago)
Author:
weinig@apple.com
Message:

WebXRSession's m_environmentBlendMode and m_interactionMode are never initialized
https://bugs.webkit.org/show_bug.cgi?id=231144

Reviewed by Dean Jackson.

The m_environmentBlendMode and m_interactionMode members of WebXRSession were
not being initialized to anything and therefor were giving random data. This
is not really testable, as the result is just that the tests no longer flake.

  • Modules/webxr/WebXRSession.h:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r283483 r283484  
     12021-10-03  Sam Weinig  <weinig@apple.com>
     2
     3        WebXRSession's m_environmentBlendMode and m_interactionMode are never initialized
     4        https://bugs.webkit.org/show_bug.cgi?id=231144
     5
     6        Reviewed by Dean Jackson.
     7
     8        The m_environmentBlendMode and m_interactionMode members of WebXRSession were
     9        not being initialized to anything and therefor were giving random data. This
     10        is not really testable, as the result is just that the tests no longer flake.
     11
     12        * Modules/webxr/WebXRSession.h:
     13
    1142021-10-03  David Kilzer  <ddkilzer@apple.com>
    215
  • trunk/Source/WebCore/Modules/webxr/WebXRSession.h

    r280307 r283484  
    127127    void applyPendingRenderState();
    128128
    129     XREnvironmentBlendMode m_environmentBlendMode;
    130     XRInteractionMode m_interactionMode;
     129    XREnvironmentBlendMode m_environmentBlendMode { XREnvironmentBlendMode::Opaque };
     130    XRInteractionMode m_interactionMode { XRInteractionMode::WorldSpace };
    131131    XRVisibilityState m_visibilityState { XRVisibilityState::Visible };
    132132    UniqueRef<WebXRInputSourceArray> m_inputSources;
Note: See TracChangeset for help on using the changeset viewer.