Commit 996afc9b authored by Tiger Oakes's avatar Tiger Oakes
Browse files

Clear FLAG_SECURE on stop

parent 88694edf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -52,5 +52,6 @@ class SecureWindowFeature(

    override fun stop() {
        scope?.cancel()
        window.clearFlags(FLAG_SECURE)
    }
}
+11 −0
Original line number Diff line number Diff line
@@ -80,4 +80,15 @@ class SecureWindowFeatureTest {

        verify(window).clearFlags(FLAG_SECURE)
    }

    @Test
    fun `remove flags on stop`() {
        val store = BrowserStore()
        val feature = SecureWindowFeature(window, store)

        feature.start()
        feature.stop()

        verify(window).clearFlags(FLAG_SECURE)
    }
}