Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4873889

Plugin exits in GetValue if asked for undefined variable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 5.0
    • 1.4.2_01, 5.0
    • deploy
    • tiger
    • sparc
    • solaris_8, solaris_9

      Name: dmR10075 Date: 06/04/2003


      According to specification, NPP_GetValue should return the value of
      variable if it recognizes it, or some error code if it doesn't or
      another error occured. Instead, in JavaPluginIstance5.cpp:GetValue
      plugin calls plugin_error if it doesn't recognize the variable.
      plugin_error calls exit(-1) making Browser process to exit.

      This breaks compatibility: if browser wants to extend the variables
      interface by adding some new variable to indicate some new possible
      property of plugin all previous plugins with described behavior will
      exit terminating the browser.

      The standard behavior is to return NS_ERROR_NOT_IMPLEMENTED.

      ======================================================================
      ###@###.### 10/27/04 08:01 GMT

            xlu Xiaobin Lu (Inactive)
            domsunw Dom Dom (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: