Integrated: 8088420: JavaFX WebView memory leak via EventListener

2022-05-30 Thread Jay Bhaskar
On Thu, 19 May 2022 13:13:01 GMT, Jay Bhaskar wrote: > This PR is new implementation of JavaEvent listener memory management. > Issue > [JDK-8088420](https://bugs.openjdk.java.net/browse/JDK-8088420?filter=-1) > > 1. Calling remove event listener does not free jni global refere

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v9]

2022-05-27 Thread Jay Bhaskar
stener explicitly removed , JavaEventListener is being > forwarded to EventListenerManager to clear the listener. > 7. When WebView goes out of scope, EventListenerManager will de-registered > all the event listeners based on the ref counts attached with WebView > DOMWindow. Jay Bhaskar has

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v8]

2022-05-27 Thread Jay Bhaskar
On Fri, 27 May 2022 15:42:09 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Change for unregisterDomWindow function and code cleanup > > modules/javafx.web/

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v7]

2022-05-27 Thread Jay Bhaskar
On Thu, 26 May 2022 17:00:46 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Adding space for map include > > modules/javafx.web/src/main/nativ

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v8]

2022-05-27 Thread Jay Bhaskar
stener explicitly removed , JavaEventListener is being > forwarded to EventListenerManager to clear the listener. > 7. When WebView goes out of scope, EventListenerManager will de-registered > all the event listeners based on the ref counts attached with WebView > DOMWindow. Jay Bhaskar has

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v7]

2022-05-26 Thread Jay Bhaskar
stener explicitly removed , JavaEventListener is being > forwarded to EventListenerManager to clear the listener. > 7. When WebView goes out of scope, EventListenerManager will de-registered > all the event listeners based on the ref counts attached with WebView > DOMWindow. Jay Bhaskar has

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v6]

2022-05-26 Thread Jay Bhaskar
stener explicitly removed , JavaEventListener is being > forwarded to EventListenerManager to clear the listener. > 7. When WebView goes out of scope, EventListenerManager will de-registered > all the event listeners based on the ref counts attached with WebView > DOMWindow. Jay Bhaskar has

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v5]

2022-05-25 Thread Jay Bhaskar
On Wed, 25 May 2022 14:57:13 GMT, Ambarish Rapte wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Review comments applied > > modules/javafx.web/src/main/native/Source/WebCore/bindings

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v5]

2022-05-25 Thread Jay Bhaskar
On Wed, 25 May 2022 12:45:59 GMT, Ambarish Rapte wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Review comments applied > > modules/javafx.web/src/main/native/Source/WebCore/bindings

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v5]

2022-05-25 Thread Jay Bhaskar
stener explicitly removed , JavaEventListener is being > forwarded to EventListenerManager to clear the listener. > 7. When WebView goes out of scope, EventListenerManager will de-registered > all the event listeners based on the ref counts attached with WebView > DOMWindow. Jay Bhaskar has

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v4]

2022-05-24 Thread Jay Bhaskar
On Tue, 24 May 2022 14:54:19 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Adding JGObject in plave of raw jni object > > modules/javafx.web/src/main/nativ

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v4]

2022-05-22 Thread Jay Bhaskar
stener explicitly removed , JavaEventListener is being > forwarded to EventListenerManager to clear the listener. > 7. When WebView goes out of scope, EventListenerManager will de-registered > all the event listeners based on the ref counts attached with WebView > DOMWindow. Jay Bhaskar has

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v2]

2022-05-22 Thread Jay Bhaskar
On Thu, 19 May 2022 21:45:00 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Platform.exit() , removing code block, as it is causing other test fail > > modu

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v2]

2022-05-22 Thread Jay Bhaskar
On Thu, 19 May 2022 21:34:54 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Platform.exit() , removing code block, as it is causing other test fail > > modu

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v3]

2022-05-22 Thread Jay Bhaskar
stener explicitly removed , JavaEventListener is being > forwarded to EventListenerManager to clear the listener. > 7. When WebView goes out of scope, EventListenerManager will de-registered > all the event listeners based on the ref counts attached with WebView > DOMWindow. Jay Bhaskar has

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v2]

2022-05-19 Thread Jay Bhaskar
stener explicitly removed , JavaEventListener is being > forwarded to EventListenerManager to clear the listener. > 7. When WebView goes out of scope, EventListenerManager will de-registered > all the event listeners based on the ref counts attached with WebView > DOMWindow. Jay Bhaskar has

Re: RFR: 8088420: JavaFX WebView memory leak via EventListener [v2]

2022-05-19 Thread Jay Bhaskar
On Thu, 19 May 2022 15:22:08 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Platform.exit() , removing code block, as it is causing other test fail > > modules

RFR: 8088420: JavaFX WebView memory leak via EventListener

2022-05-19 Thread Jay Bhaskar
This PR is new implementation of JavaEvent listener memory management. Issue [JDK-8088420](https://bugs.openjdk.java.net/browse/JDK-8088420?filter=-1) 1. Calling remove event listener does not free jni global references. 2. When WebView goes out of scope (disposed from app) , its Event Listeners

Integrated: 8284184: Crash in GraphicsContextJava::drawLinesForText on https://us.yahoo.com/

2022-04-07 Thread Jay Bhaskar
On Sat, 2 Apr 2022 08:29:43 GMT, Jay Bhaskar wrote: > Issue: Floating point overflow , when making end point for line drawing as > FloatPoint endPoint = startPoint + FloatPoint(widths.last(), 0); > Solution: traverse widths to calculate end point and increment start point. This pul

Re: RFR: 8284184: Crash in GraphicsContextJava::drawLinesForText on https://us.yahoo.com/ [v2]

2022-04-07 Thread Jay Bhaskar
On Thu, 7 Apr 2022 09:55:36 GMT, Jay Bhaskar wrote: >> Issue: Floating point overflow , when making end point for line drawing as >> FloatPoint endPoint = startPoint + FloatPoint(widths.last(), 0); >> Solution: traverse widths to calculate end point and increment start poin

Re: RFR: 8284184: Crash in GraphicsContextJava::drawLinesForText on https://us.yahoo.com/ [v2]

2022-04-07 Thread Jay Bhaskar
> Issue: Floating point overflow , when making end point for line drawing as > FloatPoint endPoint = startPoint + FloatPoint(widths.last(), 0); > Solution: traverse widths to calculate end point and increment start point. Jay Bhaskar has updated the pull request incrementally with one a

Re: RFR: 8284184: Crash in GraphicsContextJava::drawLinesForText on https://us.yahoo.com/

2022-04-02 Thread Jay Bhaskar
On Sat, 2 Apr 2022 08:29:43 GMT, Jay Bhaskar wrote: > Issue: Floating point overflow , when making end point for line drawing as > FloatPoint endPoint = startPoint + FloatPoint(widths.last(), 0); > Solution: traverse widths to calculate end point and increment start po

RFR: 8284184: Crash in GraphicsContextJava::drawLinesForText on https://us.yahoo.com/

2022-04-02 Thread Jay Bhaskar
Issue: Floating point overflow , when making end point for line drawing as FloatPoint endPoint = startPoint + FloatPoint(widths.last(), 0); Solution: traverse widths to calculate end point and increment start point. - Commit messages: - Merge remote-tracking branch 'upstream/master'

Re: RFR: 8270867: Debug build of WebKit 613.1 fails on Linux

2022-03-16 Thread Jay Bhaskar
On Wed, 16 Mar 2022 07:54:57 GMT, Peter Zhelezniakov wrote: > The file `wtf/linux/MemoryPressureLinux.cpp` was renamed > `wtf/unix/MemoryPressureUnix.cpp` in https://trac.webkit.org/changeset/261428 > . In the openjfx workspace, both files are present. I'm removing the old file. Since there ar

Re: RFR: 8270867: Debug build of WebKit 613.1 fails on Linux

2022-03-16 Thread Jay Bhaskar
On Wed, 16 Mar 2022 07:54:57 GMT, Peter Zhelezniakov wrote: > The file `wtf/linux/MemoryPressureLinux.cpp` was renamed > `wtf/unix/MemoryPressureUnix.cpp` in https://trac.webkit.org/changeset/261428 > . In the openjfx workspace, both files are present. I'm removing the old file. Yes , The PR l

Re: RFR: 8270867: Debug build of WebKit 613.1 fails on Linux

2022-03-16 Thread Jay Bhaskar
On Wed, 16 Mar 2022 07:54:57 GMT, Peter Zhelezniakov wrote: > The file `wtf/linux/MemoryPressureLinux.cpp` was renamed > `wtf/unix/MemoryPressureUnix.cpp` in https://trac.webkit.org/changeset/261428 > . In the openjfx workspace, both files are present. I'm removing the old file. The patch http

Integrated: 8280020: Underline and line-through not straight in WebView

2022-03-07 Thread Jay Bhaskar
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not a

Re: RFR: 8280020: Underline and line-through not straight in WebView [v8]

2022-03-07 Thread Jay Bhaskar
gt; Start Point(x,y) --End Point(x + width, 0) Jay Bhaskar has updated the pull request incrementally with one additional commit since the last revision: formating for drawline - Changes: - all: https://git.openjdk.java.net/jfx/pull/731/files - new: https://git.openj

Integrated: 8269115: WebView paste event contains old data

2022-03-07 Thread Jay Bhaskar
On Tue, 8 Feb 2022 11:13:20 GMT, Jay Bhaskar wrote: > Issue: The DataObject uses m_availMimeTypes as Vector of strings, and > appending mime types in pasteboard operation like setPlainText, Hence it will > append duplicate mime types in m_availMimeTypes , in this case t

Integrated: 8255940: localStorage is null after window.close()

2022-03-05 Thread Jay Bhaskar
On Mon, 27 Dec 2021 09:31:08 GMT, Jay Bhaskar wrote: > Issue: The current implementation of DOMWindow ::localStorage(..) returns > null pointer in case of page is being closed. > Fix: It should not return nullptr , as per the [w3c web storage > spec](https://www.w3.org/TR/2016/RE

Re: RFR: 8255940: localStorage is null after window.close() [v9]

2022-03-04 Thread Jay Bhaskar
expire data from the local storage areas only for > security reasons or when requested to do so by the user. User agents should > always avoid deleting data while a script that could access that data is > running." Jay Bhaskar has updated the pull request incrementally with one

Re: RFR: 8255940: localStorage is null after window.close() [v8]

2022-03-04 Thread Jay Bhaskar
On Thu, 3 Mar 2022 17:08:49 GMT, Jay Bhaskar wrote: >> Issue: The current implementation of DOMWindow ::localStorage(..) returns >> null pointer in case of page is being closed. >> Fix: It should not return nullptr , as per the [w3c web storage >> spec](https:

Re: RFR: 8280020: Underline and line-through not straight in WebView [v7]

2022-03-03 Thread Jay Bhaskar
gt; Start Point(x,y) --End Point(x + width, 0) Jay Bhaskar has updated the pull request incrementally with two additional commits since the last revision: - test needs width and height , during creattion of webview - test needs width and height , during creattion of webview ---

Re: RFR: 8269115: WebView paste event contains old data [v7]

2022-03-03 Thread Jay Bhaskar
ata would be copied to > clipboard target. > Solution: Use ListHashSet data Structure instead of Vector for > m_availMimeTypes. Jay Bhaskar has updated the pull request incrementally with one additional commit since the last revision: removed automated test HTMLClipBoardTest.java,

Re: RFR: 8269115: WebView paste event contains old data [v6]

2022-03-03 Thread Jay Bhaskar
ata would be copied to > clipboard target. > Solution: Use ListHashSet data Structure instead of Vector for > m_availMimeTypes. Jay Bhaskar has updated the pull request incrementally with five additional commits since the last revision: - added manual test - Add new Test case for cop

Re: RFR: 8255940: localStorage is null after window.close() [v7]

2022-03-03 Thread Jay Bhaskar
On Tue, 1 Mar 2022 10:00:58 GMT, Ambarish Rapte wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Clean up test and fix > > modules/javafx.web/src/main/native/Source/WebCore/page/DOM

Re: RFR: 8255940: localStorage is null after window.close() [v8]

2022-03-03 Thread Jay Bhaskar
expire data from the local storage areas only for > security reasons or when requested to do so by the user. User agents should > always avoid deleting data while a script that could access that data is > running." Jay Bhaskar has updated the pull request incrementally with one

Re: RFR: 8280020: Underline and line-through not straight in WebView [v6]

2022-02-28 Thread Jay Bhaskar
gt; Start Point(x,y) --End Point(x + width, 0) Jay Bhaskar has updated the pull request incrementally with one additional commit since the last revision: PR review changes applied - Changes: - all: https://git.openjdk.java.net/jfx/pull/731/files - new: https://git.openj

Re: RFR: 8280020: Underline and line-through not straight in WebView [v5]

2022-02-28 Thread Jay Bhaskar
On Mon, 28 Feb 2022 15:12:37 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> New chnages for line test > > tests/system/src/test/java/test/javafx/scene/web/Str

Re: RFR: 8280020: Underline and line-through not straight in WebView [v5]

2022-02-28 Thread Jay Bhaskar
On Mon, 28 Feb 2022 15:10:27 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> New chnages for line test > > tests/system/src/test/java/test/javafx/scene/web/St

Re: RFR: 8255940: localStorage is null after window.close() [v7]

2022-02-28 Thread Jay Bhaskar
expire data from the local storage areas only for > security reasons or when requested to do so by the user. User agents should > always avoid deleting data while a script that could access that data is > running." Jay Bhaskar has updated the pull request incrementally with one

Re: RFR: 8255940: localStorage is null after window.close() [v5]

2022-02-28 Thread Jay Bhaskar
On Mon, 28 Feb 2022 14:53:39 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add Review Changes > > modules/javafx.web/src/test/java/test/javafx/scene/web/Lo

Re: RFR: 8255940: localStorage is null after window.close() [v6]

2022-02-28 Thread Jay Bhaskar
On Mon, 28 Feb 2022 13:58:03 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add Review Changes > > modules/javafx.web/src/main/native/Source/WebCore/page/DOM

Re: RFR: 8278759 : PointerEvent: buttons property set to 0 when mouse down [v3]

2022-02-28 Thread Jay Bhaskar
On Fri, 25 Feb 2022 17:54:48 GMT, Hima Bindu Meda wrote: >> Basically, buttons property is a mask which represents the button/buttons >> clicked on the mouse. >> It is observed that event.buttons property is set to 0 when there is >> mouse press or drag event.This behaviour is observed only

Re: RFR: 8280020: Underline and line-through not straight in WebView [v5]

2022-02-26 Thread Jay Bhaskar
gt; Start Point(x,y) --End Point(x + width, 0) Jay Bhaskar has updated the pull request incrementally with one additional commit since the last revision: New chnages for line test - Changes: - all: https://git.openjdk.java.net/jfx/pull/731/files - new: https://git.openj

Re: RFR: 8255940: localStorage is null after window.close() [v6]

2022-02-26 Thread Jay Bhaskar
expire data from the local storage areas only for > security reasons or when requested to do so by the user. User agents should > always avoid deleting data while a script that could access that data is > running." Jay Bhaskar has updated the pull request incrementally with one

Re: RFR: 8255940: localStorage is null after window.close() [v6]

2022-02-26 Thread Jay Bhaskar
On Sat, 5 Feb 2022 14:57:50 GMT, Kevin Rushforth wrote: >> modules/javafx.web/src/main/native/Source/WebCore/page/DOMWindow.cpp line >> 857: >> >>> 855: return m_localStorage.get(); >>> 856: } >>> 857: >> >> This will change the behavior for the case where page is null or wher

Re: RFR: 8255940: localStorage is null after window.close() [v3]

2022-02-26 Thread Jay Bhaskar
On Sun, 27 Feb 2022 05:25:25 GMT, Jay Bhaskar wrote: >> modules/javafx.web/src/test/java/test/javafx/scene/web/LocalStorageTest.java >> line 55: >> >>> 53: >>> 54: private static final File LOCAL_STORAGE_DIR = new >>> File("LocalS

Re: RFR: 8255940: localStorage is null after window.close() [v5]

2022-02-26 Thread Jay Bhaskar
expire data from the local storage areas only for > security reasons or when requested to do so by the user. User agents should > always avoid deleting data while a script that could access that data is > running." Jay Bhaskar has updated the pull request incrementally with one

Re: RFR: 8255940: localStorage is null after window.close() [v3]

2022-02-26 Thread Jay Bhaskar
On Fri, 25 Feb 2022 23:15:54 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with three additional >> commits since the last revision: >> >> - Change Dir Path and use local Dir and set data before clearing >> locals

Re: RFR: 8255940: localStorage is null after window.close() [v3]

2022-02-26 Thread Jay Bhaskar
On Sun, 27 Feb 2022 05:30:44 GMT, Jay Bhaskar wrote: >> Agree > > Agree, done Agree - PR: https://git.openjdk.java.net/jfx/pull/703

Re: RFR: 8255940: localStorage is null after window.close() [v3]

2022-02-26 Thread Jay Bhaskar
On Sun, 27 Feb 2022 05:30:34 GMT, Jay Bhaskar wrote: >> modules/javafx.web/src/test/java/test/javafx/scene/web/LocalStorageTest.java >> line 59: >> >>> 57: private static RandomAccessFile preLockedRaf; >>> 58: private static FileLock preLockedLo

Re: RFR: 8255940: localStorage is null after window.close() [v3]

2022-02-26 Thread Jay Bhaskar
On Fri, 25 Feb 2022 23:09:00 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with three additional >> commits since the last revision: >> >> - Change Dir Path and use local Dir and set data before clearing >> locals

Re: RFR: 8255940: localStorage is null after window.close() [v4]

2022-02-26 Thread Jay Bhaskar
expire data from the local storage areas only for > security reasons or when requested to do so by the user. User agents should > always avoid deleting data while a script that could access that data is > running." Jay Bhaskar has updated the pull request incrementally with one

Re: RFR: 8269115: WebView paste event contains old data [v4]

2022-02-24 Thread Jay Bhaskar
On Fri, 25 Feb 2022 07:11:49 GMT, Jay Bhaskar wrote: >> Issue: The DataObject uses m_availMimeTypes as Vector of strings, and >> appending mime types in pasteboard operation like setPlainText, Hence it >> will append duplicate mime types in m_availMimeTypes , in this c

Re: RFR: 8269115: WebView paste event contains old data [v5]

2022-02-24 Thread Jay Bhaskar
ata would be copied to > clipboard target. > Solution: Use ListHashSet data Structure instead of Vector for > m_availMimeTypes. Jay Bhaskar has updated the pull request incrementally with two additional commits since the last revision: - formating change - formating change --

Re: RFR: 8269115: WebView paste event contains old data [v4]

2022-02-24 Thread Jay Bhaskar
ata would be copied to > clipboard target. > Solution: Use ListHashSet data Structure instead of Vector for > m_availMimeTypes. Jay Bhaskar has updated the pull request incrementally with one additional commit since the last revision: Test regression according to bug --

Re: RFR: 8269115: WebView paste event contains old data [v3]

2022-02-24 Thread Jay Bhaskar
ata would be copied to > clipboard target. > Solution: Use ListHashSet data Structure instead of Vector for > m_availMimeTypes. Jay Bhaskar has updated the pull request incrementally with one additional commit since the last revision: Test case chnaged - Ch

Re: RFR: 8269115: WebView paste event contains old data [v2]

2022-02-24 Thread Jay Bhaskar
On Thu, 24 Feb 2022 16:05:41 GMT, Jay Bhaskar wrote: >> Issue: The DataObject uses m_availMimeTypes as Vector of strings, and >> appending mime types in pasteboard operation like setPlainText, Hence it >> will append duplicate mime types in m_availMimeTypes , in this c

Re: RFR: 8269115: WebView paste event contains old data [v2]

2022-02-24 Thread Jay Bhaskar
ata would be copied to > clipboard target. > Solution: Use ListHashSet data Structure instead of Vector for > m_availMimeTypes. Jay Bhaskar has updated the pull request incrementally with one additional commit since the last revision: PR commnets applied - Ch

Re: RFR: 8269115: WebView paste event contains old data

2022-02-24 Thread Jay Bhaskar
On Thu, 24 Feb 2022 12:42:49 GMT, Ambarish Rapte wrote: >> Issue: The DataObject uses m_availMimeTypes as Vector of strings, and >> appending mime types in pasteboard operation like setPlainText, Hence it >> will append duplicate mime types in m_availMimeTypes , in this case the >> length clip

Integrated: 8282134: Certain regex can cause a JS trap in WebView

2022-02-22 Thread Jay Bhaskar
On Sat, 19 Feb 2022 11:43:00 GMT, Jay Bhaskar wrote: > Fix YarrJIT backtrackCharacterClassNonGreedy breakpoint() Certain regex can > cause a JS trap in WebView This pull request has now been integrated. Changeset: 73963960 Author: Jay Bhaskar Committer: Kevin Rushforth URL:

Re: RFR: 8282134: Certain regex can cause a JS trap in WebView [v3]

2022-02-22 Thread Jay Bhaskar
On Tue, 22 Feb 2022 12:43:37 GMT, Jay Bhaskar wrote: >> Fix YarrJIT backtrackCharacterClassNonGreedy breakpoint() Certain regex can >> cause a JS trap in WebView > > Jay Bhaskar has refreshed the contents of this pull request, and previous > commits have been removed. Incr

Re: RFR: 8282134: Certain regex can cause a JS trap in WebView [v3]

2022-02-22 Thread Jay Bhaskar
> Fix YarrJIT backtrackCharacterClassNonGreedy breakpoint() Certain regex can > cause a JS trap in WebView Jay Bhaskar has refreshed the contents of this pull request, and previous commits have been removed. Incremental views are not available. The pull request now contains one

Re: RFR: 8282134: Certain regex can cause a JS trap in WebView [v2]

2022-02-22 Thread Jay Bhaskar
On Tue, 22 Feb 2022 10:03:30 GMT, Jay Bhaskar wrote: >> Fix YarrJIT backtrackCharacterClassNonGreedy breakpoint() Certain regex can >> cause a JS trap in WebView > > Jay Bhaskar has updated the pull request incrementally with two additional > commits since the last re

Re: RFR: 8282134: Certain regex can cause a JS trap in WebView [v2]

2022-02-22 Thread Jay Bhaskar
> Fix YarrJIT backtrackCharacterClassNonGreedy breakpoint() Certain regex can > cause a JS trap in WebView Jay Bhaskar has updated the pull request incrementally with two additional commits since the last revision: - Merge branch 'public-sec-bug' of https://github.com/jay

Re: RFR: 8280020: Underline and line-through not straight in WebView [v4]

2022-02-20 Thread Jay Bhaskar
gt; Start Point(x,y) --End Point(x + width, 0) Jay Bhaskar has updated the pull request incrementally with one additional commit since the last revision: Improve style and width iterartion logic - Changes: - all: https://git.openjdk.java.net/jfx/pull/731/files

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-20 Thread Jay Bhaskar
On Sat, 19 Feb 2022 15:03:38 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update test case for line straightness check > > tests/system/src/t

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-20 Thread Jay Bhaskar
On Mon, 21 Feb 2022 04:19:29 GMT, Jay Bhaskar wrote: >> tests/system/src/test/java/test/javafx/scene/web/StraightLineTest.java line >> 163: >> >>> 161: >>> 162: // buttom start x position of underline ( startx + font >>> size + thickn

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-20 Thread Jay Bhaskar
On Sat, 19 Feb 2022 14:55:30 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update test case for line straightness check > > tests/system/src/t

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-20 Thread Jay Bhaskar
On Sat, 19 Feb 2022 14:45:53 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update test case for line straightness check > > tests/system/src/t

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-20 Thread Jay Bhaskar
On Sat, 19 Feb 2022 16:51:52 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update test case for line straightness check > > tests/system/src/t

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-20 Thread Jay Bhaskar
On Sat, 19 Feb 2022 14:32:46 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update test case for line straightness check > > tests/system/src/t

RFR: 8282134: Certain regex can cause a JS trap in WebView

2022-02-19 Thread Jay Bhaskar
Fix YarrJIT backtrackCharacterClassNonGreedy breakpoint() Certain regex can cause a JS trap in WebView - Commit messages: - 8282134: Certain regex can cause a JS trap in WebView Changes: https://git.openjdk.java.net/jfx/pull/739/files Webrev: https://webrevs.openjdk.java.net/?repo

Re: RFR: 8280020: Underline and line-through not straight in WebView [v2]

2022-02-18 Thread Jay Bhaskar
On Sun, 13 Feb 2022 07:35:32 GMT, Jay Bhaskar wrote: >> Issue: The end point of line in drawLinesForText , add thickness to the >> endPoint.y(). In this case origin which is start point and the end point >> would not be same, and line would be drawn not straight. >&

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-18 Thread Jay Bhaskar
gt; Start Point(x,y) --End Point(x + width, 0) Jay Bhaskar has updated the pull request incrementally with one additional commit since the last revision: Update test case for line straightness check - Changes: - all: https://git.openjdk.java.net/jfx/pull/731/files

Re: RFR: 8280020: Underline and line-through not straight in WebView [v2]

2022-02-12 Thread Jay Bhaskar
On Sun, 13 Feb 2022 07:35:32 GMT, Jay Bhaskar wrote: >> Issue: The end point of line in drawLinesForText , add thickness to the >> endPoint.y(). In this case origin which is start point and the end point >> would not be same, and line would be drawn not straight. >&

Re: RFR: 8280020: Underline and line-through not straight in WebView [v2]

2022-02-12 Thread Jay Bhaskar
gt; Start Point(x,y) --End Point(x + width, 0) Jay Bhaskar has updated the pull request incrementally with one additional commit since the last revision: adjust thickness - Changes: - all: https://git.openjdk.java.net/jfx/pull/731/files - new: https://git.openjdk.java.n

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-12 Thread Jay Bhaskar
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not a

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-11 Thread Jay Bhaskar
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not a

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-11 Thread Jay Bhaskar
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not a

RFR: 8280020: Underline and line-through not straight in WebView

2022-02-10 Thread Jay Bhaskar
Issue: The end point of line in drawLinesForText , add thickness to the endPoint.y(). In this case origin which is start point and the end point would not be same, and line would be drawn not straight. Solution: Do not add thickness to the y position of end point of line. Start Point(x,y) --

RFR: 8269115: WebView paste event contains old data

2022-02-08 Thread Jay Bhaskar
Issue: The DataObject uses m_availMimeTypes as Vector of strings, and appending mime types in pasteboard operation like setPlainText, Hence it will append duplicate mime types in m_availMimeTypes , in this case the length clipboardData.types would be wrong, and duplicates data would be copied to

Re: RFR: 8255940: localStorage is null after window.close() [v3]

2022-02-07 Thread Jay Bhaskar
On Sun, 6 Feb 2022 11:54:14 GMT, Jay Bhaskar wrote: >> No, it's not OK for two reasons: >> >> 1. It prevents concurrent execution of tests from two different directories >> 2. The Java temp directory might be something other than "/tmp" on some >>

Re: RFR: 8255940: localStorage is null after window.close() [v3]

2022-02-07 Thread Jay Bhaskar
expire data from the local storage areas only for > security reasons or when requested to do so by the user. User agents should > always avoid deleting data while a script that could access that data is > running." Jay Bhaskar has updated the pull request incrementally with three

Re: RFR: 8255940: localStorage is null after window.close() [v2]

2022-02-06 Thread Jay Bhaskar
On Sat, 5 Feb 2022 15:01:37 GMT, Kevin Rushforth wrote: >> i think /tmp/java-store is ok, as it would not require cleanup > > No, it's not OK for two reasons: > > 1. It prevents concurrent execution of tests from two different directories > 2. The Java temp directory might be something other tha

Re: RFR: 8255940: localStorage is null after window.close() [v2]

2022-02-05 Thread Jay Bhaskar
On Sat, 5 Feb 2022 15:17:46 GMT, Jay Bhaskar wrote: >> Can you comment on this? > > yes, your are right , i would change it i will test unit case again after your suggested chnage - PR: https://git.openjdk.java.net/jfx/pull/703

Re: RFR: 8255940: localStorage is null after window.close() [v2]

2022-02-05 Thread Jay Bhaskar
On Sat, 5 Feb 2022 15:02:09 GMT, Kevin Rushforth wrote: >> modules/javafx.web/src/test/java/test/javafx/scene/web/LocalStorageTest.java >> line 60: >> >>> 58: assertNotNull(webEngine.executeScript("localStorage;")); >>> 59: getEngine().executeScript("window.close();"); >

Re: RFR: 8255940: localStorage is null after window.close() [v2]

2022-02-05 Thread Jay Bhaskar
On Sat, 5 Feb 2022 15:04:37 GMT, Kevin Rushforth wrote: >> The test runs after testLocalStorageSet , so there would be items in >> localstorage > > No, this is a common misconception when writing JUnit tests. The test > execution order is _not_ guaranteed and will change. Each test method needs

Re: RFR: 8255940: localStorage is null after window.close() [v2]

2022-02-05 Thread Jay Bhaskar
On Sat, 5 Feb 2022 14:58:25 GMT, Kevin Rushforth wrote: >> in recent code base (webkit upgrade)the localstorage is false , >> @@ -1579,7 +1579,7 @@ NeedsSiteSpecificQuirks: >> WebKit: >>default: true >> WebCore: >> - default: false >> + default: true >> >> So , it nee

Re: RFR: 8255940: localStorage is null after window.close() [v2]

2022-02-05 Thread Jay Bhaskar
On Sat, 5 Feb 2022 12:51:58 GMT, Jay Bhaskar wrote: >> modules/javafx.web/src/main/native/Source/WebCore/page/DOMWindow.cpp line >> 859: >> >>> 857: if (page->isClosing() && m_localStorage) >>> 858: return m_localStorage.

Re: RFR: 8255940: localStorage is null after window.close() [v2]

2022-02-05 Thread Jay Bhaskar
On Fri, 28 Jan 2022 00:10:31 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request conta

Re: RFR: 8255940: localStorage is null after window.close() [v2]

2022-02-04 Thread Jay Bhaskar
On Fri, 28 Jan 2022 00:11:40 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request conta

Re: RFR: 8255940: localStorage is null after window.close() [v2]

2022-02-04 Thread Jay Bhaskar
expire data from the local storage areas only for > security reasons or when requested to do so by the user. User agents should > always avoid deleting data while a script that could access that data is > running." Jay Bhaskar has updated the pull request with a new target bas

RFR: 8255940: localStorage is null after window.close()

2022-01-13 Thread Jay Bhaskar
Issue: The current implementation of DOMWindow ::localStorage(..) returns null pointer in case of page is being closed. Fix: It should not return nullptr , as per the [w3c web storage spec](https://www.w3.org/TR/2016/REC-webstorage-20160419/) "User agents should expire data from the local stora