Store frameIds directly in background page