1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-02 17:19:38 +02:00

Fix potentially reporting wrong context in logger for ghide filters

Related discussion:
- https://github.com/uBlockOrigin/uAssets/issues/3100#issuecomment-996750389
This commit is contained in:
Raymond Hill 2021-12-17 09:47:14 -05:00
parent 2576a991e5
commit edab87b4bc
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -242,6 +242,7 @@ const FrameStore = class {
.duplicate()
.fromTabId(tabId)
.setURL(this.rawURL)
.setDocOriginFromURL(this.rawURL)
.setRealm('network')
.setType('specifichide')
.setFilter(staticNetFilteringEngine.toLogData())
@ -261,6 +262,7 @@ const FrameStore = class {
.duplicate()
.fromTabId(tabId)
.setURL(this.rawURL)
.setDocOriginFromURL(this.rawURL)
.setRealm('network')
.setType('generichide')
.setFilter(staticNetFilteringEngine.toLogData())