| Summary: | IE8 javascript error | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Chris Fairhall <chris> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P1 | CC: | ivan | ||||
| Version: | 1.5 | ||||||
| Target Milestone: | 1.5 M4 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Chris Fairhall
Created attachment 207696 [details]
javascript error
Chris, could you provide small snippet/project that demonstrate the problem? (In reply to comment #2) > Chris, could you provide small snippet/project that demonstrate the problem? I will try but the code that has the issue belongs to a project that has no funding currently. It is also not my IP so I can't take it home. I was just spending a few minutes checking the latest build as we're currently running a nightly 1.5 in production. I still haven't had time to create a snippet to reproduce the issue but I think I've found the code causing the issue.
/org.eclipse.rap/runtime.rwt/org.eclipse.rap.rwt/js/org/eclipse/swt/FontSizeCalculation.js
Version 1.6 of this file is in M2 which I have no issues with, anything using 1.7 has the issue. I went back in hudson as far as I could and the issue exists with November 5 nightly
Looks like its this json call that causes the error
{
"target": "w1",
"action": "call",
"method": "probe",
"properties": {
"fonts": [ [ 1062029546, "!#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxy", [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida Sans Unicode", "sans-serif" ], 11, true, false ], [ 1062029545, "!#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxy", [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida Sans Unicode", "sans-serif" ], 11, false, true ] ]
}
The weird thing is when I use Chrome and follow the same steps I can't find any json message to call probe on w1
Chris, I can reproduce it with Controls Demo -> Buttons Tab when I click on "Font" button - Windows XP SP3 IE8. There was a typo in FontSizeCalculation.js line 46 - "italc" instead of "italic", which cause application to crash in IE8. Fixed in CVS HEAD. |