mozilla / lightbeam-we

Web Extension version of the Firefox Lightbeam add-on
https://addons.mozilla.org/en-GB/firefox/addon/lightbeam/
Mozilla Public License 2.0
179 stars 61 forks source link

Consider treating Service Workers as first parties #189

Open biancadanforth opened 7 years ago

biancadanforth commented 7 years ago

It's not clear right now how the capture code treats Service Workers (these load in non-visible tabs, i.e. tabId = -1). It would be good to check, and we should consider treating them as first parties.

@jonathanKingston Aren't SWs usually (if not always) a same origin page script loaded from the first party? In that case any third party requests it may make would be captured relative to the page that loaded the SW, no? Are you suggesting SWs be treated as a first party separate from the page that loaded the SW? Anyway, more clarification on what this means and how we might check for it would be helpful!