Changes

Jump to: navigation, search

Security/Safe Browsing

269 bytes added, 17:47, 21 May 2018
Code walkthrough: update some details around how matches on multiple lists are resolved
[https://dxr.mozilla.org/mozilla-central/rev/f8086bd3c84fc1a42c3625cf3cc2253f0a5e8cfd/netwerk/base/nsChannelClassifier.cpp#354 nsChannelClassifier]. There is also a [https://dxr.mozilla.org/mozilla-central/rev/f8086bd3c84fc1a42c3625cf3cc2253f0a5e8cfd/netwerk/protocol/http/nsHttpChannel.cpp#5185 local-only classification] that is requested by [[Security/Tracking protection|tracking protection]].
The classifier determines the type of URL that is is and resolves conflicts (i.e. a match on more than one list) based on: - [https://dxrsearchfox.org/mozilla-central/rev/da499aac682d0bbda5829327b60a865cbc491611/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp#1383-1389 priority of providers]- [https://searchfox.org/mozilla-central/rev/f8086bd3c84fc1a42c3625cf3cc2253f0a5e8cfdda499aac682d0bbda5829327b60a865cbc491611/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp#173 determines the type 66-93 priority of URL that it iswarning types] and  then [https://dxr.mozillasearchfox.org/mozilla-central/rev/f8086bd3c84fc1a42c3625cf3cc2253f0a5e8cfd8affe6e83188787eb61fe0528eeb6eef6081ba06/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp#988 1449 returns information about the appropriate NS_ERROR codelist match]. That causes the channel to be [httpshhttps://dxr.mozillasearchfox.org/mozilla-central/rev/f8086bd3c84fc1a42c3625cf3cc2253f0a5e8cfd8affe6e83188787eb61fe0528eeb6eef6081ba06/netwerk/base/nsChannelClassifier.cpp?offset=200#646 1174 cancelled with that error code].
When the [https://dxr.mozilla.org/mozilla-central/rev/f8086bd3c84fc1a42c3625cf3cc2253f0a5e8cfd/docshell/base/nsDocShell.cpp#7613 classification state of the page changes], the appropriate UI [https://dxr.mozilla.org/mozilla-central/rev/f8086bd3c84fc1a42c3625cf3cc2253f0a5e8cfd/docshell/base/nsDocShell.cpp#4854 is shown].
Confirm
908
edits

Navigation menu