Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 4.0.BETA
-
Fix Version/s: 4.0
-
Component/s: Sample Apps
-
Labels:None
-
Environment:ICEfaces 4 trunk r43122. Tomcat 7. All browsers. Browsers must be configured to disable cookies.
-
Assignee Priority:P1
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration
Description
Tests were conducted with cookies disabled in browsers.
To disable cookies -
FF: https://support.mozilla.org/en-US/kb/enable-and-disable-cookies-website-preferences
Chrome: https://support.google.com/accounts/answer/61416?hl=en
IE 11: http://windows.microsoft.com/en-CA/internet-explorer/delete-manage-cookies#ie=ie-11.
Several issues listed
1.) FF 33 - Console errors seen when page loads using selenium IDE. Not seen when first loading page manually. However if another console error appears (such as the console error seen when loading File Entry tests) then these error will be seen in the console.
SecurityError: The operation is insecure.
http://localhost:8080/showcase/javax.faces.resource/icepush.js.jsf?ln=ice.push&v=4_0_0_141028
Line 7
TypeError: ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028
Line 32
2.) Chrome 38 - Console errors seen immediately when loading showcase
Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. icepush.js.jsf:7
Uncaught TypeError: Cannot read property 'deregister' of undefined bridge.js.jsf?ln=ice.core&v=4_0_0_141028:32
Failed to load resource: net::ERR_CACHE_MISS http://localhost:8080/showcase/showcase.jsf
3.) fileEntry > Overview
Console error seen when loading page (all fileEntry demos):
FF 33 and Chrome 38 - TypeError: window.ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028 line 2 > eval
Line 258
After uploading a file the following console errors are shown:
TypeError: ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028
Line 32
SecurityError: The operation is insecure.
http://localhost:8080/showcase/javax.faces.resource/icepush.js.jsf?ln=ice.push&v=4_0_0_141028
Line 7
No success message is seen after the upload completes. Instead this message is shown:
"The file is required to submit this form." No file is uploaded to the server. These issues are not seen with IE 11.
4.) FileEntry > Listener/Callback
Demo does not function in FF or Chrome. No files upload. The expected warning message is not seen when trying to upload the wrong file type.
5.) dynamicResource > Overview
When downloading a file which opens in a new browser tab, the following console error appears in the new tab:
FF - [object DOMException]
resource://pdf.js/web/viewer.js
Line 654
dynamicResource > Advanced
When returning back to demo after downloading file and opening in same window console errors appear.
FF - TypeError: ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028
Line 32
SecurityError: The operation is insecure.
http://localhost:8080/showcase/javax.faces.resource/icepush.js.jsf?ln=ice.push&v=4_0_0_141028
Line 7
Chrome - Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. icepush.js.jsf:7
Uncaught TypeError: Cannot read property 'deregister' of undefined bridge.js.jsf?ln=ice.core&v=4_0_0_141028:32
Failed to load resource: net::ERR_CACHE_MISS http://localhost:8080/showcase/showcase.jsf
6.) gMap
Console errors seen when loading all demos. Demos are functional
FF - SecurityError: The operation is insecure.
http://localhost:8080/showcase/javax.faces.resource/icepush.js.jsf?ln=ice.push&v=4_0_0_141028
Line 7
TypeError: ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028
Line 32
Chrome -
Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. icepush.js.jsf?ln=ice.push&v=4_0_0_141028:7
Uncaught TypeError: Cannot read property 'deregister' of undefined
7.) ProgressBar > Push
FF/Chrome - progressBar can be started but does not advance past first increment (Progress @ 11%)
FF 33
Console error when loading demo:
FF - TypeError: ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028
Line 32
Chrome - Console error when loading demo:
Uncaught TypeError: Cannot read property 'register' of undefined bridge.js.jsf?ln=ice.core&v=4_0_0_141028:32
8.) icecore:defaultAction
Console errors when using submit button. Demo is functional.
SecurityError: The operation is insecure.
icepush..._141028 (line 7)
TypeError: ice.push is undefined
bridge...._141028 (line 32, col 260)
9.) icecore:navigationNotifier
FF/Chrome - Console errors when using Navigate to other page button. Demo is not fully functional. Notification is not given when the page shown in the browser was rendered as a result of a browser navigation by using 'back' or 'forward' browser buttons.
FF - SecurityError: The operation is insecure.
icepush..._141028 (line 7)
TypeError: ice.push is undefined
bridge...._141028 (line 32, col 260)
Chrome - Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. navigation-notifier.js.jsf?v=4_0_0_141028:57
Uncaught TypeError: Cannot read property 'deregister' of undefined bridge.js.jsf?ln=ice.core&v=4_0_0_141028:32
10.) icecore:push
FF/Chrome - Page is not functional. Demo does not update at any time.
IE 11 - Page starts updating immediately upon loading, more than once per second. Changing the push strategy does not alter the issue.
11.) icecore:redirect
FF/Chrome
Console errors when using demo to navigate to page B. Demo functions normally.
FF - SecurityError: The operation is insecure.
icepush..._141028 (line 7)
TypeError: ice.push is undefined
bridge...._141028 (line 32, col 260)
Chrome - Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. navigation-notifier.js.jsf?v=4_0_0_141028:57
Uncaught TypeError: Cannot read property 'deregister' of undefined bridge.js.jsf?ln=ice.core&v=4_0_0_141028:32
12.) Navigation to Mobile components causes console errors. Page loads normally:
FF - SecurityError: The operation is insecure.
icepush..._141028 (line 7)
TypeError: ice.push is undefined
bridge...._141028 (line 32, col 260)
Chrome - Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. icepush.js.jsf?ln=ice.push&v=4_0_0_141028:7
Uncaught TypeError: Cannot read property 'deregister' of undefined bridge.js.jsf?ln=ice.core&v=4_0_0_141028:32
13.)showcase-mobile PagePanel
FF/Chrome using navigation within demo causes the same console errors as above. Demo fails to navigate back to page Panel, instead it goes back to Mobile Showcase Overview.
14.) Native Components
Console errors when attempting to load demos. Demos do not load. After going through the menu to try to test these demos the Desktop Showcase link would not load the page.
FF - SecurityError: The operation is insecure.
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028 line 2 > eval
Line 726
Chrome - Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
15.) Geolocation IE 11
Not able to get Results for location. This may be the result of the very strict IE security configuration I had to use in order to block cookies. Not an issue in the standard config.
16.) ThemeSelect
FF/Chrome
Selecting a new theme changes the look for only a moment, then the the theme reverts to Sam in the Select menu and page appearance.
Console errors:
FF - SecurityError: The operation is insecure.
http://localhost:8080/showcase/javax.faces.resource/icepush.js.jsf?ln=ice.push&v=4_0_0_141028
Line 7
TypeError: ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028
Line 32
17.) auction
Demo appears to function normally but there are console errors.
FF 33 -TypeError: ice.push is undefined
http://localhost:8080/auction/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141029
Line 32
SecurityError: The operation is insecure.
http://localhost:8080/auction/javax.faces.resource/icepush.js.jsf?ln=ice.push&v=4_0_0_141029
Line 7
To disable cookies -
FF: https://support.mozilla.org/en-US/kb/enable-and-disable-cookies-website-preferences
Chrome: https://support.google.com/accounts/answer/61416?hl=en
IE 11: http://windows.microsoft.com/en-CA/internet-explorer/delete-manage-cookies#ie=ie-11.
Several issues listed
1.) FF 33 - Console errors seen when page loads using selenium IDE. Not seen when first loading page manually. However if another console error appears (such as the console error seen when loading File Entry tests) then these error will be seen in the console.
SecurityError: The operation is insecure.
http://localhost:8080/showcase/javax.faces.resource/icepush.js.jsf?ln=ice.push&v=4_0_0_141028
Line 7
TypeError: ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028
Line 32
2.) Chrome 38 - Console errors seen immediately when loading showcase
Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. icepush.js.jsf:7
Uncaught TypeError: Cannot read property 'deregister' of undefined bridge.js.jsf?ln=ice.core&v=4_0_0_141028:32
Failed to load resource: net::ERR_CACHE_MISS http://localhost:8080/showcase/showcase.jsf
3.) fileEntry > Overview
Console error seen when loading page (all fileEntry demos):
FF 33 and Chrome 38 - TypeError: window.ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028 line 2 > eval
Line 258
After uploading a file the following console errors are shown:
TypeError: ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028
Line 32
SecurityError: The operation is insecure.
http://localhost:8080/showcase/javax.faces.resource/icepush.js.jsf?ln=ice.push&v=4_0_0_141028
Line 7
No success message is seen after the upload completes. Instead this message is shown:
"The file is required to submit this form." No file is uploaded to the server. These issues are not seen with IE 11.
4.) FileEntry > Listener/Callback
Demo does not function in FF or Chrome. No files upload. The expected warning message is not seen when trying to upload the wrong file type.
5.) dynamicResource > Overview
When downloading a file which opens in a new browser tab, the following console error appears in the new tab:
FF - [object DOMException]
resource://pdf.js/web/viewer.js
Line 654
dynamicResource > Advanced
When returning back to demo after downloading file and opening in same window console errors appear.
FF - TypeError: ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028
Line 32
SecurityError: The operation is insecure.
http://localhost:8080/showcase/javax.faces.resource/icepush.js.jsf?ln=ice.push&v=4_0_0_141028
Line 7
Chrome - Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. icepush.js.jsf:7
Uncaught TypeError: Cannot read property 'deregister' of undefined bridge.js.jsf?ln=ice.core&v=4_0_0_141028:32
Failed to load resource: net::ERR_CACHE_MISS http://localhost:8080/showcase/showcase.jsf
6.) gMap
Console errors seen when loading all demos. Demos are functional
FF - SecurityError: The operation is insecure.
http://localhost:8080/showcase/javax.faces.resource/icepush.js.jsf?ln=ice.push&v=4_0_0_141028
Line 7
TypeError: ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028
Line 32
Chrome -
Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. icepush.js.jsf?ln=ice.push&v=4_0_0_141028:7
Uncaught TypeError: Cannot read property 'deregister' of undefined
7.) ProgressBar > Push
FF/Chrome - progressBar can be started but does not advance past first increment (Progress @ 11%)
FF 33
Console error when loading demo:
FF - TypeError: ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028
Line 32
Chrome - Console error when loading demo:
Uncaught TypeError: Cannot read property 'register' of undefined bridge.js.jsf?ln=ice.core&v=4_0_0_141028:32
8.) icecore:defaultAction
Console errors when using submit button. Demo is functional.
SecurityError: The operation is insecure.
icepush..._141028 (line 7)
TypeError: ice.push is undefined
bridge...._141028 (line 32, col 260)
9.) icecore:navigationNotifier
FF/Chrome - Console errors when using Navigate to other page button. Demo is not fully functional. Notification is not given when the page shown in the browser was rendered as a result of a browser navigation by using 'back' or 'forward' browser buttons.
FF - SecurityError: The operation is insecure.
icepush..._141028 (line 7)
TypeError: ice.push is undefined
bridge...._141028 (line 32, col 260)
Chrome - Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. navigation-notifier.js.jsf?v=4_0_0_141028:57
Uncaught TypeError: Cannot read property 'deregister' of undefined bridge.js.jsf?ln=ice.core&v=4_0_0_141028:32
10.) icecore:push
FF/Chrome - Page is not functional. Demo does not update at any time.
IE 11 - Page starts updating immediately upon loading, more than once per second. Changing the push strategy does not alter the issue.
11.) icecore:redirect
FF/Chrome
Console errors when using demo to navigate to page B. Demo functions normally.
FF - SecurityError: The operation is insecure.
icepush..._141028 (line 7)
TypeError: ice.push is undefined
bridge...._141028 (line 32, col 260)
Chrome - Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. navigation-notifier.js.jsf?v=4_0_0_141028:57
Uncaught TypeError: Cannot read property 'deregister' of undefined bridge.js.jsf?ln=ice.core&v=4_0_0_141028:32
12.) Navigation to Mobile components causes console errors. Page loads normally:
FF - SecurityError: The operation is insecure.
icepush..._141028 (line 7)
TypeError: ice.push is undefined
bridge...._141028 (line 32, col 260)
Chrome - Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. icepush.js.jsf?ln=ice.push&v=4_0_0_141028:7
Uncaught TypeError: Cannot read property 'deregister' of undefined bridge.js.jsf?ln=ice.core&v=4_0_0_141028:32
13.)showcase-mobile PagePanel
FF/Chrome using navigation within demo causes the same console errors as above. Demo fails to navigate back to page Panel, instead it goes back to Mobile Showcase Overview.
14.) Native Components
Console errors when attempting to load demos. Demos do not load. After going through the menu to try to test these demos the Desktop Showcase link would not load the page.
FF - SecurityError: The operation is insecure.
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028 line 2 > eval
Line 726
Chrome - Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
15.) Geolocation IE 11
Not able to get Results for location. This may be the result of the very strict IE security configuration I had to use in order to block cookies. Not an issue in the standard config.
16.) ThemeSelect
FF/Chrome
Selecting a new theme changes the look for only a moment, then the the theme reverts to Sam in the Select menu and page appearance.
Console errors:
FF - SecurityError: The operation is insecure.
http://localhost:8080/showcase/javax.faces.resource/icepush.js.jsf?ln=ice.push&v=4_0_0_141028
Line 7
TypeError: ice.push is undefined
http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141028
Line 32
17.) auction
Demo appears to function normally but there are console errors.
FF 33 -TypeError: ice.push is undefined
http://localhost:8080/auction/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_141029
Line 32
SecurityError: The operation is insecure.
http://localhost:8080/auction/javax.faces.resource/icepush.js.jsf?ln=ice.push&v=4_0_0_141029
Line 7
1) Is caused by a Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=748620 . I'm inclined to think that Mozilla developers see this as a feature.
2) Same thing with Chrome, you can block cookies and site data only.
3) File entry JS code invokes ice.push.register function at some point which results in the security error described in 1. The error cancels the code evaluation that follows ice.push.register invocation.
....
It looks like all the issues are caused by the security error thrown when localStorage is accessed. The error cancels the evaluation of the code that sets up ice.push namespace and its functions.