JDK-7111062 : clean up use of old mozilla header for cookie/proxy service
  • Type: Enhancement
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10,8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-11-11
  • Updated: 2013-08-13
  • Resolved: 2012-01-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u4Fixed 8 b18Fixed
Related Reports
Duplicate :  
Relates :  
Description
in make/plugin/plugin2/npjp2/Makefile, there is:

# In the future(Firefox 3.x), once we ammend NPAPI for cookie/proxy service, we 
# should no longer need to depend on Mozilla headers.
ifeq ($(PLATFORM), windows)
  ifeq ($(ARCH), amd64)
    MOZHDRDIRS := $(shell $(ECHO) $(subst \,/,$(MOZILLA_HEADERS_PATH))/mozilla_headers_18.amd64/*)
  else
    MOZHDRDIRS := $(shell $(ECHO) $(subst \,/,$(MOZILLA_HEADERS_PATH))/mozilla_headers_18.win32/*)
  endif
else
MOZHDRDIRS := $(shell $(ECHO) $(subst \,/,$(MOZILLA_HEADERS_PATH))/mozilla_headers_18/*)
endif

this should be clean up, and removed if not needed

code in MozPluginNatives and MozPluginExport need to be cleaned up accordingly too.

examples:
// Get the global service manager which is the entry point (backdoor) for
// various services such as getting proxy/cookie and setting cookie etc.
// In the foreseeable future (Firefox 3.x) we should ammend NPAPI to add
// these services so that we can completely get out of the dependencies
// to XPCOM plugin which is supposed to be used only by Mozilla internally.
nsISupports* sm = NULL;
if (MozNPN_GetValue(NULL, NPNVserviceManager, (void*) &sm) != NPERR_NO_ERROR || sm == NULL) {
return;
}
it's in JNIEXPORT void JNICALL
Java_sun_plugin2_main_server_MozillaPlugin_initServiceManager(JNIEnv *env,
jclass unused) {


make sense to try to run that code with recent FF (disable NPAPI code before it) - it could be failing anyways.  should remove code that is no longer needed.

Comments
Verified using jdk8-b102
13-08-2013

EVALUATION Removed XPCOM related code for cookie and proxy handling for FF plugin; it now only uses NPAPI.
19-11-2011