| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 WebSettings* settings = m_webView->settings(); | 237 WebSettings* settings = m_webView->settings(); |
| 238 // FIXME: http://crbug.com/363843. This needs to find a better way to | 238 // FIXME: http://crbug.com/363843. This needs to find a better way to |
| 239 // not create graphics layers. | 239 // not create graphics layers. |
| 240 settings->setAcceleratedCompositingEnabled(false); | 240 settings->setAcceleratedCompositingEnabled(false); |
| 241 // Currently we block all mixed-content requests from a ServiceWorker. | 241 // Currently we block all mixed-content requests from a ServiceWorker. |
| 242 // FIXME: When we support FetchEvent.default(), we should relax this | 242 // FIXME: When we support FetchEvent.default(), we should relax this |
| 243 // restriction. | 243 // restriction. |
| 244 settings->setStrictMixedContentChecking(true); | 244 settings->setStrictMixedContentChecking(true); |
| 245 settings->setAllowDisplayOfInsecureContent(false); | 245 settings->setAllowDisplayOfInsecureContent(false); |
| 246 settings->setAllowRunningOfInsecureContent(false); | 246 settings->setAllowRunningOfInsecureContent(false); |
| 247 settings->setDataSaverEnabled(m_workerStartData.dataSaverEnabled); |
| 247 m_mainFrame = toWebLocalFrameImpl(WebLocalFrame::create(WebTreeScopeType::Do
cument, this)); | 248 m_mainFrame = toWebLocalFrameImpl(WebLocalFrame::create(WebTreeScopeType::Do
cument, this)); |
| 248 m_webView->setMainFrame(m_mainFrame.get()); | 249 m_webView->setMainFrame(m_mainFrame.get()); |
| 249 m_mainFrame->setDevToolsAgentClient(this); | 250 m_mainFrame->setDevToolsAgentClient(this); |
| 250 | 251 |
| 251 // If we were asked to wait for debugger then it is the good time to do that
. | 252 // If we were asked to wait for debugger then it is the good time to do that
. |
| 252 m_workerContextClient->workerReadyForInspection(); | 253 m_workerContextClient->workerReadyForInspection(); |
| 253 if (m_workerStartData.waitForDebuggerMode == WebEmbeddedWorkerStartData::Wai
tForDebugger) { | 254 if (m_workerStartData.waitForDebuggerMode == WebEmbeddedWorkerStartData::Wai
tForDebugger) { |
| 254 m_waitingForDebuggerState = WaitingForDebugger; | 255 m_waitingForDebuggerState = WaitingForDebugger; |
| 255 return; | 256 return; |
| 256 } | 257 } |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 m_mainScriptLoader.clear(); | 375 m_mainScriptLoader.clear(); |
| 375 | 376 |
| 376 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *doc
ument, *m_workerContextClient); | 377 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *doc
ument, *m_workerContextClient); |
| 377 m_loaderProxy = WorkerLoaderProxy::create(this); | 378 m_loaderProxy = WorkerLoaderProxy::create(this); |
| 378 m_workerThread = ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalS
copeProxy); | 379 m_workerThread = ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalS
copeProxy); |
| 379 m_workerThread->start(startupData.release()); | 380 m_workerThread->start(startupData.release()); |
| 380 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(),
scriptURL); | 381 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(),
scriptURL); |
| 381 } | 382 } |
| 382 | 383 |
| 383 } // namespace blink | 384 } // namespace blink |
| OLD | NEW |