You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One important current question is: On a page load— when a new page is replaced by an old one —how to determine whether a request belongs to the new or the old page?
I'm probably going to use some uBO code here. uBO's implementation includes:
PageRequestStore objects are used to store net requests
in RPC, this is the RequestMemory
tabContextManager keeps track (as accurately as possible) of which root document belongs to which tab
One important current question is: On a page load— when a new page is replaced by an old one —how to determine whether a request belongs to the new or the old page?
I'm probably going to use some uBO code here. uBO's implementation includes:
PageRequestStore
objects are used to store net requestsRequestMemory
tabContextManager
keeps track (as accurately as possible) of which root document belongs to which tabtabContexts: Map<tabId, TabContext>
bindTabToPageStats()
onHeadersReceived
(traffic.js) —context="beforeRequest"
httpObserver.handleResponseHeaders
(platform/firefox/vapi-background.js)onHeadersReceived
(platform/webext/vapi-webrequest.js)onBeforeRootFrameRequest
/onBeforeRequest
(traffic.js) —context="beforeRequest"
httpObserver.handleRequest
(platform/firefox/vapi-background.js)onBeforeRequest
(platform/webext/vapi-webrequest.js)onUpdated
(tab.js) —context="tabUpdated"
locationChangedListener
(platform/firefox/vapi-background.js)onNavigation
(tab.js) —context="tabCommitted"
locationChangedListener
(platform/firefox/vapi-background.js)onBeforeRequest
(traffic.js
)tab.js
normalizeRequestDetails
: essentially, setanyTabId
, which is checked against only inonBeforeBehindTheSceneRequest
(traffic.js)tab.js
updateBadgeAsync
=updateBlockedContentStateAfterTimeout
These are the subtasks of this issue (incomplete)
TabContextManager
TabContext
classContext
class"tabs.contexts"
modulevAPI
functions -> own functionsµb
functions -> own functionsµb.normalizePageURL()
µb.URI.hostnameFromURI()
µb.URI.domainFromHostname()
TabContext
propertiesnormalURL
rootHostname
rootDomain
lookup()
invocations?onBeforeRootFrameRequest
onHeadersReceived
tabs.onUpdated
tabs.onNavigation
The text was updated successfully, but these errors were encountered: