This PR fixes a bug where an error is thrown when the cookie object is missing from the blocked cookies array of a Network.responseReceivedExtraInfo event.
To fix this bug, this PR will check for the presence of the cookie object and if it exists use that, if not it will parse the cookieLine and use that. This PR also updates the test fixture to include a blocked cookie that is missing a cookie object.
This PR fixes a bug where an error is thrown when the cookie object is missing from the blocked cookies array of a
Network.responseReceivedExtraInfo
event.I missed this in my initial testing, but the
cookie
object is optional and might not be present, as per the Network.responseReceivedExtraInfo specification.To fix this bug, this PR will check for the presence of the
cookie
object and if it exists use that, if not it will parse thecookieLine
and use that. This PR also updates the test fixture to include a blocked cookie that is missing acookie
object.