Is this necessary? The state of the bookmark button only ever represents the bookmarked state of the currently loaded page, regardless of when it's called. Could we not just always check this.currentTab.url?