This file is indexed.

/usr/share/vdr/plugins/live/js/live/browserwin.js is in vdr-plugin-live 0.2.0+git20130305-6.1+b1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
/*
 * This is part of the live vdr plugin. See COPYING for license information.
 *
 * browserwin.js
 *
 * BrowserWin class, BrowserWin.Manager class
 *
 * Extension of mootools to create and manage browser windows.
 */

/*
Class: BrowserWin
	Create and browswer window pointing at an specific URL.

Arguments:

Options:

Note:
*/
var BrowserWin = new Class({
	  options: {
		  size: { width: 720, height: 640 },
		  toolbar: false,
		  location: false,
		  directories: false,
		  statusbar: false,
		  menubar: false,
		  scrollbar: false,
		  resizable: true,
		  wm: false // overide default window manager.
	  },

	  initialize: function(id, url, options){
			this.setOptions(options);
			this.id = id;
			this.wm = this.options.wm || BrowserWin.$wm;
			this.wm.register(this, url);
		},

	  create: function(url){
			winOpts =  "height=" + this.options.size.height;
			winOpts += ",width=" + this.options.size.width;
			winOpts += ",toolbar=" + this.options.toolbar;
			winOpts += ",location=" + this.options.toolbar;
			winOpts += ",directories=" + this.options.directories;
			winOpts += ",statusbar=" + this.options.statusbar;
			winOpts += ",menubar=" + this.options.menubar;
			winOpts += ",scrollbars=" + this.options.scrollbars;
			winOpts += ",resizable=" + this.options.resizable;
			if ($defined(this.options.top)) {
				winOpts += ",top=" + this.options.top;
			}
			if ($defined(this.options.left)) {
				winOpts += ",left=" + this.options.left;
			}
			this.$winRef = window.open(url, this.id, winOpts);
		},

	  close: function(){
			this.wm.unregister(this);
		}
	});

BrowserWin.implement(new Events, new Options);

BrowserWin.Manager = new Class({
	  options: {
		  onRegister: Class.empty,
		  onUnregister: Class.empty
	  },

	  initialize: function(options){
			this.setOptions(options);
			this.hashTab = new Hash();
		},

	  register: function(browserWin, url){
			this.unregister(browserWin);

			browserWin.create(url);
			this.hashTab.set(browserWin.id, browserWin);
			this.fireEvent('onRegister', [browserWin]);
		},

	  unregister: function(browserWin){
			if (this.hashTab.hasKey(browserWin.id)) {
				winRef = this.hashTab.get(browserWin.id);
				winRef.$winRef.close();
				this.fireEvent('onUnregister', [winRef]);
				this.hashTab.remove(browserWin.id);
			}
		}
	});

BrowserWin.Manager.implement(new Events, new Options);

BrowserWin.$wm = null;
window.addEvent('domready', function(){
		BrowserWin.$wm = new BrowserWin.Manager();
	});