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

Issue 374623002: [screen-orientation] Update implementation to match recent spec changes. (Closed)

Created:
6 years, 5 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 5 months ago
CC:
blink-reviews, Peter Beverloo, oilpan-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : fix crash and legacy api #

Patch Set 3 : #

Patch Set 4 : solve lifetime issues #

Patch Set 5 : fix move #

Total comments: 8

Patch Set 6 : review comments #

Patch Set 7 : cleanup #

Patch Set 8 : ScreenOrientation is a DOMWindowProperty #

Total comments: 7

Patch Set 9 : #

Total comments: 3

Patch Set 10 : fix #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -322 lines) Patch
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/window-appendages-cleared-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/screen_orientation/lockOrientation-bad-argument.html View 1 chunk +56 lines, -28 lines 0 comments Download
D LayoutTests/screen_orientation/lockOrientation-bad-argument-expected.txt View 1 chunk +0 lines, -24 lines 0 comments Download
D LayoutTests/screen_orientation/lockOrientation-bad-array-argument.html View 1 chunk +0 lines, -38 lines 0 comments Download
D LayoutTests/screen_orientation/lockOrientation-bad-array-argument-expected.txt View 1 chunk +0 lines, -16 lines 0 comments Download
M LayoutTests/screen_orientation/lockOrientation-basic.html View 2 chunks +7 lines, -7 lines 0 comments Download
D LayoutTests/screen_orientation/orientation-attribute.html View 1 chunk +0 lines, -12 lines 0 comments Download
D LayoutTests/screen_orientation/orientation-attribute-expected.txt View 1 chunk +0 lines, -10 lines 0 comments Download
A LayoutTests/screen_orientation/orientation-reading.html View 1 chunk +50 lines, -0 lines 0 comments Download
M LayoutTests/screen_orientation/orientationchange-event.html View 2 chunks +9 lines, -16 lines 0 comments Download
M LayoutTests/screen_orientation/orientationchange-event-subframe.html View 3 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/screen_orientation/page-visibility.html View 4 chunks +8 lines, -8 lines 0 comments Download
M LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/screen_orientation/resources/sandboxed-iframe-locking.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/screen_orientation/screenorientation-api.html View 1 chunk +27 lines, -7 lines 0 comments Download
D LayoutTests/screen_orientation/screenorientation-api-expected.txt View 1 chunk +0 lines, -13 lines 0 comments Download
M LayoutTests/webexposed/global-constructors-listing-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/LocalFrame.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 chunk +0 lines, -24 lines 0 comments Download
M Source/modules/EventTargetModulesFactory.in View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -1 line 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.h View 1 2 3 4 5 6 7 1 chunk +32 lines, -14 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.cpp View 1 2 3 4 5 6 7 3 chunks +64 lines, -35 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.idl View 2 chunks +13 lines, -10 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.h View 1 2 3 4 5 6 3 chunks +17 lines, -6 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.cpp View 1 2 3 4 5 6 7 8 9 6 chunks +78 lines, -34 lines 0 comments Download
A Source/modules/screen_orientation/ScreenScreenOrientation.h View 1 2 3 4 5 6 7 1 chunk +36 lines, -0 lines 0 comments Download
A Source/modules/screen_orientation/ScreenScreenOrientation.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +53 lines, -0 lines 0 comments Download
A Source/modules/screen_orientation/ScreenScreenOrientation.idl View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
mlamouri (slow - plz ping)
6 years, 5 months ago (2014-07-07 17:13:54 UTC) #1
abarth-chromium
Several parts of this CL look like they have tricky memory issues. Would you be ...
6 years, 5 months ago (2014-07-07 17:29:33 UTC) #2
mlamouri (slow - plz ping)
https://codereview.chromium.org/374623002/diff/80001/Source/modules/screen_orientation/PartialScreenOrientation.h File Source/modules/screen_orientation/PartialScreenOrientation.h (right): https://codereview.chromium.org/374623002/diff/80001/Source/modules/screen_orientation/PartialScreenOrientation.h#newcode17 Source/modules/screen_orientation/PartialScreenOrientation.h:17: class PartialScreenOrientation FINAL : public NoBaseWillBeGarbageCollectedFinalized<PartialScreenOrientation>, public WillBeHeapSupplement<Screen>, DOMWindowProperty ...
6 years, 5 months ago (2014-07-08 14:07:59 UTC) #3
abarth-chromium
On 2014/07/08 at 14:07:59, mlamouri wrote: > https://codereview.chromium.org/374623002/diff/80001/Source/modules/screen_orientation/ScreenOrientation.h > File Source/modules/screen_orientation/ScreenOrientation.h (right): > > https://codereview.chromium.org/374623002/diff/80001/Source/modules/screen_orientation/ScreenOrientation.h#newcode26 ...
6 years, 5 months ago (2014-07-08 14:43:25 UTC) #4
mlamouri (slow - plz ping)
On 2014/07/08 14:43:25, abarth wrote: > > I wonder now why NetworkInformation uses ActiveDOMObject. It ...
6 years, 5 months ago (2014-07-08 15:10:15 UTC) #5
mlamouri (slow - plz ping)
So, it seems that when ScreenScreenOrientation is being destroyed, m_orientation has no more reference. It's ...
6 years, 5 months ago (2014-07-08 15:42:09 UTC) #6
mlamouri (slow - plz ping)
I've updated the patch to make ScreenScreenOrientation no longer a DOMWindowProperty but make ScreenORientation one ...
6 years, 5 months ago (2014-07-08 16:41:24 UTC) #7
abarth-chromium
LGTM!
6 years, 5 months ago (2014-07-09 06:04:27 UTC) #8
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 5 months ago (2014-07-09 06:04:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/374623002/140001
6 years, 5 months ago (2014-07-09 06:05:24 UTC) #10
sof
oilpan lgtm. https://codereview.chromium.org/374623002/diff/140001/Source/modules/screen_orientation/ScreenOrientationController.cpp File Source/modules/screen_orientation/ScreenOrientationController.cpp (right): https://codereview.chromium.org/374623002/diff/140001/Source/modules/screen_orientation/ScreenOrientationController.cpp#newcode135 Source/modules/screen_orientation/ScreenOrientationController.cpp:135: if (!ScreenOrientationController::from(*childFrames[i])) Would be tidier as ScreenOrientationController ...
6 years, 5 months ago (2014-07-09 07:02:53 UTC) #11
Mads Ager (chromium)
LGTM2
6 years, 5 months ago (2014-07-09 07:09:03 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-09 07:13:32 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-09 07:39:37 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/15248)
6 years, 5 months ago (2014-07-09 07:39:38 UTC) #15
mlamouri (slow - plz ping)
https://codereview.chromium.org/374623002/diff/140001/Source/modules/screen_orientation/ScreenOrientationController.cpp File Source/modules/screen_orientation/ScreenOrientationController.cpp (right): https://codereview.chromium.org/374623002/diff/140001/Source/modules/screen_orientation/ScreenOrientationController.cpp#newcode135 Source/modules/screen_orientation/ScreenOrientationController.cpp:135: if (!ScreenOrientationController::from(*childFrames[i])) On 2014/07/09 07:02:53, sof wrote: > Would ...
6 years, 5 months ago (2014-07-09 09:17:30 UTC) #16
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 5 months ago (2014-07-09 09:17:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/374623002/160001
6 years, 5 months ago (2014-07-09 09:18:33 UTC) #18
commit-bot: I haz the power
Change committed as 177734
6 years, 5 months ago (2014-07-09 12:52:35 UTC) #19
Justin Novosad
On 2014/07/09 12:52:35, I haz the power (commit-bot) wrote: > Change committed as 177734 New ...
6 years, 5 months ago (2014-07-09 18:46:01 UTC) #20
Justin Novosad
On 2014/07/09 18:46:01, junov wrote: > On 2014/07/09 12:52:35, I haz the power (commit-bot) wrote: ...
6 years, 5 months ago (2014-07-09 18:49:31 UTC) #21
Justin Novosad
A revert of this CL has been created in https://codereview.chromium.org/381753002/ by junov@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-09 18:51:14 UTC) #22
sof
It'd be good if you could address this as part of relanding the CL. https://codereview.chromium.org/374623002/diff/160001/Source/modules/screen_orientation/ScreenScreenOrientation.cpp ...
6 years, 5 months ago (2014-07-09 19:33:38 UTC) #23
sof
https://codereview.chromium.org/374623002/diff/160001/Source/modules/screen_orientation/ScreenScreenOrientation.cpp File Source/modules/screen_orientation/ScreenScreenOrientation.cpp (right): https://codereview.chromium.org/374623002/diff/160001/Source/modules/screen_orientation/ScreenScreenOrientation.cpp#newcode49 Source/modules/screen_orientation/ScreenScreenOrientation.cpp:49: m_orientation->trace(visitor); On 2014/07/09 19:33:37, sof wrote: > Oh, this ...
6 years, 5 months ago (2014-07-10 05:06:21 UTC) #24
Mads Ager (chromium)
Yes, we should update the plugin to be more precise in the checks that it ...
6 years, 5 months ago (2014-07-10 06:07:11 UTC) #25
zerny-chromium
On 2014/07/10 06:07:11, Mads Ager (chromium) wrote: > Yes, we should update the plugin to ...
6 years, 5 months ago (2014-07-10 09:21:13 UTC) #26
mlamouri (slow - plz ping)
On 2014/07/09 18:49:31, junov wrote: > Author is not online. Reverting... I was in a ...
6 years, 5 months ago (2014-07-10 09:41:57 UTC) #27
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 5 months ago (2014-07-10 09:42:13 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/374623002/180001
6 years, 5 months ago (2014-07-10 09:42:54 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-10 10:49:49 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-10 11:58:49 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/15751)
6 years, 5 months ago (2014-07-10 11:58:50 UTC) #32
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 5 months ago (2014-07-10 17:14:39 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/374623002/180001
6 years, 5 months ago (2014-07-10 17:15:27 UTC) #34
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-10 17:19:18 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-10 17:22:21 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/15837)
6 years, 5 months ago (2014-07-10 17:22:25 UTC) #37
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 5 months ago (2014-07-11 09:06:24 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/374623002/200001
6 years, 5 months ago (2014-07-11 09:07:22 UTC) #39
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-11 10:20:15 UTC) #40
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-11 10:30:04 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/16013)
6 years, 5 months ago (2014-07-11 10:30:05 UTC) #42
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 5 months ago (2014-07-11 11:10:51 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/374623002/200001
6 years, 5 months ago (2014-07-11 11:11:56 UTC) #44
commit-bot: I haz the power
6 years, 5 months ago (2014-07-11 12:17:34 UTC) #45
Message was sent while issue was closed.
Change committed as 177933

Powered by Google App Engine
This is Rietveld 408576698