File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 73
73
}
74
74
# theURL > p > span : first-of-type {
75
75
display : block;
76
- max-height : 6 lh ;
76
+ max-height : 3 lh ;
77
77
overflow-y : auto;
78
78
}
79
79
: root .mobile # theURL > p > span : first-of-type {
@@ -146,6 +146,7 @@ details > *:not(summary) {
146
146
147
147
# urlskip a {
148
148
display : block;
149
+ max-height : 3lh ;
149
150
overflow-y : auto;
150
151
word-break : break-all;
151
152
}
Original file line number Diff line number Diff line change @@ -976,14 +976,12 @@ const PageStore = class {
976
976
skipMainDocument ( fctxt , blocked ) {
977
977
const directives = staticNetFilteringEngine . urlSkip ( fctxt , blocked ) ;
978
978
if ( directives === undefined ) { return ; }
979
- if ( logger . enabled !== true ) { return ; }
980
979
fctxt . pushFilters ( directives . map ( a => a . logData ( ) ) ) ;
981
- if ( fctxt . redirectURL !== undefined ) {
982
- fctxt . pushFilter ( {
983
- source : 'redirect' ,
984
- raw : fctxt . redirectURL
985
- } ) ;
986
- }
980
+ if ( fctxt . redirectURL === undefined ) { return ; }
981
+ fctxt . pushFilter ( {
982
+ source : 'redirect' ,
983
+ raw : fctxt . redirectURL
984
+ } ) ;
987
985
}
988
986
989
987
filterCSPReport ( fctxt ) {
Original file line number Diff line number Diff line change @@ -221,18 +221,25 @@ const onBeforeRootFrameRequest = function(fctxt) {
221
221
222
222
// Blocked
223
223
224
+ let reason = logData . reason ;
225
+
224
226
// Find out the URL navigated to should the document not be strict-blocked
225
227
pageStore . skipMainDocument ( fctxt , false ) ;
226
228
229
+ if ( reason === undefined && Array . isArray ( fctxt . filter ) ) {
230
+ const filter = fctxt . filter . find ( a => a . reason !== undefined ) ;
231
+ reason = filter ?. reason ;
232
+ }
233
+
227
234
const query = {
228
235
url : requestURL ,
229
236
dn : fctxt . getDomain ( ) || requestHostname ,
230
237
fs : logData . raw ,
231
238
hn : requestHostname ,
232
239
to : fctxt . redirectURL || '' ,
233
240
} ;
234
- if ( logData . reason ) {
235
- query . reason = logData . reason ;
241
+ if ( reason ) {
242
+ query . reason = reason ;
236
243
}
237
244
238
245
vAPI . tabs . replace (
You can’t perform that action at this time.
0 commit comments