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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2116563003: [DevTools] Report unhandled exceptions and promise rejections through Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after ExceptionDetails change Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 webCoreMessageLevel = LogMessageLevel; 759 webCoreMessageLevel = LogMessageLevel;
760 break; 760 break;
761 case WebConsoleMessage::LevelWarning: 761 case WebConsoleMessage::LevelWarning:
762 webCoreMessageLevel = WarningMessageLevel; 762 webCoreMessageLevel = WarningMessageLevel;
763 break; 763 break;
764 case WebConsoleMessage::LevelError: 764 case WebConsoleMessage::LevelError:
765 webCoreMessageLevel = ErrorMessageLevel; 765 webCoreMessageLevel = ErrorMessageLevel;
766 break; 766 break;
767 // Unsupported values. 767 // Unsupported values.
768 case WebConsoleMessage::LevelInfo: 768 case WebConsoleMessage::LevelInfo:
769 case WebConsoleMessage::LevelRevokedError:
770 break; 769 break;
771 } 770 }
772 771
773 frame()->document()->addConsoleMessage(ConsoleMessage::create(OtherMessageSo urce, webCoreMessageLevel, message.text, SourceLocation::create(message.url, mes sage.lineNumber, message.columnNumber, nullptr))); 772 frame()->document()->addConsoleMessage(ConsoleMessage::create(OtherMessageSo urce, webCoreMessageLevel, message.text, SourceLocation::create(message.url, mes sage.lineNumber, message.columnNumber, nullptr)));
774 } 773 }
775 774
776 void WebLocalFrameImpl::collectGarbage() 775 void WebLocalFrameImpl::collectGarbage()
777 { 776 {
778 if (!frame()) 777 if (!frame())
779 return; 778 return;
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
2143 { 2142 {
2144 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2143 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2145 } 2144 }
2146 2145
2147 void WebLocalFrameImpl::clearActiveFindMatch() 2146 void WebLocalFrameImpl::clearActiveFindMatch()
2148 { 2147 {
2149 ensureTextFinder().clearActiveFindMatch(); 2148 ensureTextFinder().clearActiveFindMatch();
2150 } 2149 }
2151 2150
2152 } // namespace blink 2151 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/public/V8Debugger.h ('k') | third_party/WebKit/public/web/WebConsoleMessage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698