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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2264723002: Fix int overflow in window.moveBy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/geometry/IntPoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index 9d187897bba7726a8781d4a1bbf023314fc471e8..c3ec30627a9a655e5b2d209797afe226849fa308 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -1233,7 +1233,7 @@ void LocalDOMWindow::moveBy(int x, int y) const
return;
IntRect windowRect = host->chromeClient().rootWindowRect();
- windowRect.move(x, y);
+ windowRect.saturatedMove(x, y);
// Security check (the spec talks about UniversalBrowserWrite to disable this check...)
host->chromeClient().setWindowRectWithAdjustment(windowRect, *frame());
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/geometry/IntPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698