Changeset 234967 in webkit
- Timestamp:
- Aug 16, 2018 4:05:54 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r234957 r234967 1 2018-08-16 Alex Christensen <achristensen@webkit.org> 2 3 Remove unused allowScriptsToCloseWindows setting 4 https://bugs.webkit.org/show_bug.cgi?id=188602 5 6 Reviewed by Simon Fraser. 7 8 No change in behaviour. It was always false. 9 10 * page/DOMWindow.cpp: 11 (WebCore::DOMWindow::close): 12 * page/Settings.yaml: 13 1 14 2018-08-16 Ryosuke Niwa <rniwa@webkit.org> 2 15 -
trunk/Source/WebCore/page/DOMWindow.cpp
r234642 r234967 1087 1087 return; 1088 1088 1089 bool allowScriptsToCloseWindows = m_frame->settings().allowScriptsToCloseWindows(); 1090 1091 if (!(page->openedByDOM() || page->backForward().count() <= 1 || allowScriptsToCloseWindows)) { 1089 if (!(page->openedByDOM() || page->backForward().count() <= 1)) { 1092 1090 console()->addMessage(MessageSource::JS, MessageLevel::Warning, "Can't close the window since it was not opened by JavaScript"_s); 1093 1091 return; -
trunk/Source/WebCore/page/Settings.yaml
r234940 r234967 193 193 usesEncodingDetector: 194 194 initial: false 195 allowScriptsToCloseWindows:196 initial: false197 195 canvasUsesAcceleratedDrawing: 198 196 initial: false
Note: See TracChangeset
for help on using the changeset viewer.