View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0019943 | mantisbt | ui | public | 2015-07-18 07:06 | 2015-09-06 17:37 |
Reporter | badfiles | Assigned To | atrol | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.0-beta.2 | ||||
Target Version | 1.3.0-beta.3 | Fixed in Version | 1.3.0-beta.3 | ||
Summary | 0019943: Buggy calendar in due date | ||||
Description | In Google Chrome Version 45.0.2454.7 dev (64-bit) calendar.js drops console errors, and calendar itself appears at the bottom of a page. | ||||
Additional Information | Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self'". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback. | ||||
Tags | No tags attached. | ||||
Same for Safari, FF works. |
|
Caused by This explains why the code does not work I am quite sure the special handling for khtml can be removed as this seems to be a quite old workaround. |
|
We really need to replace this widget... |
|
Reminder sent to: dregad, vboctor I am not sure if it is a good idea to replace the widget in 1.3.x (of course we should in 2.0) as it might introduce even more delay in getting out 1.3. I could push a version that changes what I mentioned at 0019943:0051171 |
|
+1 for deferring to post 1.3. I'm thinking that we should create the master-1.3.x branch and open master for modern UI and improvements like this. We should also get 1.3.x out soon (whether it is beta3 or rc1). |
|
We definitely need to fix the bug with jscalendar in 1.3, one way or another. That being said, I agree that replacing the calendar widget, although nice to have, is not a must for 1.3 release so I'm fine with retargeting this to a later version if atrol's fix does the trick. |
|
Fixed the current issue, entered 0020040 for the replacement. |
|
MantisBT: master 103f968f 2015-08-17 11:36 Details Diff |
Fix broken calendar in Safari and Chrome As we introduced CSP headers in 1.3 some JavaScript code in our calendar widget is no longer allowed. https://developer.chrome.com/extensions/contentSecurityPolicy#JSEval The affected code seems to be a workaround for quite old browsers. I removed the code and found no issues until now. Fixes 0019943 |
Affected Issues 0019943 |
|
mod - javascript/jscalendar/calendar.js | Diff File |