فهرست منبع

recover support for running speaker view from file:// protocol #3158

hakimel 3 سال پیش
والد
کامیت
3077ddbd09
3فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 0 0
      plugin/notes/notes.esm.js
  2. 0 0
      plugin/notes/notes.js
  3. 3 3
      plugin/notes/speaker-view.html

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
plugin/notes/notes.esm.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
plugin/notes/notes.js


+ 3 - 3
plugin/notes/speaker-view.html

@@ -365,11 +365,11 @@
 				var connectionTimeout = setTimeout( function() {
 				var connectionTimeout = setTimeout( function() {
 					connectionStatus.innerHTML = 'Error connecting to main window.<br>Please try closing and reopening the speaker view.';
 					connectionStatus.innerHTML = 'Error connecting to main window.<br>Please try closing and reopening the speaker view.';
 				}, 5000 );
 				}, 5000 );
-
+;
 				window.addEventListener( 'message', function( event ) {
 				window.addEventListener( 'message', function( event ) {
 
 
-					// Ignore post messages from other origins to prevent XSS
-					if( window.location.origin !== event.origin ){
+					// Validate the origin of this message to avoid XSS
+					if( window.location.origin !== event.origin && event.source !== window.opener ) {
 						return;
 						return;
 					}
 					}
 
 

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است