|
BatteryManager.getBattery(): gracefully bail on context-detached use.
Semi-blind fix for fuzzer-generated crash on accessing a BatteryManager
lacking an execution context.
Added a non-reproducing test to verify detached use, along with reducing
test duplication for similar tests.
R=jochen
BUG= 457010
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190031
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+20 lines, -55 lines) |
Patch |
|
A + |
LayoutTests/battery-status/detached-no-crash.html
|
View
|
1
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/battery-status/detached-no-crash-expected.txt
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
D |
LayoutTests/fast/dom/Window/Location/resources/set-location-after-close-new-window.html
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/dom/Window/Location/set-location-after-close.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
LayoutTests/fast/files/file-reader-detached-no-crash.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
D |
LayoutTests/fast/files/resources/file-reader-detached-no-crash-new-window.html
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
LayoutTests/gamepad/gamepad-detached-no-crash.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
D |
LayoutTests/gamepad/resources/gamepad-detached-no-crash-new-window.html
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
LayoutTests/http/tests/navigation/beacon-detached-no-crash.html
|
View
|
|
1 chunk |
+1 line, -1 line |
2 comments
|
Download
|
|
D |
LayoutTests/http/tests/navigation/resources/beacon-detached-no-crash-new-window.html
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/resources/window-postmessage-open-close.html
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
D |
LayoutTests/vibration/resources/vibration-detached-no-crash-new-window.html
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
LayoutTests/vibration/vibration-detached-no-crash.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
D |
LayoutTests/webaudio/resources/scriptprocessornode-detached-no-crash-new-window.html
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
LayoutTests/webaudio/scriptprocessornode-detached-no-crash.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/battery/BatteryManager.cpp
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
Total messages: 10 (3 generated)
|