Skip to content

Fix #297 - Fix docDomain having the wrong value in getAllowingFilters

Ozan Ozbek requested to merge 297-getAllowingFilters-fix into master

The $domain filter option needs to be matched against the document that loaded a resource. For getAllowingFilters it refers to a frame, so docDomain is the document that loads that frame. For iframes that's the parent frame. For the top-level frame, it's the frame itself. In this function, we were missing the use of the frame's own hostname for the top-level frame.

Closes #297 (closed)

Merge request reports

Loading