Description was changed from ========== Introduce blink::Script ScriptLoader_2_Script BUG= ========== to ========== Introduce blink::Script This ...
3 years, 8 months ago
(2017-04-05 21:35:03 UTC)
#7
Description was changed from
==========
Introduce blink::Script
ScriptLoader_2_Script
BUG=
==========
to
==========
Introduce blink::Script
This CL introduces blink::Script and ClassicScript that correspond to
https://html.spec.whatwg.org/#concept-script and
https://html.spec.whatwg.org/#classic-script, respectively.
In preparation to support module scripts in ScriptController, this CL
makes ScriptController::executeScriptAndReturnValue() and its callers
to receive Script* instead of ScriptSourceCode, and moves the logic of
executeScriptAndReturnValue() to ClassicScript::runScript().
In the rest of this CL, we replace ScriptSourceCode with Script and
wrap ScriptSourceCode by ClassicScript where needed.
BUG=
==========
hiroshige
Description was changed from ========== Introduce blink::Script This CL introduces blink::Script and ClassicScript that correspond ...
3 years, 8 months ago
(2017-04-05 21:41:23 UTC)
#8
Description was changed from
==========
Introduce blink::Script
This CL introduces blink::Script and ClassicScript that correspond to
https://html.spec.whatwg.org/#concept-script and
https://html.spec.whatwg.org/#classic-script, respectively.
In preparation to support module scripts in ScriptController, this CL
makes ScriptController::executeScriptAndReturnValue() and its callers
to receive Script* instead of ScriptSourceCode, and moves the logic of
executeScriptAndReturnValue() to ClassicScript::runScript().
In the rest of this CL, we replace ScriptSourceCode with Script and
wrap ScriptSourceCode by ClassicScript where needed.
BUG=
==========
to
==========
Introduce blink::Script
This CL introduces blink::Script and ClassicScript that correspond to
https://html.spec.whatwg.org/#concept-script and
https://html.spec.whatwg.org/#classic-script, respectively.
In preparation to support module scripts in ScriptController, this CL
makes ScriptController::executeScriptAndReturnValue() and its callers
to receive Script* instead of ScriptSourceCode, and moves the logic of
executeScriptAndReturnValue() to ClassicScript::runScript().
In ScriptLoader::doExecuteScript(), this CL makes MIME type checks and
AccessControlStatus calculation only for classic scripts, because they are
done in different places for module scripts.
In the rest of this CL, we replace ScriptSourceCode with Script and
wrap ScriptSourceCode by ClassicScript where needed.
Although this CL makes ScriptController and ScriptLoader to handle
blink::Script, currently module scripts are not actually processed by them
because all callsites supply ClassicScript, and thus this CL shouldn't
change the behavior.
BUG=
==========
Description was changed from ========== Introduce blink::Script This CL introduces blink::Script and ClassicScript that correspond ...
3 years, 8 months ago
(2017-04-05 23:03:45 UTC)
#12
Description was changed from
==========
Introduce blink::Script
This CL introduces blink::Script and ClassicScript that correspond to
https://html.spec.whatwg.org/#concept-script and
https://html.spec.whatwg.org/#classic-script, respectively.
In preparation to support module scripts in ScriptController, this CL
makes ScriptController::executeScriptAndReturnValue() and its callers
to receive Script* instead of ScriptSourceCode, and moves the logic of
executeScriptAndReturnValue() to ClassicScript::runScript().
In ScriptLoader::doExecuteScript(), this CL makes MIME type checks and
AccessControlStatus calculation only for classic scripts, because they are
done in different places for module scripts.
In the rest of this CL, we replace ScriptSourceCode with Script and
wrap ScriptSourceCode by ClassicScript where needed.
Although this CL makes ScriptController and ScriptLoader to handle
blink::Script, currently module scripts are not actually processed by them
because all callsites supply ClassicScript, and thus this CL shouldn't
change the behavior.
BUG=
==========
to
==========
Introduce blink::Script
This CL introduces blink::Script and ClassicScript that correspond to
https://html.spec.whatwg.org/#concept-script and
https://html.spec.whatwg.org/#classic-script, respectively.
In preparation to support module scripts in ScriptController, this CL
makes ScriptController::executeScriptAndReturnValue() and its callers
to receive Script* instead of ScriptSourceCode, and moves the logic of
executeScriptAndReturnValue() to ClassicScript::runScript().
In ScriptLoader::doExecuteScript(), this CL makes MIME type checks and
AccessControlStatus calculation only for classic scripts, because they are
done in different places for module scripts.
In the rest of this CL, we replace ScriptSourceCode with Script and
wrap ScriptSourceCode by ClassicScript where needed.
Although this CL makes ScriptController and ScriptLoader to handle
blink::Script, currently module scripts are not actually processed by them
because all callsites supply ClassicScript, and thus this CL shouldn't
change the behavior.
BUG=594639, 686281
==========
hiroshige
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-04-05 23:09:05 UTC)
#13
PTAL. I'm not so sure about the places of classes, especially ClassicScript (bindings/core/v8 i.e. the ...
3 years, 8 months ago
(2017-04-05 23:12:33 UTC)
#16
PTAL.
I'm not so sure about the places of classes, especially
ClassicScript (bindings/core/v8 i.e. the same directory as ScriptSourceCode or
core/dom i.e. the same as ModuleScript? currently I put ClassicScript to
ScriptSourceCode.h but I'll move it to a new file once the directory is
determined) and
Script::runScript() (it touches v8 things).
WDYT?
hiroshige
On 2017/04/05 23:12:33, hiroshige wrote: > PTAL. > > I'm not so sure about the ...
3 years, 8 months ago
(2017-04-06 00:34:55 UTC)
#17
On 2017/04/05 23:12:33, hiroshige wrote:
> PTAL.
>
> I'm not so sure about the places of classes, especially
> ClassicScript (bindings/core/v8 i.e. the same directory as ScriptSourceCode or
> core/dom i.e. the same as ModuleScript? currently I put ClassicScript to
> ScriptSourceCode.h but I'll move it to a new file once the directory is
> determined) and
> Script::runScript() (it touches v8 things).
> WDYT?
Discussed briefly with kouhei@ and I'll try to decouple bindings/ and core/.
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 8 months ago
(2017-04-06 01:02:07 UTC)
#18
I changed the code structure so that the execution goes core->bindings (ScriptLoader::doExecuteScript() -> Script::runScript() -> ...
3 years, 8 months ago
(2017-04-06 02:04:42 UTC)
#23
I changed the code structure so that the execution goes core->bindings
(ScriptLoader::doExecuteScript() -> Script::runScript() -> bindings/ including
ScriptController).
ScriptController will remain classic-script-only, and ModuleScript::runScript()
will be implemented using ScriptModule (via Modulator in kouhei's side), without
ScriptController.
Also I moved more classic-script-only logic from ScriptLoader to ClassicScript.
hiroshige
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-04-06 02:04:48 UTC)
#24
3 years, 8 months ago
(2017-04-06 05:33:33 UTC)
#29
Dry run: This issue passed the CQ dry run.
kouhei (in TOK)
Wow. I think this makes a lot of sense. Please update desc. https://codereview.chromium.org/2780463002/diff/200001/third_party/WebKit/Source/core/dom/ModuleScript.h File third_party/WebKit/Source/core/dom/ModuleScript.h ...
3 years, 8 months ago
(2017-04-06 09:42:35 UTC)
#30
Description was changed from ========== Introduce blink::Script This CL introduces blink::Script and ClassicScript that correspond ...
3 years, 8 months ago
(2017-04-06 17:36:18 UTC)
#33
Description was changed from
==========
Introduce blink::Script
This CL introduces blink::Script and ClassicScript that correspond to
https://html.spec.whatwg.org/#concept-script and
https://html.spec.whatwg.org/#classic-script, respectively.
In preparation to support module scripts in ScriptController, this CL
makes ScriptController::executeScriptAndReturnValue() and its callers
to receive Script* instead of ScriptSourceCode, and moves the logic of
executeScriptAndReturnValue() to ClassicScript::runScript().
In ScriptLoader::doExecuteScript(), this CL makes MIME type checks and
AccessControlStatus calculation only for classic scripts, because they are
done in different places for module scripts.
In the rest of this CL, we replace ScriptSourceCode with Script and
wrap ScriptSourceCode by ClassicScript where needed.
Although this CL makes ScriptController and ScriptLoader to handle
blink::Script, currently module scripts are not actually processed by them
because all callsites supply ClassicScript, and thus this CL shouldn't
change the behavior.
BUG=594639, 686281
==========
to
==========
Introduce blink::Script
This CL introduces blink::Script and ClassicScript that correspond to
https://html.spec.whatwg.org/#concept-script and
https://html.spec.whatwg.org/#classic-script, respectively.
This CL moves classic-script-only logic in ScriptLoader::doExecuteScript()
(AccessControlStatus and MIME type check) to ClassicScript.
In the rest of this CL, we replace ScriptSourceCode with Script and
wrap ScriptSourceCode by ClassicScript where needed.
Although this CL makes ScriptLoader to handle blink::Script, currently
module scripts are not actually processed because all the call sites supply
ClassicScript, and thus this CL shouldn't change the behavior.
BUG=594639, 686281
==========
hiroshige
https://codereview.chromium.org/2780463002/diff/200001/third_party/WebKit/Source/core/dom/ModuleScript.h File third_party/WebKit/Source/core/dom/ModuleScript.h (right): https://codereview.chromium.org/2780463002/diff/200001/third_party/WebKit/Source/core/dom/ModuleScript.h#newcode30 third_party/WebKit/Source/core/dom/ModuleScript.h:30: class CORE_EXPORT ModuleScript final : public Script, public TraceWrapperBase ...
3 years, 8 months ago
(2017-04-06 17:36:30 UTC)
#34
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/188624)
3 years, 8 months ago
(2017-04-06 18:59:33 UTC)
#38
Description was changed from ========== Introduce blink::Script This CL introduces blink::Script and ClassicScript that correspond ...
3 years, 8 months ago
(2017-04-10 20:55:23 UTC)
#50
Description was changed from
==========
Introduce blink::Script
This CL introduces blink::Script and ClassicScript that correspond to
https://html.spec.whatwg.org/#concept-script and
https://html.spec.whatwg.org/#classic-script, respectively.
This CL moves classic-script-only logic in ScriptLoader::doExecuteScript()
(AccessControlStatus and MIME type check) to ClassicScript.
In the rest of this CL, we replace ScriptSourceCode with Script and
wrap ScriptSourceCode by ClassicScript where needed.
Although this CL makes ScriptLoader to handle blink::Script, currently
module scripts are not actually processed because all the call sites supply
ClassicScript, and thus this CL shouldn't change the behavior.
BUG=594639, 686281
==========
to
==========
Introduce blink::Script
This CL introduces blink::Script and ClassicScript that correspond to
https://html.spec.whatwg.org/#concept-script and
https://html.spec.whatwg.org/#classic-script, respectively.
This CL moves classic-script-only logic in ScriptLoader::DoExecuteScript()
(AccessControlStatus and MIME type check) to ClassicScript.
In the rest of this CL, we replace ScriptSourceCode with Script and
wrap ScriptSourceCode by ClassicScript where needed.
Although this CL makes ScriptLoader to handle blink::Script, currently
module scripts are not actually processed because all the call sites supply
ClassicScript, and thus this CL shouldn't change the behavior.
BUG=594639, 686281
==========
hiroshige
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-04-10 21:30:27 UTC)
#51
Rebased after renaming. Could you take a look? Also, this CL introduces class Script, while ...
3 years, 8 months ago
(2017-04-10 22:36:03 UTC)
#55
Rebased after renaming. Could you take a look?
Also, this CL introduces class Script, while Blink has Script() methods (at
least 5 classes has Script() member function). Should we rename them to
GetScript() first?
Nate Chapin
LGTM. Agreed that it might be wise to rename Script->GetScript() first.
3 years, 8 months ago
(2017-04-10 23:48:15 UTC)
#56
LGTM. Agreed that it might be wise to rename Script->GetScript() first.
hiroshige
On 2017/04/10 23:48:15, Nate Chapin wrote: > LGTM. Agreed that it might be wise to ...
3 years, 8 months ago
(2017-04-11 00:54:56 UTC)
#57
On 2017/04/10 23:48:15, Nate Chapin wrote:
> LGTM. Agreed that it might be wise to rename Script->GetScript() first.
Created CLs renaming Script() to other names.
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 8 months ago
(2017-04-11 01:34:40 UTC)
#58
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/189520) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago
(2017-04-12 17:30:35 UTC)
#64
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 8 months ago
(2017-04-12 21:08:53 UTC)
#70
Prior attempt to commit was detected, but we were not able to check whether the
issue was successfully committed. Please check Git history manually and re-check
CQ or close this issue as needed.
hiroshige
The CQ bit was checked by hiroshige@chromium.org
3 years, 8 months ago
(2017-04-12 21:23:56 UTC)
#71
CQ is committing da patch. Bot data: {"patchset_id": 360001, "attempt_start_ts": 1492032236625360, "parent_rev": "ae8e1bba3b31aa540ad7684e75374d193946d4e2", "commit_rev": "7bd81a2cc4caff15e2d290591b2567a599fbe846"}
3 years, 8 months ago
(2017-04-12 21:49:15 UTC)
#73
CQ is committing da patch.
Bot data: {"patchset_id": 360001, "attempt_start_ts": 1492032236625360,
"parent_rev": "ae8e1bba3b31aa540ad7684e75374d193946d4e2", "commit_rev":
"7bd81a2cc4caff15e2d290591b2567a599fbe846"}
commit-bot: I haz the power
Description was changed from ========== Introduce blink::Script This CL introduces blink::Script and ClassicScript that correspond ...
3 years, 8 months ago
(2017-04-12 21:50:11 UTC)
#74
Message was sent while issue was closed.
Description was changed from
==========
Introduce blink::Script
This CL introduces blink::Script and ClassicScript that correspond to
https://html.spec.whatwg.org/#concept-script and
https://html.spec.whatwg.org/#classic-script, respectively.
This CL moves classic-script-only logic in ScriptLoader::DoExecuteScript()
(AccessControlStatus and MIME type check) to ClassicScript.
In the rest of this CL, we replace ScriptSourceCode with Script and
wrap ScriptSourceCode by ClassicScript where needed.
Although this CL makes ScriptLoader to handle blink::Script, currently
module scripts are not actually processed because all the call sites supply
ClassicScript, and thus this CL shouldn't change the behavior.
BUG=594639, 686281
==========
to
==========
Introduce blink::Script
This CL introduces blink::Script and ClassicScript that correspond to
https://html.spec.whatwg.org/#concept-script and
https://html.spec.whatwg.org/#classic-script, respectively.
This CL moves classic-script-only logic in ScriptLoader::DoExecuteScript()
(AccessControlStatus and MIME type check) to ClassicScript.
In the rest of this CL, we replace ScriptSourceCode with Script and
wrap ScriptSourceCode by ClassicScript where needed.
Although this CL makes ScriptLoader to handle blink::Script, currently
module scripts are not actually processed because all the call sites supply
ClassicScript, and thus this CL shouldn't change the behavior.
BUG=594639, 686281
Review-Url: https://codereview.chromium.org/2780463002
Cr-Commit-Position: refs/heads/master@{#464161}
Committed:
https://chromium.googlesource.com/chromium/src/+/7bd81a2cc4caff15e2d290591b25...
==========
commit-bot: I haz the power
Committed patchset #18 (id:360001) as https://chromium.googlesource.com/chromium/src/+/7bd81a2cc4caff15e2d290591b2567a599fbe846
3 years, 8 months ago
(2017-04-12 21:50:14 UTC)
#75
Issue 2780463002: Introduce blink::Script
(Closed)
Created 3 years, 8 months ago by hiroshige
Modified 3 years, 8 months ago
Reviewers: kouhei (in TOK), sof, Nate Chapin
Base URL:
Comments: 4