File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ class SystemCapabilityManager extends _SubManagerBase {
194194 currentWindowId = PredefinedWindows . DEFAULT_WINDOW ;
195195 }
196196 if ( currentWindowId === windowId ) {
197+ windowCapability . setWindowID ( windowId ) ;
197198 return windowCapability ;
198199 }
199200 }
@@ -749,6 +750,18 @@ class SystemCapabilityManager extends _SubManagerBase {
749750 && defaultMainWindow . getImageTypeSupported ( ) !== undefined
750751 && defaultMainWindow . getImageTypeSupported ( ) . length > 0 ) ;
751752
753+ const displayCapabilitiesOld = this . getDisplayCapabilities ( ) ;
754+
755+ if ( displayCapabilitiesOld !== null && displayCapabilitiesOld !== undefined ) { // The capability exists
756+ // Copied from the RAI response, since this parameter is not present in WindowCapability
757+ convertedCapabilities . setScreenParams ( displayCapabilitiesOld . getScreenParams ( ) ) ;
758+ if ( displayCapabilitiesOld . getMediaClockFormats ( ) === null ) {
759+ convertedCapabilities . setMediaClockFormats ( [ ] ) ; // insert empty array since this parameter is mandatory
760+ } else {
761+ convertedCapabilities . setMediaClockFormats ( displayCapabilitiesOld . getMediaClockFormats ( ) ) ;
762+ }
763+ }
764+
752765 return convertedCapabilities ;
753766 }
754767}
You can’t perform that action at this time.
0 commit comments