diff --git a/browser_patches/webkit/patches/bootstrap.diff b/browser_patches/webkit/patches/bootstrap.diff index b17e54e1ea..271782725c 100644 --- a/browser_patches/webkit/patches/bootstrap.diff +++ b/browser_patches/webkit/patches/bootstrap.diff @@ -4600,8 +4600,21 @@ index 0000000000000000000000000000000000000000..7ed58e5755340cf1233831afd2841fc1 --- /dev/null +++ b/Source/WebKit/UIProcess/API/Cocoa/_WKBrowserInspector.h @@ -0,0 +1,33 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#import +#import @@ -4639,8 +4652,21 @@ index 0000000000000000000000000000000000000000..b0bdfb97e28f3c6f5a205ab8a9ae0d45 --- /dev/null +++ b/Source/WebKit/UIProcess/API/Cocoa/_WKBrowserInspector.mm @@ -0,0 +1,30 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "_WKBrowserInspector.h" @@ -4687,8 +4713,21 @@ index 0000000000000000000000000000000000000000..c21192686c92d516778dba23ab920802 --- /dev/null +++ b/Source/WebKit/UIProcess/API/glib/WebKitBrowserInspector.cpp @@ -0,0 +1,114 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "WebKitBrowserInspector.h" @@ -4807,8 +4846,21 @@ index 0000000000000000000000000000000000000000..ab6b7621d1024319f6568ebd164f22f8 --- /dev/null +++ b/Source/WebKit/UIProcess/API/glib/WebKitBrowserInspectorPrivate.h @@ -0,0 +1,9 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -4898,8 +4950,21 @@ index 0000000000000000000000000000000000000000..9bd1cd6c216ca24ee1a4b48da0602e67 --- /dev/null +++ b/Source/WebKit/UIProcess/API/gtk/WebKitBrowserInspector.h @@ -0,0 +1,57 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#if !defined(__WEBKIT2_H_INSIDE__) && !defined(WEBKIT2_COMPILATION) +#error "Only can be included directly." @@ -4973,8 +5038,21 @@ index 0000000000000000000000000000000000000000..11fde7598a3791335478f8072e1e3f14 --- /dev/null +++ b/Source/WebKit/UIProcess/API/wpe/WebKitBrowserInspector.h @@ -0,0 +1,54 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#if !defined(__WEBKIT_H_INSIDE__) && !defined(WEBKIT2_COMPILATION) +#error "Only can be included directly." @@ -5045,8 +5123,21 @@ index 0000000000000000000000000000000000000000..11040688e00c2dd522167824b4a2912c --- /dev/null +++ b/Source/WebKit/UIProcess/BrowserInspectorController.cpp @@ -0,0 +1,208 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "BrowserInspectorController.h" @@ -5259,8 +5350,21 @@ index 0000000000000000000000000000000000000000..3b0ac3fc7b63d772be95aba35a7d4cfe --- /dev/null +++ b/Source/WebKit/UIProcess/BrowserInspectorController.h @@ -0,0 +1,61 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -5326,8 +5430,21 @@ index 0000000000000000000000000000000000000000..46f05a2a45f4b8c3ecbdc2c606a74619 --- /dev/null +++ b/Source/WebKit/UIProcess/BrowserInspectorPipe.cpp @@ -0,0 +1,35 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "BrowserInspectorPipe.h" @@ -5367,8 +5484,21 @@ index 0000000000000000000000000000000000000000..ac0caaabaed9373e08c94954b853871c --- /dev/null +++ b/Source/WebKit/UIProcess/BrowserInspectorPipe.h @@ -0,0 +1,16 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -5389,8 +5519,21 @@ index 0000000000000000000000000000000000000000..51e2627159a743a77c38a1a7445becf9 --- /dev/null +++ b/Source/WebKit/UIProcess/BrowserInspectorTargetAgent.cpp @@ -0,0 +1,111 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "BrowserInspectorTargetAgent.h" @@ -5506,8 +5649,21 @@ index 0000000000000000000000000000000000000000..65ad2cf398700345fe1fc483e153ba3d --- /dev/null +++ b/Source/WebKit/UIProcess/BrowserInspectorTargetAgent.h @@ -0,0 +1,44 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -5735,8 +5891,21 @@ index 0000000000000000000000000000000000000000..0424d39ac80f5b5a85f99da4406edaa8 --- /dev/null +++ b/Source/WebKit/UIProcess/InspectorBrowserAgent.cpp @@ -0,0 +1,361 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "InspectorBrowserAgent.h" @@ -6102,8 +6271,21 @@ index 0000000000000000000000000000000000000000..1f2776965b9e070556d0861caad5935f --- /dev/null +++ b/Source/WebKit/UIProcess/InspectorBrowserAgent.h @@ -0,0 +1,77 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -6185,8 +6367,21 @@ index 0000000000000000000000000000000000000000..866db590d590db86d744434539bac4b5 --- /dev/null +++ b/Source/WebKit/UIProcess/InspectorBrowserAgentClient.h @@ -0,0 +1,33 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -6224,8 +6419,21 @@ index 0000000000000000000000000000000000000000..121b5969d4aae05423cca65d78880a0c --- /dev/null +++ b/Source/WebKit/UIProcess/InspectorDialogAgent.cpp @@ -0,0 +1,64 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "InspectorDialogAgent.h" @@ -6294,8 +6502,21 @@ index 0000000000000000000000000000000000000000..203c203a0e223a33c10c02db4b76f6dd --- /dev/null +++ b/Source/WebKit/UIProcess/InspectorDialogAgent.h @@ -0,0 +1,48 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -6467,8 +6688,21 @@ index 0000000000000000000000000000000000000000..a3a3bb02dcde291ddceb7ec8a2ae865e --- /dev/null +++ b/Source/WebKit/UIProcess/RemoteInspectorPipe.cpp @@ -0,0 +1,132 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "RemoteInspectorPipe.h" @@ -6605,8 +6839,21 @@ index 0000000000000000000000000000000000000000..426eb17d0129e5c269639636baec1ad3 --- /dev/null +++ b/Source/WebKit/UIProcess/RemoteInspectorPipe.h @@ -0,0 +1,43 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -6940,8 +7187,21 @@ index 0000000000000000000000000000000000000000..ca238991a6fed35f2b18d46735fbac72 --- /dev/null +++ b/Source/WebKit/UIProcess/WebPageInspectorEmulationAgent.cpp @@ -0,0 +1,63 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "WebPageInspectorEmulationAgent.h" @@ -7009,8 +7269,21 @@ index 0000000000000000000000000000000000000000..71b6e3788c64ae07ef1aeba972dd859d --- /dev/null +++ b/Source/WebKit/UIProcess/WebPageInspectorEmulationAgent.h @@ -0,0 +1,44 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -7059,8 +7332,21 @@ index 0000000000000000000000000000000000000000..f1ebdafbfa8571bc480d00c2869a1b25 --- /dev/null +++ b/Source/WebKit/UIProcess/WebPageInspectorInputAgent.cpp @@ -0,0 +1,245 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "WebPageInspectorInputAgent.h" @@ -7310,8 +7596,21 @@ index 0000000000000000000000000000000000000000..91edccac67b1efeff41ccdf922de3f03 --- /dev/null +++ b/Source/WebKit/UIProcess/WebPageInspectorInputAgent.h @@ -0,0 +1,56 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -7372,8 +7671,21 @@ index 0000000000000000000000000000000000000000..e63ce5c577c48fef022e911092fd1755 --- /dev/null +++ b/Source/WebKit/UIProcess/WebPageInspectorTargetProxy.cpp @@ -0,0 +1,112 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "WebPageInspectorTargetProxy.h" @@ -7490,8 +7802,21 @@ index 0000000000000000000000000000000000000000..033f936d9d3caf594b78bb6ad39249d6 --- /dev/null +++ b/Source/WebKit/UIProcess/WebPageInspectorTargetProxy.h @@ -0,0 +1,45 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -7795,8 +8120,21 @@ index 0000000000000000000000000000000000000000..e632fe864cbad952c3cc73ed9f241736 --- /dev/null +++ b/Source/WebKit/UIProcess/glib/InspectorBrowserAgentClientGLib.cpp @@ -0,0 +1,103 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "InspectorBrowserAgentClientGLib.h" @@ -7904,8 +8242,21 @@ index 0000000000000000000000000000000000000000..37a5e7ad390607668ff3f7eb7dba25e4 --- /dev/null +++ b/Source/WebKit/UIProcess/glib/InspectorBrowserAgentClientGLib.h @@ -0,0 +1,36 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -7946,8 +8297,21 @@ index 0000000000000000000000000000000000000000..6e1b2ab05623f187a16eeed78601fa12 --- /dev/null +++ b/Source/WebKit/UIProcess/gtk/WebPageInspectorEmulationAgentGtk.cpp @@ -0,0 +1,47 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "DrawingAreaProxyCoordinatedGraphics.h" @@ -7999,8 +8363,21 @@ index 0000000000000000000000000000000000000000..e9af79dad57ce75cd00799ccb0fc3c11 --- /dev/null +++ b/Source/WebKit/UIProcess/gtk/WebPageInspectorInputAgentGtk.cpp @@ -0,0 +1,85 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "WebPageInspectorInputAgent.h" @@ -8090,8 +8467,21 @@ index 0000000000000000000000000000000000000000..5805ee6fdf4fefc31af983dd402f5735 --- /dev/null +++ b/Source/WebKit/UIProcess/gtk/WebPageInspectorTargetProxyGtk.cpp @@ -0,0 +1,22 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "WebPageInspectorTargetProxy.h" @@ -8131,8 +8521,21 @@ index 0000000000000000000000000000000000000000..03aff71e9f98e9f10742102f16ed2126 --- /dev/null +++ b/Source/WebKit/UIProcess/mac/InspectorBrowserAgentClientMac.h @@ -0,0 +1,29 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#pragma once + @@ -8166,8 +8569,21 @@ index 0000000000000000000000000000000000000000..e3062b3651f3a42314650e5d5c448d18 --- /dev/null +++ b/Source/WebKit/UIProcess/mac/InspectorBrowserAgentClientMac.mm @@ -0,0 +1,54 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#import "config.h" +#import "InspectorBrowserAgentClientMac.h" @@ -8339,8 +8755,21 @@ index 0000000000000000000000000000000000000000..71d742789cbc6bcec05ca1e7051992f4 --- /dev/null +++ b/Source/WebKit/UIProcess/mac/WebPageInspectorEmulationAgentMac.mm @@ -0,0 +1,22 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#import "config.h" +#import "WebPageInspectorEmulationAgent.h" @@ -8367,8 +8796,21 @@ index 0000000000000000000000000000000000000000..08394ef65f304f373e922bade00b404c --- /dev/null +++ b/Source/WebKit/UIProcess/mac/WebPageInspectorInputAgentMac.mm @@ -0,0 +1,91 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#import "config.h" +#import "NativeWebMouseEvent.h" @@ -8464,8 +8906,21 @@ index 0000000000000000000000000000000000000000..2061f6d129bffbfab0dddbf2caf94870 --- /dev/null +++ b/Source/WebKit/UIProcess/mac/WebPageInspectorTargetProxyMac.mm @@ -0,0 +1,20 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#import "config.h" +#import "WebPageInspectorTargetProxy.h" @@ -8490,8 +8945,21 @@ index 0000000000000000000000000000000000000000..2fef19fd5ee354951c4c2fc06ff63f58 --- /dev/null +++ b/Source/WebKit/UIProcess/wpe/WebPageInspectorEmulationAgentWPE.cpp @@ -0,0 +1,18 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "WebPageInspectorEmulationAgent.h" @@ -8514,8 +8982,21 @@ index 0000000000000000000000000000000000000000..bbcba6f0a654dd317264408a2d275e60 --- /dev/null +++ b/Source/WebKit/UIProcess/wpe/WebPageInspectorInputAgentWPE.cpp @@ -0,0 +1,76 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "WebPageInspectorInputAgent.h" @@ -8596,8 +9077,21 @@ index 0000000000000000000000000000000000000000..74dace1cc7c96a039e2095d38da305be --- /dev/null +++ b/Source/WebKit/UIProcess/wpe/WebPageInspectorTargetProxyWPE.cpp @@ -0,0 +1,18 @@ -+// Copyright (c) Microsoft Corporation. -+// Licensed under the MIT license. ++/** ++ * Copyright (c) Microsoft Corporation. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ + +#include "config.h" +#include "WebPageInspectorTargetProxy.h" diff --git a/index.d.ts b/index.d.ts index 6e42281a77..79897e0a2a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export * from './lib/api'; export function playwright(browser: 'chromium'): import('./lib/api').ChromiumPlaywright; diff --git a/index.js b/index.js index 487bb083ad..df942e92aa 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ const {helper} = require('./lib/helper'); const api = require('./lib/api'); diff --git a/package.json b/package.json index d39eb86d8c..035cd4ed3a 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "author": { "name": "Microsoft Corporation" }, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { "debug": "^4.1.0", "extract-zip": "^1.6.6", diff --git a/src/accessibility.ts b/src/accessibility.ts index 8673c94f1f..26eaa866ea 100644 --- a/src/accessibility.ts +++ b/src/accessibility.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import * as dom from './dom'; export type SerializedAXNode = { diff --git a/src/api.ts b/src/api.ts index f792300d30..814327d090 100644 --- a/src/api.ts +++ b/src/api.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export { Browser, BrowserServer } from './browser'; export { BrowserContext } from './browserContext'; diff --git a/src/browser.ts b/src/browser.ts index 8f084d40ff..b3aa547db3 100644 --- a/src/browser.ts +++ b/src/browser.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { BrowserContext, BrowserContextOptions } from './browserContext'; import { ChildProcess } from 'child_process'; diff --git a/src/chromium/crApi.ts b/src/chromium/crApi.ts index a22a10b119..a0c3246448 100644 --- a/src/chromium/crApi.ts +++ b/src/chromium/crApi.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export { CRBrowser as ChromiumBrowser } from './crBrowser'; export { CRSession as ChromiumSession } from './crConnection'; diff --git a/src/console.ts b/src/console.ts index 90e8caf4c9..a5c660e1a5 100644 --- a/src/console.ts +++ b/src/console.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import * as js from './javascript'; diff --git a/src/dom.ts b/src/dom.ts index ae1d63d89a..188e5d6928 100644 --- a/src/dom.ts +++ b/src/dom.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import * as frames from './frames'; import * as input from './input'; diff --git a/src/firefox/ffApi.ts b/src/firefox/ffApi.ts index 6040ecd05d..ec6fb4d8b4 100644 --- a/src/firefox/ffApi.ts +++ b/src/firefox/ffApi.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export { FFBrowser as FirefoxBrowser } from './ffBrowser'; export { FFPlaywright as FirefoxPlaywright } from './ffPlaywright'; diff --git a/src/injected/cssSelectorEngine.ts b/src/injected/cssSelectorEngine.ts index 843b618c68..395fe8bb0c 100644 --- a/src/injected/cssSelectorEngine.ts +++ b/src/injected/cssSelectorEngine.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { SelectorEngine, SelectorRoot } from './selectorEngine'; diff --git a/src/injected/injected.ts b/src/injected/injected.ts index 663f0f5e42..e773a1a5e7 100644 --- a/src/injected/injected.ts +++ b/src/injected/injected.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { SelectorEngine, SelectorRoot } from './selectorEngine'; import { Utils } from './utils'; diff --git a/src/injected/injected.webpack.config.js b/src/injected/injected.webpack.config.js index 909af2ae2c..fb1f11cf88 100644 --- a/src/injected/injected.webpack.config.js +++ b/src/injected/injected.webpack.config.js @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ const path = require('path'); const InlineSource = require('./webpack-inline-source-plugin.js'); diff --git a/src/injected/selectorEngine.ts b/src/injected/selectorEngine.ts index 8a296bd373..e7dcf4329f 100644 --- a/src/injected/selectorEngine.ts +++ b/src/injected/selectorEngine.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export type SelectorType = 'default' | 'notext'; export type SelectorRoot = Element | ShadowRoot | Document; diff --git a/src/injected/utils.ts b/src/injected/utils.ts index 275618b2e5..18182d64b0 100644 --- a/src/injected/utils.ts +++ b/src/injected/utils.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export class Utils { parentElementOrShadowHost(element: Element): Element | undefined { diff --git a/src/injected/webpack-inline-source-plugin.js b/src/injected/webpack-inline-source-plugin.js index a2fc027f77..d587d732a8 100644 --- a/src/injected/webpack-inline-source-plugin.js +++ b/src/injected/webpack-inline-source-plugin.js @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ const fs = require('fs'); const path = require('path'); diff --git a/src/injected/xpathSelectorEngine.ts b/src/injected/xpathSelectorEngine.ts index 9a1e2d2ecd..3516a3d1d4 100644 --- a/src/injected/xpathSelectorEngine.ts +++ b/src/injected/xpathSelectorEngine.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { SelectorEngine, SelectorType, SelectorRoot } from './selectorEngine'; diff --git a/src/injected/zsSelectorEngine.ts b/src/injected/zsSelectorEngine.ts index f2d72dcf6e..cc08d01815 100644 --- a/src/injected/zsSelectorEngine.ts +++ b/src/injected/zsSelectorEngine.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { SelectorEngine, SelectorType, SelectorRoot } from './selectorEngine'; diff --git a/src/injected/zsSelectorEngine.webpack.config.js b/src/injected/zsSelectorEngine.webpack.config.js index cb2bbfa9c1..9a831076c7 100644 --- a/src/injected/zsSelectorEngine.webpack.config.js +++ b/src/injected/zsSelectorEngine.webpack.config.js @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ const path = require('path'); const InlineSource = require('./webpack-inline-source-plugin.js'); diff --git a/src/input.ts b/src/input.ts index 1001e8d279..a746a33742 100644 --- a/src/input.ts +++ b/src/input.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { assert } from './helper'; import * as types from './types'; diff --git a/src/javascript.ts b/src/javascript.ts index a1fcb00e73..2d09043a88 100644 --- a/src/javascript.ts +++ b/src/javascript.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import * as types from './types'; import * as dom from './dom'; diff --git a/src/network.ts b/src/network.ts index af0b84398e..c1416eb14c 100644 --- a/src/network.ts +++ b/src/network.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import * as frames from './frames'; import { assert } from './helper'; diff --git a/src/types.ts b/src/types.ts index 1949a14bb4..1c6751edd5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import * as js from './javascript'; import * as dom from './dom'; diff --git a/src/webkit/wkAccessibility.ts b/src/webkit/wkAccessibility.ts index 570ea9cf80..5879e9005e 100644 --- a/src/webkit/wkAccessibility.ts +++ b/src/webkit/wkAccessibility.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import * as accessibility from '../accessibility'; import { WKTargetSession } from './wkConnection'; import { Protocol } from './protocol'; diff --git a/src/webkit/wkApi.ts b/src/webkit/wkApi.ts index f004940d2e..0b0825c530 100644 --- a/src/webkit/wkApi.ts +++ b/src/webkit/wkApi.ts @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export { WKBrowser as WebKitBrowser } from './wkBrowser'; export { WKPlaywright as WebKitPlaywright } from './wkPlaywright'; diff --git a/test/chromium/browser.spec.js b/test/chromium/browser.spec.js index e97c7b7d09..9f33c74d89 100644 --- a/test/chromium/browser.spec.js +++ b/test/chromium/browser.spec.js @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ const path = require('path'); const {spawn, execSync} = require('child_process'); diff --git a/test/firefox/browser.spec.js b/test/firefox/browser.spec.js index b885a0789e..183b1847cc 100644 --- a/test/firefox/browser.spec.js +++ b/test/firefox/browser.spec.js @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ const path = require('path'); const {spawn, execSync} = require('child_process'); diff --git a/utils/runWebpack.js b/utils/runWebpack.js index 343da03b96..9de1a33a9f 100644 --- a/utils/runWebpack.js +++ b/utils/runWebpack.js @@ -1,5 +1,18 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ const child_process = require('child_process'); const path = require('path');