WebKit Bugzilla
Attachment 341075 Details for
Bug 185903
: Page keeps reloading when viewing photos in google drive (due to too high canvas memory limits)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
canvas-memory-limit-ios.patch (text/plain), 1.61 KB, created by
Antti Koivisto
on 2018-05-23 01:32:46 PDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Antti Koivisto
Created:
2018-05-23 01:32:46 PDT
Size:
1.61 KB
patch
obsolete
>Index: Source/WebCore/ChangeLog >=================================================================== >--- Source/WebCore/ChangeLog (revision 232107) >+++ Source/WebCore/ChangeLog (working copy) >@@ -1,3 +1,20 @@ >+2018-05-23 Antti Koivisto <antti@apple.com> >+ >+ Page keeps reloading when viewing photos in google drive (rapid memory growth by adding large <canvas> elements) >+ https://bugs.webkit.org/show_bug.cgi?id=185903 >+ <rdar://problem/38420562> >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ The canvas memory usage limits don't work on iOS since the current 2GB minimum limit is >+ larger than the maximum process size. >+ >+ * html/HTMLCanvasElement.cpp: >+ (WebCore::maxActivePixelMemory): >+ >+ Always base this on the reported ramSize() on iOS. Make it still fairly large to not risk breaking >+ any currently working content. In practice the limit computes to 448MB on device at the moment. >+ > 2018-05-22 Myles C. Maxfield <mmaxfield@apple.com> > > Text can wrap between hyphens and commas >Index: Source/WebCore/html/HTMLCanvasElement.cpp >=================================================================== >--- Source/WebCore/html/HTMLCanvasElement.cpp (revision 231847) >+++ Source/WebCore/html/HTMLCanvasElement.cpp (working copy) >@@ -196,7 +196,11 @@ static inline size_t maxActivePixelMemor > static size_t maxPixelMemory; > static std::once_flag onceFlag; > std::call_once(onceFlag, [] { >+#if PLATFORM(IOS) >+ maxPixelMemory = ramSize() / 2; >+#else > maxPixelMemory = std::max(ramSize() / 4, 2151 * MB); >+#endif > }); > return maxPixelMemory; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 185903
:
341075
|
341076
|
341082
|
341086
|
341089