Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Issue 2815803003: Make Pageshow event asynchronous in EventQueueScope (Closed)

Created:
3 years, 8 months ago by yuzuchan
Modified:
3 years, 8 months ago
Reviewers:
tkent, yosin_UTC9, kochi
CC:
blink-reviews, blink-reviews-frames_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Pageshow event asynchronous in EventQueueScope As per spec Pageshow event must be fired asynchonously all the time, but to be compatible with other browsers blink used to fire Pageshow synchronously. And thus Pageshow event was able to modify nodes when it should not. This CL makes Pageshow fired asynchronously when it is in EventQueueScope to solve the problem. BUG=660269, 543424 Review-Url: https://codereview.chromium.org/2815803003 Cr-Commit-Position: refs/heads/master@{#464347} Committed: https://chromium.googlesource.com/chromium/src/+/f8de91ba0d69c4f2b64407c5a218774e554e0c9a

Patch Set 1 #

Patch Set 2 : Delete unnecessary change #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/dom/Range/insertNode-trigger-onpageshow-crash.html View 1 chunk +23 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 1 chunk +6 lines, -1 line 3 comments Download

Messages

Total messages: 23 (11 generated)
yuzuchan
PTAL :)
3 years, 8 months ago (2017-04-12 10:00:29 UTC) #6
yosin_UTC9
lgtm https://codereview.chromium.org/2815803003/diff/20001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2815803003/diff/20001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode429 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:429: if (ScopedEventQueue::Instance()->ShouldQueueEvents() && document_) { Nice finding. I've ...
3 years, 8 months ago (2017-04-12 10:08:03 UTC) #7
yosin_UTC9
+tkent@ for OWNERS review https://codereview.chromium.org/2815803003/diff/20001/third_party/WebKit/LayoutTests/fast/dom/Range/insertNode-trigger-onpageshow-crash.html File third_party/WebKit/LayoutTests/fast/dom/Range/insertNode-trigger-onpageshow-crash.html (right): https://codereview.chromium.org/2815803003/diff/20001/third_party/WebKit/LayoutTests/fast/dom/Range/insertNode-trigger-onpageshow-crash.html#newcode1 third_party/WebKit/LayoutTests/fast/dom/Range/insertNode-trigger-onpageshow-crash.html:1: <!DOCTYPE html> Could you use ...
3 years, 8 months ago (2017-04-13 00:56:16 UTC) #9
tkent
https://codereview.chromium.org/2815803003/diff/20001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2815803003/diff/20001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode427 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:427: // asynchronously. However to be compatible with other browsers ...
3 years, 8 months ago (2017-04-13 01:26:16 UTC) #10
yuzuchan
On 2017/04/13 at 00:56:16, yosin wrote: > +tkent@ for OWNERS review > > https://codereview.chromium.org/2815803003/diff/20001/third_party/WebKit/LayoutTests/fast/dom/Range/insertNode-trigger-onpageshow-crash.html > ...
3 years, 8 months ago (2017-04-13 06:17:33 UTC) #11
tkent
https://codereview.chromium.org/2815803003/diff/20001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2815803003/diff/20001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode427 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:427: // asynchronously. However to be compatible with other browsers ...
3 years, 8 months ago (2017-04-13 06:19:14 UTC) #12
kochi
I think this is a safe change (call onpageshow event asynchronously when necessary) to make. ...
3 years, 8 months ago (2017-04-13 06:19:18 UTC) #13
yuzuchan
On 2017/04/13 at 01:26:16, tkent wrote: > https://codereview.chromium.org/2815803003/diff/20001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp > File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): > > https://codereview.chromium.org/2815803003/diff/20001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode427 ...
3 years, 8 months ago (2017-04-13 06:31:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2815803003/20001
3 years, 8 months ago (2017-04-13 06:33:44 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/361595)
3 years, 8 months ago (2017-04-13 07:49:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2815803003/20001
3 years, 8 months ago (2017-04-13 07:52:37 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 09:01:34 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f8de91ba0d69c4f2b64407c5a218...

Powered by Google App Engine
This is Rietveld 408576698