| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 4 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions are | 7 * modification, are permitted provided that the following conditions are |
| 8 * met: | 8 * met: |
| 9 * | 9 * |
| 10 * * Redistributions of source code must retain the above copyright | 10 * * Redistributions of source code must retain the above copyright |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 registeredExtensions().append(extension); | 260 registeredExtensions().append(extension); |
| 261 } | 261 } |
| 262 | 262 |
| 263 void ScriptController::clearWindowProxy() | 263 void ScriptController::clearWindowProxy() |
| 264 { | 264 { |
| 265 // V8 binding expects ScriptController::clearWindowProxy only be called | 265 // V8 binding expects ScriptController::clearWindowProxy only be called |
| 266 // when a frame is loading a new page. This creates a new context for the ne
w page. | 266 // when a frame is loading a new page. This creates a new context for the ne
w page. |
| 267 m_windowProxyManager->clearForNavigation(); | 267 m_windowProxyManager->clearForNavigation(); |
| 268 } | 268 } |
| 269 | 269 |
| 270 void ScriptController::setCaptureCallStackForUncaughtExceptions(v8::Isolate* iso
late, bool value) | |
| 271 { | |
| 272 isolate->SetCaptureStackTraceForUncaughtExceptions(value, V8StackTrace::maxC
allStackSizeToCapture, stackTraceOptions); | |
| 273 } | |
| 274 | |
| 275 void ScriptController::collectIsolatedContexts(Vector<std::pair<ScriptState*, Se
curityOrigin*>>& result) | 270 void ScriptController::collectIsolatedContexts(Vector<std::pair<ScriptState*, Se
curityOrigin*>>& result) |
| 276 { | 271 { |
| 277 m_windowProxyManager->collectIsolatedContexts(result); | 272 m_windowProxyManager->collectIsolatedContexts(result); |
| 278 } | 273 } |
| 279 | 274 |
| 280 void ScriptController::updateDocument() | 275 void ScriptController::updateDocument() |
| 281 { | 276 { |
| 282 // For an uninitialized main window windowProxy, do not incur the cost of co
ntext initialization. | 277 // For an uninitialized main window windowProxy, do not incur the cost of co
ntext initialization. |
| 283 if (!m_windowProxyManager->mainWorldProxy()->isGlobalInitialized()) | 278 if (!m_windowProxyManager->mainWorldProxy()->isGlobalInitialized()) |
| 284 return; | 279 return; |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 for (size_t i = 0; i < resultArray->Length(); ++i) { | 437 for (size_t i = 0; i < resultArray->Length(); ++i) { |
| 443 v8::Local<v8::Value> value; | 438 v8::Local<v8::Value> value; |
| 444 if (!resultArray->Get(scriptState->context(), i).ToLocal(&value)) | 439 if (!resultArray->Get(scriptState->context(), i).ToLocal(&value)) |
| 445 return; | 440 return; |
| 446 results->append(value); | 441 results->append(value); |
| 447 } | 442 } |
| 448 } | 443 } |
| 449 } | 444 } |
| 450 | 445 |
| 451 } // namespace blink | 446 } // namespace blink |
| OLD | NEW |