Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #6435 (closed)

Opened 8 years ago

Closed 8 years ago

Bug: Script runner and pop-up blockers

Reported by: cxallan Owned by: wmoore
Priority: critical Milestone: OMERO-Beta4.3.2
Component: Web Version: n.a.
Keywords: n.a. Cc: atarkowska
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-08-18 (3)

Description

When clicking "Run Script" and a pop-up blocker is enabled, it is triggered.

Attachments (1)

Screen shot 2011-08-08 at 08.31.41.png (123.1 KB) - added by cxallan 8 years ago.
Screenshot of the blocked pop-up

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by cxallan

Screenshot of the blocked pop-up

comment:1 Changed 8 years ago by wmoore

Investigations on Firefox with popup blocker enabled:

  • The Script window triggers the popup blocker even if:
    • I use a link to trigger javascript script running
    • I use openPopup() function to do the launching
  • It doesn't trigger popup blocker if I do <a href="#" onClick="openPopup('activities/');">Run Script</a>

It seems that the popup blocker is more sensitive on the script window than on the main page, possibly because this is a window opening a window.

Problems with opening window directly from the link:

  • The main webclient window is not the 'opener' so I can't browse from the Activities window back to main webclient window.
  • I can't open the window in response to successful script submission

comment:2 Changed 8 years ago by wmoore

Made some changes to work around popup blocker

  • Instead of opening 'Activities' on AJAX success of runScript(), I open 'Activities' directly
  • Any errors generated by runScript() are now saved to session['callback'][timestamp] and displayed in 'Activities' window
  • Errors submission is now in 'Activities' window instead of script_ui
  • This means that not all the keys in session['callback'] are job IDs.

comment:3 Changed 8 years ago by Will Moore <will@…>

  • Remaining Time set to 0
  • Resolution set to fixed
  • Status changed from new to closed

(In [b65de81804919365c587d0c4b22c0c1d3c24bec0/ome.git] on branch develop) Web runScript errors added to sessioncallback? to be displayed in 'Activities' window. Closes #6435

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.83542 sec.)

We're Hiring!