Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA_P03, 4.1
-
Fix Version/s: EE-4.1.0.RC1, EE-4.1.0.GA, EE-3.3.0.GA_P04, 4.2.BETA, 4.2
-
Component/s: Push Library
-
Labels:None
-
Environment:All
-
Support Case References:Support Case #13681 - https://icesoft.my.salesforce.com/5007000001YpdM0
Description
Upon close of a child window, an update is sent to the parent window.
This JIRA is to better understand this behavior as it might be a requirement for a multiple window ICEpush usage.
-
Hide
- Case13681Example.war
- 9.03 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- WEB-INF/lib/icefaces-ace.jar 5.64 MB
- WEB-INF/lib/icefaces.jar 642 kB
- WEB-INF/lib/icepush.jar 206 kB
- WEB-INF/lib/javax.faces.jar 2.55 MB
- WEB-INF/web.xml 2 kB
- index.xhtml 0.5 kB
- pageOne.xhtml 0.7 kB
- welcomeICEfaces.xhtml 0.9 kB
-
Hide
- Case13681Example.zip
- 20 kB
- Arran Mccullough
-
- Case13681Example/build.xml 3 kB
- Case13681Example/.../ant-deploy.xml 2 kB
- Case13681Example/.../build-impl.xml 80 kB
- Case13681Example/.../genfiles.properties 0.5 kB
- Case13681Example/.../private.properties 0.6 kB
- Case13681Example/nbproject/.../private.xml 0.3 kB
- Case13681Example/.../project.properties 4 kB
- Case13681Example/nbproject/project.xml 1 kB
- Case13681Example/src/conf/MANIFEST.MF 0.0 kB
- Case13681Example/web/index.xhtml 0.5 kB
- Case13681Example/web/.../context.xml 0.1 kB
- Case13681Example/web/pageOne.xhtml 0.7 kB
- Case13681Example/web/WEB-INF/web.xml 2 kB
- Case13681Example/.../welcomeICEfaces.xhtml 0.9 kB
Issue Links
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
The observed behaviour is the one expected. When the popup window is opened the blocking connection ownership moves from the parent to the popup window. When the popup is closed the ownership of the blocking connection moves back to the parent window. Every time the blocking connection moves to a different window there will be a request for updates issued to ensure that pending notifications (that might have been issued while blocking connection changes window) are acquired.
Here are the answers to your questions:
1) Because Opera doesn't invoke window.onuload callbacks on window close, so to avoid relying on it for passing blocking connection ownership the connection marker (used to be a cookie, now a localStorage entry) is removed and thus the functioning windows (who monitor the marker) will fight for owning the blocking connection. See http://jira.icesoft.org/browse/ICE-1872 . Wow, I cant believe it's been so long ago.
2) I guess there might be use cases where it would be reasonable to have the request for updates disabled when the blocking connection moves to another window. For example applications where missing updates is not critical or the asynchronous updates are not triggered very often.
After further review we believe that it should now be feasible to modify the behaviour of icepush to greatly reduce the occurrences of push connections and updates being requested when working with multiple tabs and/or browser windows via the following linked JIRAs:
PUSH-387 - Avoid blocking connection switchover whenever a new window is opened.
ICE-10992 - Introduce context parameter for disabling request for updates on page load.
The issues this JIRA case depends on are fixed. Marking this as resolved.
Attached test case that shows this behavior.
Steps:
[icepush.dc99e.async-connection] [Wed, 24 Feb 2016 19:04:29 GMT] blocking connection lease expired...candidate for its creation icepush.uncompressed.js.jsf:699:84
[icepush.dc99e.async-connection] [Wed, 24 Feb 2016 19:04:30 GMT] initialize connection within window dc99e icepush.uncompressed.js.jsf:699:84
[icepush.dc99e.async-connection] [Wed, 24 Feb 2016 19:04:30 GMT] closing previous connection... icepush.uncompressed.js.jsf:692:85
[icepush.dc99e.async-connection] [Wed, 24 Feb 2016 19:04:30 GMT] connect... icepush.uncompressed.js.jsf:692:85
[icefaces] [Wed, 24 Feb 2016 19:04:30 GMT] picking updates for view vf3epk2 bridge.uncompressed.js.jsf:1352:85
[icepush.dc99e.pushid-expiry] [Wed, 24 Feb 2016 19:04:30 GMT] resume monitoring for unused pushIDs icepush.uncompressed.js.jsf:699:84
[icefaces] [Wed, 24 Feb 2016 19:04:30 GMT] applied updates >>
update["javax.faces.ViewState"]: 5778793053549721472:7383055232890824844....
eval: var iceFormIdList=['iceForm', 'vf3epk2-r.... bridge.uncompressed.js.jsf:1352:85