| Summary: | DOMTimer nesting level may not impact each other. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Horky <chenhao> | ||||||||
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||||||
| Status: | NEW --- | ||||||||||
| Severity: | Normal | CC: | ahmad.saleem792, ap, barraclough, bfulgham, cdumez, chenhao, commit-queue, darin, rniwa | ||||||||
| Priority: | P2 | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Horky
2014-10-10 18:13:56 PDT
I do not prefer to clear the nesting level before the early return in DOMTimer::fired, some algorithms rely on it. Maybe moving nesting level from Document to DOMTimer is a optional solution. (In reply to comment #1) > I do not prefer to clear the nesting level before the early return in DOMTimer::fired, some algorithms rely on it. Maybe moving nesting level from Document to DOMTimer is a optional solution. I miss-understood that, the DOMTimer already has its own nesting level. So that is reasonable to clear the nesting level of script execution context. Created attachment 240093 [details]
Fixing patch for review
I'd like to submit one patch to reset the nesting level in the script execution context, would you please help to review it?
The correct way to ask for review is to set the review flag to ?, not to +. Attachment 240093 [details] did not pass style-queue:
ERROR: Source/WebCore/page/DOMTimer.cpp:210: Tab found; better to use spaces [whitespace/tab] [1]
ERROR: Source/WebCore/page/DOMTimer.cpp:211: Tab found; better to use spaces [whitespace/tab] [1]
Total errors found: 2 in 2 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 240098 [details]
Fixing patch for review
Corrected the review flag and coding style. Thanks.
Comment on attachment 240098 [details] Fixing patch for review View in context: https://bugs.webkit.org/attachment.cgi?id=240098&action=review Looks good. A few small issues. A larger issues is that we require a regression test with every bug fix. Can we construct one that demonstrates this bug? If we cannot, then the change log should include information about why we were not able to construct a regression test. > Source/WebCore/ChangeLog:6 > + Unreviewed. This needs to include the Reviewed by NOBODY (OOPS!) line so the patch management system can add the name of the reviewer here. > Source/WebCore/ChangeLog:9 > + (WebCore::DOMTimer::fired): This needs to describe the change and explain why it’s correct. > Source/WebCore/page/DOMTimer.cpp:211 > + I suggest omitting this blank line. Created attachment 240176 [details]
Fixing patch for review
Thanks for Darin's Review!
(In reply to comment #7) > Comment on attachment 240098 [details] > Fixing patch for review > > View in context: > https://bugs.webkit.org/attachment.cgi?id=240098&action=review > > Looks good. A few small issues. > > A larger issues is that we require a regression test with every bug fix. Can > we construct one that demonstrates this bug? If we cannot, then the change > log should include information about why we were not able to construct a > regression test. > > > Source/WebCore/ChangeLog:6 > > + Unreviewed. > > This needs to include the Reviewed by NOBODY (OOPS!) line so the patch > management system can add the name of the reviewer here. > > > Source/WebCore/ChangeLog:9 > > + (WebCore::DOMTimer::fired): > > This needs to describe the change and explain why it’s correct. > > > Source/WebCore/page/DOMTimer.cpp:211 > > + > > I suggest omitting this blank line. Thanks! I updated it again. Comment on attachment 240093 [details] Fixing patch for review Cleared review+ from obsolete attachment 240093 [details] so that this bug does not appear in http://webkit.org/pending-commit. Mass move bugs into the DOM component. I updated test case from Comment 0 with HTTPS link and new images: Link - https://jsfiddle.net/c10wr9y3/show In Safari 15.6, clicking on "Goto Next Page" does not work at all while it works fro all other browsers and I get following in Console: Refused to display 'https://webkit.org/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. I am not sure this is the behavior about this bug or not but this is my testing results, all other browsers allow to clicking "Goto Next Page" and then navigate by giving errors and upon return, they show "Timer" as "PAUSED". Similar patch in Blink: https://chromium.googlesource.com/chromium/src.git/+/81f013144ccfc759101193455919b4c1d04c1715 |