track privacy status and window id of basic window events with ugly work...

...around


ugly but obvious hack to get window id from a browserWindow: get the corresponding window id from the first tab in browserWindow.tabs. Gross.