Commit 126fa468 authored by MozLando's avatar MozLando
Browse files

Merge #7460



7460: Fixes  #7472 - Clear FLAG_SECURE on stop in SecureWindowFeature r=jonalmeida a=NotWoods

Fixes #7472
Small change to feature-privatemode

Co-authored-by: default avatarTiger Oakes <toakes@mozilla.com>
parents 0c31ae91 996afc9b
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)
    }
}