Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 441842

Summary: [Browser] Disabled state does not work in IE10
Product: [RT] RAP Reporter: Yury <swimmer_86>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 3.0 M2   
Hardware: All   
OS: Windows 7   
Whiteboard:

Description Yury CLA 2014-08-15 03:43:14 EDT
Browser component with disabled state has a different behavior in IE and other browsers (FF, Chrome). It is available to scroll, text selection in IE and not for others (looks like an image).
Tested with IE 10 and RAP 2.1.0.20130506.
Problem is discussed here: https://www.eclipse.org/forums/index.php/m/1408425/

Snippet:

  public int createUI() {
    Display display = new Display();
    Shell shell = new Shell(display);
    shell.setText("Browser");
    shell.setLayout( new GridLayout() );
    Browser browser = new Browser(shell, SWT.BORDER);
    browser.setUrl( "http://eclipse.org/rap" );
    browser.setEnabled( false );
    GridData layoutData = new GridData(GridData.FILL_BOTH);
    layoutData.minimumHeight = layoutData.minimumWidth = 500;
    browser.setLayoutData( layoutData );
    shell.pack();
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
    display.dispose();
    return 0;
  }
Comment 1 Ivan Furnadjiev CLA 2014-08-15 04:01:21 EDT
Just a note: Everything works fine in IE11. The problem is reproducible only in IE9/10.
Comment 2 Ivan Furnadjiev CLA 2014-08-22 07:29:39 EDT
Fixed in master with change https://git.eclipse.org/r/#/c/31972/.