Bug 510694 - [Webkit2] Implement 'close' for webkit2
Summary: [Webkit2] Implement 'close' for webkit2
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Leo Ufimtsev CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 517623 (view as bug list)
Depends on: 508217 512001
Blocks: 510183
  Show dependency tree
 
Reported: 2017-01-19 10:01 EST by Leo Ufimtsev CLA
Modified: 2020-07-03 13:47 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leo Ufimtsev CLA 2017-01-19 10:01:10 EST
Currently if 'close' is invoked on Webkit2, eclipse hangs on executing the javascript.

This is because webkit1-specific javascript is being executed in WebKit.java:close(), which is causing an infinite loop.

This bug is to work on this port.

Browser.function is required to implement this functionality. Pending till Browser.function is implemented in Webkit2.
Comment 1 Leo Ufimtsev CLA 2017-01-19 10:13:17 EST
Note to self:
- This functionality is used by Javadoc hover. See: Bug 510183
Comment 2 Eclipse Genie CLA 2017-01-19 10:16:20 EST
New Gerrit change created: https://git.eclipse.org/r/89116
Comment 4 Leo Ufimtsev CLA 2017-01-30 11:09:35 EST
After investigation, I found that Browser.close() works on webkit2. The hang was a corner cases where evaluate() was called from within a webkit2 signal, which caused a deadlock. 

I implemented a solution to overcome the deadlock in Bug 510183. (which also re-enabled the close() method. 

As such, this issue is resolved once that patch is merged:
https://git.eclipse.org/r/#/c/89875
Comment 5 Leo Ufimtsev CLA 2017-02-02 11:25:04 EST
Actually, Let me keep this bug open until relevant patches were merged. Will followup later.
Comment 6 Eclipse Genie CLA 2017-02-09 14:56:12 EST
New Gerrit change created: https://git.eclipse.org/r/90772
Comment 7 Leo Ufimtsev CLA 2017-02-14 09:43:44 EST
Awaiting evaluate() logic to move to java #512001
Comment 9 Eclipse Genie CLA 2017-03-21 16:39:53 EDT
New Gerrit change created: https://git.eclipse.org/r/93574
Comment 11 Alexander Kurtakov CLA 2017-06-01 14:04:16 EDT
*** Bug 517623 has been marked as a duplicate of this bug. ***