Problem - Safari - NPAPI Plugin - Right|button|downMouseDragged event.

Good morning to everyone. I think I exposed the main aspects of my question on the subject, so nobody will lose time if it's not really interested.
I'm experiencing a problem developing a plugin (using NPAPI for future portability), that requires the mouse dragged event with right mouse button. With Chrome I have no problem. With Safari everything is ok, when I press the left mouse button; but when I press the right button, the browser can't sense at all any other event, except the NPCocoaEventMouseDown event.
Is it a bug? Should I open a ticket?
Any clue?
Thanks in advance.
G.

https://bugs.webkit.org/show_bug.cgi?id=27043
Hope that Apple soon implements the patch, that already exists.
Regards.
G.

Similar Messages

  • Safari NPAPI plugin

    I've written a NPAPI plugin for Windows and I'm now trying to get a Mac version going. I've gotten a project setup from the NetscapeMoviePlugin example. I'm trying to figure out what the preferred way of creating a plugin with decent user interface is (toolbar, buttons, several views objects).
    I have two copies of the my project that I have been working on for weeks:
    The first projects directly creates all of the HIView objects and places them into the root view of the WindowRef given to me by the plugin interface. The only problem I'm having with this is, on the update event where the repaint happens, the root view (I'm guessing) keeps painting the content window black before I get called to paint. This is causing a flicked every time the paint happens. Also because I'm using a Scroll view with an embedded image view, my scroll bars and un-used area of the scroll view are painted over black. None the less the black flicker is the problem I'm running into with this approach.
    The second project creates all of the views on a separate window, and then I'm attempting to group the window together using window groups to get the parent child functionality. This is working ok; the windows move together and share activation, but I can't get the minimize/maximize functionality to work. I've tried both creating my own window group and placing my window along with the safari window in it, and getting the window group from the window from safari and placing my window into that. With both groups I'm using window group attributes of kWindowGroupAttrMoveTogether, kWindowGroupAttrLayerTogether, kWindowGroupAttrSharedActivation, and kWindowGroupAttrHideOnCollapse. I've tried several different combinations to see what happens as well. Either way, when I click the yellow collapse button on the safari window, the safari falls into the tray and then reappears behind my window and my window never goes anywhere. I've tried manually catching the collapse event and sending the event to my window, but this makes no difference.
    Does anybody have any pointers as to which of the two ways are the better way of writing a plugin, or suggestions as to the functionality of both of the situations described above? Also I would like to note that I have tried the plugin on Safari on both tiger and leopard and have had the same results. I've been yanking my hair out for weeks trying to get this to work. I would really appreciate any help. Thanks for looking.

    I solved the issue. I found that Safari was a Cocoa application, so I got a NSWindow reference from the window handle given in the NPAPI NPP_SetWindow call, and then created a NSWindow reference for my carbon window and tied them together. I just thought I post this back, in case anyone else has the same problem.
    NPError NPP_SetWindow(NPP instance, NPWindow* npWindow)
    // Get a Cocoa window reference of the browser window
    NP_CGContext* npContext = (NP_CGContext*)npWindow->window;
    WindowRef window = npContext->window;
    NSWindow* browserWindow = [[[NSWindow alloc] initWithWindowRef:window] autorelease];
    // Get a Cocoa reference of my carbon window
    // yourCarbonWindow should be replaced with the window handle of the carbon
    // window that should be tied to the Safari window.
    NSWindow* myWindow = [[[NSWindow alloc] initWithWindowRef:yourCarbonWindow] autorelease];
    // Now create a parent child relationship
    [browserWindow addChildWindow:myWindow ordered:NSWindowAbove];
    The code formatting is messed up, but you get the picture.

  • Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help

    Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help

    Well, I rebuilt the entire workbook... that was a few months ago and so far, the problem hasn't resurfaced. It really wasn't fun to do, but whatever glitch there was in the file, I eliminated it.
    I think I should mention that I am using Office v.X, NOT Office 2004. I got a new Intel iMac this week and yesterday when I opened up my files, it opened up the test drive (a JOKE of a program if you ask me) Anyway, some of the very minor issues I had with Office v.X were solved in the 2004 version. (When opening up large multi worksheet files without Excel being already opened, the tabs have white text) Anyway, I am still going to wait for the universal version to come out, but it seems that the newer versions may have fewer glitches (as is to be expected)
    At any rate, best of luck to you!

  • My mothers mac the safari dosent work right the mail the mail wont open up certain emails saying the plugin is blocked etc

    my mothers mac the safari dosent work right the mail the mail wont open up certain emails saying the plugin is blocked etc

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    Open Console in Utilities & see if there are any clues or repeating messages when trying to open Mail or Safari.

  • What event will be fired if clicked on top right button of JFrame?

    HI!
    I meet a issue when I developing java GUI application.
    I found when I clicked on top right button x of JFrame . It fire an event windowClosing(event e)
    If I clicked on JButtom and try to close this JFrame . It fire an event windowClosed(WindowEvent e)
            j.setVisible(false);
            j.dispose();
            j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);Is anyway I could fire same event when clicked on either +top right button x+ of JFrame or JButtom ?
    amazing!?
    Thanks!

    camickr,
    NO, you fully understood my question, but also solve it already... you are correct
    clicked on top right button of JFrame and close button are fired on same event.... private void this_windowClosing(WindowEvent e)
    1)clicked on close button fired windowClosing event byWindowEvent windowClosing = new WindowEvent(j, WindowEvent.WINDOW_CLOSING);
    Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(windowClosing);
    2)clicked on top right button of JFrame it fired windowClosing eventI just want an assist to run j.dispose();, will it must fire windowClosed event? anyway to avoid this event?
    May be my explain not clear!

  • Is it possible to create a context menu, which is launched by right mouse button click event?

    The question is following: when you are pushing right button in the window of a working vi you see the build-in context menu of labview. Is it possible to customize it, or create the new one?
    www.xinstruments.com
    Custom Software for Industrial Automation
    www.hdrconverter.com
    Picture processing made easy

    There's no nuilt-in LabVIEW function or tool to do it, but Dave Ritter published an artical in the LabVIEW Technical Resource last year that described how to do this. It uses the Event Structure so you need to have at least LabVIEW 6.1.
    You can read a bit of the artical here. There's also a link on the bottom of the page where you can purchase that issue to get the entire artical and sample code.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • What structure is platformPrint in NPP_Print method for NPAPI plugins?

    I've been developing a NPAPI plugin, and I'm working with printing right now. I'm trying to figure out on the NPP_Print call what the void* I get passed needs to be casted to. All of the documentation I find everywhere says that it is a TPrint structure the very old print record structure that has not been supported in ages! Surely this is not the case anymore, but I'm at a totally lost.

    I have tried to directly use apple events and an apple event handler instead of a Carbon based Event handler. I never get called for apple events in my plugin. I would imagine that AEInstallEventHandler would install to the Safari application process. Is there something special that is required to do this?

  • How to run a dialog's method from a button's event handler?

    I've created my first dialog from the samples, but I am having trouble figuring out how to run a method in my dialog from an button's event handler. Can anyone please point me in the right direction?
    function CreateDialog() 
        this.windowRef = null;
    CreateDialog.prototype.run = function()
        //...declare a bunch of vars
        // Create a window of type palette.
        var win = new Window("dialog", "Element Spray Generator",[iTop,iLeft,iTop + iWidth,iLeft + iHeight] );  // bounds = [left, top, right, bottom] 
        this.windowRef = win;
        // Add a frame for the contents.   
        win.btnPanel = win.add("panel", [iPadding,iPadding,iWidth-iPadding,iHeight-iPadding], "");
        .... add a bunch of other stuff ...
        win.btnAdd = win.btnPanel.add("button", [win.btnRemove.bounds.left - iPadding - iButtonWidth,win.lstImages.bounds.bottom + iSmPadding,win.btnRemove.bounds.left - iPadding,win.lstImages.bounds.bottom + iSmPadding +iTextHeight], "Add");
        win.btnAdd.onClick = function() {
           //todo implement this
           var f = File.openDialog("Open File") ;
           win.lstImages.add("item", f.displayName );
           this.EnableControls();    //<--- problem is on this line here!!
        this.EnableControls();  //<--- this works
        // Display the window
        win.show();
        return true;      
    CreateDialog.prototype.EnableControls = function (){
        var result = true;
        result = result && (this.windowRef.ddlPaths.selection != "");
        result = result && (this.windowRef.lstImages.items.length > 0);
        this.windowRef.btnOK.enabled = result;

    This may not be the reason, but when using the way I create dialogs 'this' inside of an onClick points to the control.
        win.btnAdd.onClick = function() {
           //todo implement this
           var f = File.openDialog("Open File") ;
           win.lstImages.add("item", f.displayName );
           this.EnableControls();    //<--- I would expect it to call another function of btnAdd
                                            // this.parent.EnableControls() might be what you want if the control is not in some other container

  • How to call a dynamic URL on 'button press' event, in MVC-based BSP

    Hi,
    My requirement is as below:
    On selecting a row in table view, and pressing a button, I need to open a browser.
    The Browser URL depends on the row selected.
    The key field from table view, is added at the end of the URL string.
    Shortly, I can say that, I am getting a value on row selection & want to pass it to button event.
    In Views Section, there are 2 tags- (1)table view & (2)button.
    Right now, I have put the code for getting the key field, in DO_HANDLE_DATA method.
    In Button's OnClientClick method, I have called the Javascript to open the browser.
    If I now write the code to concatenate the key field value to form the dynamic URL in 'OnClick' method,
    it will be called only after the browser is opened.
    (as OnClick event is executed only after OnClientClick event is executed)
    Could anyone please tell me what event (and in which tag) can be used to solve this.
    Is there any event which is triggered, as soon as the row is selected, &  before the button press event is triggered ?
    Would really appreciate responses made to this query.
    Thanks,
    Nisha Vengal.

    Hi Nisha,
    The crux of your issue here is that you want to call the event triggered with onClick before calling the event triggered on onClientClick. This can be achieved by the following code in the function called on the onClientClick.
    function fn_button()
               htmlbSL(this,2,'b_row_selection:onInputProcessing()');
               window.open("new_page",target="BLANK");
    Here, fn_button is the javascript function called on button click, and b_row_selection is the event triggered on the onClick event of row selection.
    Try this out and let us know if it works for you.
    Regards,
    Saurabh

  • How to call elem. Search help on Button click event in WD appilcation

    Hello All,
    i have requirement to call elem. search help on button click event in WD application. currently i am calling FM  F4IF_START_VALUE_REQUEST but getting the short dump as below,
    The following error text was processed in the system X31 : Screen output without connection to user.
    The error occurred on the application server saps_X31_31 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    SYSTEM-EXIT of program SAPLSDH4
    Function: F4_PRESEL_WITH_TABSTRIP of program SAPLSDH4
    Form: F4PROZ_STEP_PRESEL of program SAPLSDSD
    Function: DD_SHLP_SINGLE_STEP of program SAPLSDSD
    Form: F4PROZ_LOOP of program SAPLSDSD
    Form: F4PROZ of program SAPLSDSD
    Function: F4IF_START_VALUE_REQUEST of program SAPLSDHI
    Method: ONACTIONSEARCH_CUSTOMER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
    is there any way to achieve the required behaviour.
    please let me know.
    Regards,
    Chandra

    Hi Friends,
    I have the similar kind of requirement. Upon click on a Button on screen i need to call a search help, and collect one or more selected material numbers.
    The search help is working fine and i am getting the entries with the following code.
    The problem is i am finding extra popup on screen.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    tabname         =  space
    fieldname       =  space
    SEARCHHELP      =  'MAT1'
    MULTIPLE_CHOICE =  'X'
    STEPL           =  0
    value           = 'MATNR'
    *dynpprog        =  progname
    *dynpnr          =  dynnum
    *dynprofield     = 'CARRIER'
    CALLBACK_PROGRAM          = 'ZTEST_1_PRA'
    CALLBACK_FORM             = 'F4CALLBACK'
    TABLES
    RETURN_TAB                = RETURN_TAB
    EXCEPTIONS
    FIELD_NOT_FOUND           = 1
    NO_HELP_FOR_FIELD         = 2
    INCONSISTENT_HELP         = 3
    NO_VALUES_FOUND           = 4
    OTHERS                    = 5.

  • Tab bar will not generate new tab if press+ - Links work- Right Button click 'open in new tab'

    Now working with 3.6.18 (I had v4, then v5 briefly), the tab bar 'failed' in v5 so I went back to v3.6.18, but the problem followed.
    No matter how many tabs are open I cannot get a new blank tab by clicking the "+" tab on tab bar.
    I CANNOT get a new tab by mousing over another tab, right button menu "new tab" will not work.
    I CAN select a bookmark "open in new tab" it works.
    I CAN do the same on a link, "open in new tab" it opens in a new tab.

    Didn't even know I had one, so I told it to display then went to the right hand end where a drop down menu offered "uninstall" and fired that , and again, and again, and again, the sticky little booger grinned back, but would not leave.
    Reminded me of early Windows days when Win would die and tell you, "I just lost all your work" "OK?"
    Going to look for a big hammer, it used to make me feel good to have the last FINAL word.

  • @loader_path problem for photoshop plugin on Mac

    Hi experts,
    One of my photoshop plugin (a file format plugin) depends on Qt, so I add the libQtCore.4.dylib and libQtGui.4.dylib in the same folder of my binary in my bundle ( that is '/Contents/MacOS' ), and reference them as @loader_path in my plugin.
    My plugin is a universal binary. it works all fine with the 64bit photosho , but the problem is in 32bit of photosho, when I click the 'About' to display my about dialog and then click open to open my file, photoshop said 'Out of RAM'. This problem doesn't happen if I click open first and then about.
    I tried to put the Qt libraries in the /usr/local/bin, and referece them in my plugin with full path, (that is /usr/local/bin/libQt**), all things are all right, So I'm wordering if there is some problem with the plugin loading with the '@loader_path‘ reference.
    Any help will appreciate.
    Thanks,
    D.J.

    Here are the links for downloading.
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 , CS4 Web Standard | CS3 | CS2
    See this link if you still have issues: Troubleshoot download problems

  • How do you fire a button click event on apex page from fancybox iframe that was created by page

    I am trying to fire off the button click event from fancybox iframe. The apex page has a button that launches a fancybox iframe which is loaded with an APEX form. On close of that fancy box, I am trying to fire a click event on the parent page which will refresh a div with html that is created with plsql. The button on the page works as expected when clicked from the page. It will show a debug alert message to prove it was called and then load the div with the correct data. I am unable to fire off this button click from the fancybox iframe when it closes.
    A couple of points:
    I using Plug-in: Execute PL/SQL Code and Return Content ("PLUGIN_MULEDEV.SERVER_REGION_REFRESH") to place the create fancybox statement. It is used to populate a div using plsql.
    The name of the button on the main page is P2020_REFRESH_SECTION_BUILDER_BTN.
    The click dynamic action on the button is calling the plugin to replace the html in the div.
    The data in the form in the fancybox is being saved to the database. On close of the fancybox box I want to refresh the div so the new record is included in the div html.
    Can anyone help. Here is the fancybox code:
      function customProcessOnReadyState4(){
        for (var i=0;i<11;i++){
          $( "#tabs"+i ).tabs();
          $("#createNewExerciseLink"+i).fancybox({
              ''width''         : ''60%'',
              ''height''        : ''70%'',
              ''autoScale''     : true,
              ''transitionIn''  : 200,
              ''transitionOut'' : 200,
              ''type''          : ''iframe'',
              ''onClosed''         : function() {
                                         window.parent.$(''#P2020_REFRESH_SECTION_BUILDER_BTN'').click();
    Here are the dynamic actions assigned to the button:
    5 - Execute JavaScript Code
    alert("Starting refresh");
    10 - Execute PL/SQL Code and Return Content [Plug-in]
    begin
      SCTUI.create_sct_tabs2(:P2020_CREATE_SECTION_LOV, '1');
    end;

    user setActionListener...
    <af:setActionListener from="#{bindings.XXX.inputValue" to="#{backingbean.variable}"
                  <af:inputText value="#{bindings.Email.inputValue}"
                                label="#{bindings.Email.hints.label}"
                                binding="#{backingBeanScope.backing_ShuttlePage.it2}"
                                id="it2">
                    <f:validator binding="#{bindings.Email.validator}"/>
                  </af:inputText>
                  <af:commandButton text="commandButton 2"
                                    binding="#{backingBeanScope.backing_ShuttlePage.cb2}"
                                    id="cb2" action="passing">
                    <af:setActionListener from="#{bindings.Email.inputValue}"
                                          to="#{processScope.detail}"/>
                  </af:commandButton>next jsf page:
                <af:outputText value="#{processScope.detail}"
                               binding="#{backingBeanScope.backing_ProcessScope.ot1}"
                               id="ot1"/>setPropertyListener also should work
    <af:setPropertyListener from="#{bindings.Email.inputValue}" to="#{processScope.detail}" type="action"/>

  • Fire a left click when the right button is pressed

    I am working on a small program with a text area and mouse functionality. I have all my listeners in place but I need one additional feature and I am unsure how to go about implementing it. I want to be able to fire a left click when the right button is pressed.
    The reason is because right clicking does not move the caret around the text area. I need to be able to move the caret with a right click so I can then invoke another method to do some other functionality that is associated with the right click. Any method is acceptable as long as a right click will result in the caret being able to move to a location much like a left click can.
    all help is appreciated. Thanks.

    I'm not sure if this is "better", and my guess is that it isn't, but how about using a Robot object here to create a left mouse press and release? For instance,
    import java.awt.AWTException;
    import java.awt.Robot;
    import java.awt.event.InputEvent;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JComponent;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    public class RightClickAsLeft
      private JPanel mainPanel = new JPanel();
      private JTextArea area = new JTextArea(20, 50);
      private Robot robot;
      public RightClickAsLeft()
        try
          robot = new Robot();
        catch (AWTException e)
          // TODO Auto-generated catch block
          e.printStackTrace();
        mainPanel.add(new JScrollPane(area));
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 18; i++)
          for (int j = 0; j < 80; j++)
            sb.append((char)(40 + j));
          sb.append("\n");
        area.setText(sb.toString());
        area.addMouseListener(new MyMouseListener());
      public JComponent getComponent()
        return mainPanel;
      private class MyMouseListener extends MouseAdapter
        @Override
        public void mouseClicked(MouseEvent e)
          int button = e.getButton();
          if (button == MouseEvent.BUTTON3)
            if (robot != null)
              robot.mousePress(InputEvent.BUTTON1_MASK);
              robot.mouseRelease(InputEvent.BUTTON1_MASK);
      private static void createAndShowUI()
        JFrame frame = new JFrame("RightClickAsLeft");
        frame.getContentPane().add(new RightClickAsLeft().getComponent());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main(String[] args)
        java.awt.EventQueue.invokeLater(new Runnable()
          public void run()
            createAndShowUI();
    }Edited by: Encephalopathic on Apr 10, 2009 9:59 AM

  • How to generate barcode on button click event in PDF using adobe livecycle?

    I already created form in PDF file which is validate completely .But , I required generate a barcode of all field of form using custom script on button click event.
    Please give me right way for doing it .
    Thanks in Advance,
    Jaydeep Solanki.

    Hi vijay,
    What project are you doing? Is it Asp.Net project? If so, you'll need to post it in the dedicated ASP.Net Forum
    http://forums.asp.net  for more efficient responses, where you can contact ASP.NET experts.
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for