NPN_GetURLNotify with malformed javascript: or data: URIs calls an unexpected NPP_URLNotify

NEW
Unassigned

Status

()

Core
Plug-ins
8 years ago
8 years ago

People

(Reporter: Benjamin Smedberg, Unassigned)

Tracking

Trunk
x86
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
Normally when a plugin calls NPN_GetURLNotify, I think this invariant holds (or should hold):

* NPN_GetURLNotify succeeds, and at some point (either immediately or later) NPP_URLNotify is called
* NPN_GetURLNotify fails and NPP_URLNotify is never called

Currently however, if you pass a malformed javascript: or data: URI to NPN_GetURLNotify, NPP_URLNotify is called *and* NPN_GetURLNotify returns a failure code.

There are disabled tests for this in test_streamNotify.html
You need to log in before you can comment on or make changes to this bug.