1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01: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() .duplicate()
.fromTabId(tabId) .fromTabId(tabId)
.setURL(this.rawURL) .setURL(this.rawURL)
.setDocOriginFromURL(this.rawURL)
.setRealm('network') .setRealm('network')
.setType('specifichide') .setType('specifichide')
.setFilter(staticNetFilteringEngine.toLogData()) .setFilter(staticNetFilteringEngine.toLogData())
@ -261,6 +262,7 @@ const FrameStore = class {
.duplicate() .duplicate()
.fromTabId(tabId) .fromTabId(tabId)
.setURL(this.rawURL) .setURL(this.rawURL)
.setDocOriginFromURL(this.rawURL)
.setRealm('network') .setRealm('network')
.setType('generichide') .setType('generichide')
.setFilter(staticNetFilteringEngine.toLogData()) .setFilter(staticNetFilteringEngine.toLogData())