Title: [276446] trunk/Source/WebKit
- Revision
- 276446
- Author
- [email protected]
- Date
- 2021-04-22 11:00:50 -0700 (Thu, 22 Apr 2021)
Log Message
v2: Web Inspector: exempt API::SharedJSContext from remote inspection and automatic inspection
https://bugs.webkit.org/show_bug.cgi?id=224841
<rdar://69386559>
Reviewed by Devin Rousso.
Use the RemoteInspector C SPI to temporarily turn off "allow remote inspection by default".
* UIProcess/API/Cocoa/APISerializedScriptValueCocoa.mm:
(API::SharedJSContext::ensureContext):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (276445 => 276446)
--- trunk/Source/WebKit/ChangeLog 2021-04-22 17:12:25 UTC (rev 276445)
+++ trunk/Source/WebKit/ChangeLog 2021-04-22 18:00:50 UTC (rev 276446)
@@ -1,3 +1,16 @@
+2021-04-20 BJ Burg <[email protected]>
+
+ v2: Web Inspector: exempt API::SharedJSContext from remote inspection and automatic inspection
+ https://bugs.webkit.org/show_bug.cgi?id=224841
+ <rdar://69386559>
+
+ Reviewed by Devin Rousso.
+
+ Use the RemoteInspector C SPI to temporarily turn off "allow remote inspection by default".
+
+ * UIProcess/API/Cocoa/APISerializedScriptValueCocoa.mm:
+ (API::SharedJSContext::ensureContext):
+
2021-04-21 Wenson Hsieh <[email protected]>
[iOS] The Look Up text service popover should avoid covering selected text
Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/APISerializedScriptValueCocoa.mm (276445 => 276446)
--- trunk/Source/WebKit/UIProcess/API/Cocoa/APISerializedScriptValueCocoa.mm 2021-04-22 17:12:25 UTC (rev 276445)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/APISerializedScriptValueCocoa.mm 2021-04-22 18:00:50 UTC (rev 276446)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2015 Apple Inc. All rights reserved.
+ * Copyright (C) 2015, 2021 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -29,6 +29,7 @@
#import <_javascript_Core/APICast.h>
#import <_javascript_Core/JSContextPrivate.h>
#import <_javascript_Core/JSGlobalObjectInlines.h>
+#import <_javascript_Core/JSRemoteInspector.h>
#import <_javascript_Core/JSValue.h>
#import <wtf/NeverDestroyed.h>
#import <wtf/RunLoop.h>
@@ -45,8 +46,11 @@
JSContext* ensureContext()
{
if (!m_context) {
+ bool previous = JSRemoteInspectorGetInspectionEnabledByDefault();
+ JSRemoteInspectorSetInspectionEnabledByDefault(false);
m_context = adoptNS([[JSContext alloc] init]);
- [m_context _setRemoteInspectionEnabled:NO];
+ JSRemoteInspectorSetInspectionEnabledByDefault(previous);
+
m_timer.startOneShot(1_s);
}
return m_context.get();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes