Changeset 247688 in webkit
- Timestamp:
- Jul 22, 2019 11:05:16 AM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 47 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r247681 r247688 1 2019-07-22 Simon Fraser <simon.fraser@apple.com> 2 3 Make some constructors explicit 4 https://bugs.webkit.org/show_bug.cgi?id=199981 5 6 Reviewed by Daniel Bates. 7 8 Make explicit public constructors of objects that take POD or String& arguments, 9 to reduce the changes of the compiler doing implicit conversions. 10 11 * Modules/indexeddb/server/IndexValueEntry.h: 12 * Modules/indexeddb/server/IndexValueStore.h: 13 * Modules/indexeddb/shared/IDBDatabaseInfo.h: 14 * Modules/webdatabase/ChangeVersionData.h: 15 (WebCore::ChangeVersionData::ChangeVersionData): 16 * Modules/webdatabase/OriginLock.h: 17 * Modules/websockets/WebSocketExtensionParser.h: 18 (WebCore::WebSocketExtensionParser::WebSocketExtensionParser): 19 * bindings/js/ScriptCachedFrameData.h: 20 * contentextensions/URLFilterParser.cpp: 21 (WebCore::ContentExtensions::PatternParser::PatternParser): 22 * css/parser/CSSTokenizer.h: 23 * css/parser/SizesAttributeParser.h: 24 * dom/SpaceSplitString.cpp: 25 (WebCore::TokenIsEqualToCStringTokenProcessor::TokenIsEqualToCStringTokenProcessor): 26 * html/FormController.cpp: 27 (WebCore::SavedFormState::appendControlState): 28 (WebCore::SavedFormState::takeControlState): 29 * loader/ProgressTracker.cpp: 30 (WebCore::ProgressItem::ProgressItem): 31 * page/DragController.cpp: 32 (WebCore::DragController::DragController): 33 (WebCore::DragController::performDragOperation): 34 * page/DragController.h: 35 * page/animation/CSSPropertyAnimation.cpp: 36 (WebCore::AnimationPropertyWrapperBase::AnimationPropertyWrapperBase): 37 * page/ios/DOMTimerHoldingTank.h: 38 (WebCore::DeferDOMTimersForScope::DeferDOMTimersForScope): 39 * platform/CountedUserActivity.h: 40 (WebCore::CountedUserActivity::CountedUserActivity): 41 * platform/audio/DirectConvolver.h: 42 * platform/audio/DownSampler.h: 43 * platform/audio/DynamicsCompressorKernel.h: 44 * platform/audio/EqualPowerPanner.h: 45 * platform/audio/MultiChannelResampler.h: 46 * platform/audio/ReverbAccumulationBuffer.h: 47 * platform/audio/ReverbInputBuffer.h: 48 * platform/audio/SincResampler.cpp: 49 * platform/audio/UpSampler.h: 50 * platform/audio/ios/AudioFileReaderIOS.h: 51 * platform/audio/mac/AudioFileReaderMac.h: 52 * platform/audio/mac/AudioSessionMac.cpp: 53 (WebCore::AudioSessionPrivate::AudioSessionPrivate): 54 * platform/cf/KeyedDecoderCF.h: 55 * platform/graphics/WidthIterator.cpp: 56 (WebCore::OriginalAdvancesForCharacterTreatedAsSpace::OriginalAdvancesForCharacterTreatedAsSpace): 57 * platform/graphics/cocoa/FontCacheCoreText.h: 58 (WebCore::SynthesisPair::SynthesisPair): 59 * platform/graphics/displaylists/DisplayListItems.h: 60 (WebCore::DisplayList::DrawingItem::DrawingItem): 61 * platform/network/cf/ResourceRequest.h: 62 (WebCore::ResourceRequest::ResourceRequest): 63 * platform/text/TextCodecICU.h: 64 * rendering/RenderTableSection.h: 65 (WebCore::CellSpan::CellSpan): 66 * rendering/shapes/RasterShape.cpp: 67 * rendering/shapes/RasterShape.h: 68 (WebCore::RasterShapeIntervals::RasterShapeIntervals): 69 * testing/MockLibWebRTCPeerConnection.h: 70 (WebCore::MockLibWebRTCIceCandidate::MockLibWebRTCIceCandidate): 71 1 72 2019-07-22 Rob Buis <rbuis@igalia.com> 2 73 -
trunk/Source/WebCore/Modules/indexeddb/server/IndexValueEntry.h
r241183 r247688 41 41 WTF_MAKE_FAST_ALLOCATED; 42 42 public: 43 IndexValueEntry(bool unique);43 explicit IndexValueEntry(bool unique); 44 44 ~IndexValueEntry(); 45 45 -
trunk/Source/WebCore/Modules/indexeddb/server/IndexValueStore.h
r241183 r247688 48 48 WTF_MAKE_FAST_ALLOCATED; 49 49 public: 50 IndexValueStore(bool unique);50 explicit IndexValueStore(bool unique); 51 51 52 52 const IDBKeyData* lowestValueForKey(const IDBKeyData&) const; -
trunk/Source/WebCore/Modules/indexeddb/shared/IDBDatabaseInfo.h
r241183 r247688 36 36 WTF_MAKE_FAST_ALLOCATED; 37 37 public: 38 IDBDatabaseInfo(const String& name, uint64_t version);38 explicit IDBDatabaseInfo(const String& name, uint64_t version); 39 39 40 40 enum IsolatedCopyTag { IsolatedCopy }; -
trunk/Source/WebCore/Modules/webdatabase/ChangeVersionData.h
r208646 r247688 32 32 class ChangeVersionData { 33 33 public: 34 ChangeVersionData(String oldVersion, String newVersion)34 explicit ChangeVersionData(String oldVersion, String newVersion) 35 35 : m_oldVersion(oldVersion), m_newVersion(newVersion) { } 36 36 -
trunk/Source/WebCore/Modules/webdatabase/OriginLock.h
r240437 r247688 36 36 WTF_MAKE_NONCOPYABLE(OriginLock); WTF_MAKE_FAST_ALLOCATED; 37 37 public: 38 OriginLock(String originPath);38 explicit OriginLock(String originPath); 39 39 WEBCORE_EXPORT ~OriginLock(); 40 40 -
trunk/Source/WebCore/Modules/websockets/WebSocketExtensionParser.h
r220250 r247688 39 39 class WebSocketExtensionParser { 40 40 public: 41 WebSocketExtensionParser(const char* start, const char* end)41 explicit WebSocketExtensionParser(const char* start, const char* end) 42 42 : m_current(start) 43 43 , m_end(end) -
trunk/Source/WebCore/PAL/ChangeLog
r247674 r247688 1 2019-07-22 Simon Fraser <simon.fraser@apple.com> 2 3 Make some constructors explicit 4 https://bugs.webkit.org/show_bug.cgi?id=199981 5 6 Reviewed by Daniel Bates. 7 8 Make explicit public constructors of objects that take POD or String& arguments, 9 to reduce the changes of the compiler doing implicit conversions. 10 11 * pal/system/cocoa/SleepDisablerCocoa.cpp: 12 (PAL::SleepDisablerCocoa::SleepDisablerCocoa): 13 * pal/system/cocoa/SleepDisablerCocoa.h: 14 1 15 2019-07-21 Myles C. Maxfield <mmaxfield@apple.com> 2 16 -
trunk/Source/WebCore/PAL/pal/system/cocoa/SleepDisablerCocoa.cpp
r220759 r247688 41 41 SleepDisablerCocoa::SleepDisablerCocoa(const char* reason, Type type) 42 42 : SleepDisabler(reason, type) 43 , m_sleepAssertion(0)44 43 { 45 44 RetainPtr<CFStringRef> reasonCF = adoptCF(CFStringCreateWithCString(kCFAllocatorDefault, reason, kCFStringEncodingUTF8)); -
trunk/Source/WebCore/PAL/pal/system/cocoa/SleepDisablerCocoa.h
r220759 r247688 34 34 class SleepDisablerCocoa : public SleepDisabler { 35 35 public: 36 SleepDisablerCocoa(const char*, Type);36 explicit SleepDisablerCocoa(const char*, Type); 37 37 virtual ~SleepDisablerCocoa(); 38 38 39 39 private: 40 uint32_t m_sleepAssertion ;40 uint32_t m_sleepAssertion { 0 }; 41 41 }; 42 42 -
trunk/Source/WebCore/bindings/js/ScriptCachedFrameData.h
r228218 r247688 44 44 WTF_MAKE_NONCOPYABLE(ScriptCachedFrameData); WTF_MAKE_FAST_ALLOCATED; 45 45 public: 46 ScriptCachedFrameData(Frame&);46 explicit ScriptCachedFrameData(Frame&); 47 47 ~ScriptCachedFrameData(); 48 48 -
trunk/Source/WebCore/contentextensions/URLFilterParser.cpp
r241316 r247688 41 41 class PatternParser { 42 42 public: 43 PatternParser(bool patternIsCaseSensitive)43 explicit PatternParser(bool patternIsCaseSensitive) 44 44 : m_patternIsCaseSensitive(patternIsCaseSensitive) 45 45 , m_parseStatus(URLFilterParser::Ok) -
trunk/Source/WebCore/css/parser/CSSTokenizer.h
r209826 r247688 46 46 WTF_MAKE_FAST_ALLOCATED; 47 47 public: 48 CSSTokenizer(const String&);48 explicit CSSTokenizer(const String&); 49 49 CSSTokenizer(const String&, CSSParserObserverWrapper&); // For the inspector 50 50 -
trunk/Source/WebCore/css/parser/SizesAttributeParser.h
r218588 r247688 42 42 class SizesAttributeParser { 43 43 public: 44 SizesAttributeParser(const String&, const Document&);44 explicit SizesAttributeParser(const String&, const Document&); 45 45 46 46 float length(); -
trunk/Source/WebCore/dom/SpaceSplitString.cpp
r246490 r247688 104 104 class TokenIsEqualToCStringTokenProcessor { 105 105 public: 106 TokenIsEqualToCStringTokenProcessor(const char* referenceString, unsigned referenceStringLength)106 explicit TokenIsEqualToCStringTokenProcessor(const char* referenceString, unsigned referenceStringLength) 107 107 : m_referenceString(referenceString) 108 108 , m_referenceStringLength(referenceStringLength) -
trunk/Source/WebCore/html/FormController.cpp
r246636 r247688 80 80 class FormElementKey { 81 81 public: 82 FormElementKey(AtomStringImpl* = 0, AtomStringImpl* = 0);82 explicit FormElementKey(AtomStringImpl* = nullptr, AtomStringImpl* = nullptr); 83 83 ~FormElementKey(); 84 84 FormElementKey(const FormElementKey&); … … 230 230 void SavedFormState::appendControlState(const AtomString& name, const AtomString& type, const FormControlState& state) 231 231 { 232 m_stateForNewFormElements.add( { name.impl(), type.impl() }, Deque<FormControlState> { }).iterator->value.append(state);232 m_stateForNewFormElements.add(FormElementKey { name.impl(), type.impl() }, Deque<FormControlState> { }).iterator->value.append(state); 233 233 ++m_controlStateCount; 234 234 } … … 236 236 FormControlState SavedFormState::takeControlState(const AtomString& name, const AtomString& type) 237 237 { 238 auto iterator = m_stateForNewFormElements.find( { name.impl(), type.impl() });238 auto iterator = m_stateForNewFormElements.find(FormElementKey { name.impl(), type.impl() }); 239 239 if (iterator == m_stateForNewFormElements.end()) 240 240 return { }; -
trunk/Source/WebCore/loader/ProgressTracker.cpp
r239457 r247688 66 66 WTF_MAKE_NONCOPYABLE(ProgressItem); WTF_MAKE_FAST_ALLOCATED; 67 67 public: 68 ProgressItem(long long length)68 explicit ProgressItem(long long length) 69 69 : bytesReceived(0) 70 70 , estimatedLength(length) -
trunk/Source/WebCore/page/DragController.cpp
r247416 r247688 136 136 : m_page(page) 137 137 , m_client(client) 138 , m_numberOfItemsToBeAccepted(0)139 , m_dragHandlingMethod(DragHandlingMethod::None)140 , m_dragDestinationAction(DragDestinationActionNone)141 , m_dragSourceAction(DragSourceActionNone)142 , m_didInitiateDrag(false)143 , m_sourceDragOperation(DragOperationNone)144 138 { 145 139 } … … 285 279 286 280 m_client.willPerformDragDestinationAction(DragDestinationActionLoad, dragData); 287 FrameLoadRequest frameLoadRequest { m_page.mainFrame(), { urlString }, shouldOpenExternalURLsPolicy };281 FrameLoadRequest frameLoadRequest { m_page.mainFrame(), ResourceRequest { urlString }, shouldOpenExternalURLsPolicy }; 288 282 frameLoadRequest.setIsRequestFromClientOrUserInput(); 289 283 m_page.mainFrame().loader().load(WTFMove(frameLoadRequest)); -
trunk/Source/WebCore/page/DragController.h
r239039 r247688 143 143 RefPtr<Document> m_dragInitiator; // The Document (if any) that initiated the drag. 144 144 RefPtr<HTMLInputElement> m_fileInputElementUnderMouse; 145 unsigned m_numberOfItemsToBeAccepted ;145 unsigned m_numberOfItemsToBeAccepted { 0 }; 146 146 DragHandlingMethod m_dragHandlingMethod { DragHandlingMethod::None }; 147 147 148 DragDestinationAction m_dragDestinationAction ;149 DragSourceAction m_dragSourceAction ;150 bool m_didInitiateDrag ;151 DragOperation m_sourceDragOperation ; // Set in startDrag when a drag starts from a mouse down within WebKit148 DragDestinationAction m_dragDestinationAction { DragDestinationActionNone }; 149 DragSourceAction m_dragSourceAction { DragSourceActionNone }; 150 bool m_didInitiateDrag { false }; 151 DragOperation m_sourceDragOperation { DragOperationNone }; // Set in startDrag when a drag starts from a mouse down within WebKit 152 152 IntPoint m_dragOffset; 153 153 URL m_draggingImageURL; -
trunk/Source/WebCore/page/animation/CSSPropertyAnimation.cpp
r239535 r247688 439 439 WTF_MAKE_FAST_ALLOCATED; 440 440 public: 441 AnimationPropertyWrapperBase(CSSPropertyID prop)441 explicit AnimationPropertyWrapperBase(CSSPropertyID prop) 442 442 : m_prop(prop) 443 443 { -
trunk/Source/WebCore/page/ios/DOMTimerHoldingTank.h
r247530 r247688 54 54 class DeferDOMTimersForScope { 55 55 public: 56 DeferDOMTimersForScope(bool enable)56 explicit DeferDOMTimersForScope(bool enable) 57 57 : m_previousIsDeferring { s_isDeferring } 58 58 { -
trunk/Source/WebCore/platform/CountedUserActivity.h
r164916 r247688 33 33 class CountedUserActivity { 34 34 public: 35 CountedUserActivity(const char* description)35 explicit CountedUserActivity(const char* description) 36 36 : m_activity(description) 37 , m_count(0)38 37 { 39 38 } … … 53 52 private: 54 53 UserActivity m_activity; 55 size_t m_count ;54 size_t m_count { 0 }; 56 55 }; 57 56 -
trunk/Source/WebCore/platform/audio/DirectConvolver.h
r172431 r247688 36 36 class DirectConvolver { 37 37 public: 38 DirectConvolver(size_t inputBlockSize);38 explicit DirectConvolver(size_t inputBlockSize); 39 39 40 40 void process(AudioFloatArray* convolutionKernel, const float* sourceP, float* destP, size_t framesToProcess); -
trunk/Source/WebCore/platform/audio/DownSampler.h
r241183 r247688 40 40 WTF_MAKE_FAST_ALLOCATED; 41 41 public: 42 DownSampler(size_t inputBlockSize);42 explicit DownSampler(size_t inputBlockSize); 43 43 44 44 // The destination buffer |destP| is of size sourceFramesToProcess / 2. -
trunk/Source/WebCore/platform/audio/DynamicsCompressorKernel.h
r218799 r247688 38 38 class DynamicsCompressorKernel { 39 39 public: 40 DynamicsCompressorKernel(float sampleRate, unsigned numberOfChannels);40 explicit DynamicsCompressorKernel(float sampleRate, unsigned numberOfChannels); 41 41 42 42 void setNumberOfChannels(unsigned); -
trunk/Source/WebCore/platform/audio/EqualPowerPanner.h
r197563 r247688 34 34 class EqualPowerPanner : public Panner { 35 35 public: 36 EqualPowerPanner(float sampleRate);36 explicit EqualPowerPanner(float sampleRate); 37 37 38 38 void pan(double azimuth, double elevation, const AudioBus* inputBus, AudioBus* outputBuf, size_t framesToProcess) override; -
trunk/Source/WebCore/platform/audio/MultiChannelResampler.h
r241183 r247688 41 41 WTF_MAKE_FAST_ALLOCATED; 42 42 public: 43 MultiChannelResampler(double scaleFactor, unsigned numberOfChannels);43 explicit MultiChannelResampler(double scaleFactor, unsigned numberOfChannels); 44 44 45 45 // Process given AudioSourceProvider for streaming applications. -
trunk/Source/WebCore/platform/audio/ReverbAccumulationBuffer.h
r165676 r247688 39 39 class ReverbAccumulationBuffer { 40 40 public: 41 ReverbAccumulationBuffer(size_t length);41 explicit ReverbAccumulationBuffer(size_t length); 42 42 43 43 // This will read from, then clear-out numberOfFrames -
trunk/Source/WebCore/platform/audio/ReverbInputBuffer.h
r165676 r247688 37 37 class ReverbInputBuffer { 38 38 public: 39 ReverbInputBuffer(size_t length);39 explicit ReverbInputBuffer(size_t length); 40 40 41 41 // The realtime audio thread keeps writing samples here. -
trunk/Source/WebCore/platform/audio/SincResampler.cpp
r239535 r247688 147 147 class BufferSourceProvider : public AudioSourceProvider { 148 148 public: 149 BufferSourceProvider(const float* source, size_t numberOfSourceFrames)149 explicit BufferSourceProvider(const float* source, size_t numberOfSourceFrames) 150 150 : m_source(source) 151 151 , m_sourceFramesAvailable(numberOfSourceFrames) -
trunk/Source/WebCore/platform/audio/UpSampler.h
r241183 r247688 40 40 WTF_MAKE_FAST_ALLOCATED; 41 41 public: 42 UpSampler(size_t inputBlockSize);42 explicit UpSampler(size_t inputBlockSize); 43 43 44 44 // The destination buffer |destP| is of size sourceFramesToProcess * 2. -
trunk/Source/WebCore/platform/audio/ios/AudioFileReaderIOS.h
r237266 r247688 44 44 class AudioFileReader { 45 45 public: 46 AudioFileReader(const char* filePath);47 AudioFileReader(const void* data, size_t dataSize);46 explicit AudioFileReader(const char* filePath); 47 explicit AudioFileReader(const void* data, size_t dataSize); 48 48 ~AudioFileReader(); 49 49 -
trunk/Source/WebCore/platform/audio/mac/AudioFileReaderMac.h
r216679 r247688 42 42 class AudioFileReader { 43 43 public: 44 AudioFileReader(const char* filePath);45 AudioFileReader(const void* data, size_t dataSize);44 explicit AudioFileReader(const char* filePath); 45 explicit AudioFileReader(const void* data, size_t dataSize); 46 46 ~AudioFileReader(); 47 47 -
trunk/Source/WebCore/platform/audio/mac/AudioSessionMac.cpp
r244223 r247688 56 56 WTF_MAKE_FAST_ALLOCATED; 57 57 public: 58 AudioSessionPrivate(bool mutedState)58 explicit AudioSessionPrivate(bool mutedState) 59 59 : lastMutedState(mutedState) { } 60 60 bool lastMutedState; -
trunk/Source/WebCore/platform/cf/KeyedDecoderCF.h
r235673 r247688 35 35 class KeyedDecoderCF final : public KeyedDecoder { 36 36 public: 37 KeyedDecoderCF(const uint8_t* data, size_t);37 explicit KeyedDecoderCF(const uint8_t* data, size_t); 38 38 ~KeyedDecoderCF() override; 39 39 -
trunk/Source/WebCore/platform/graphics/WidthIterator.cpp
r247102 r247688 66 66 struct OriginalAdvancesForCharacterTreatedAsSpace { 67 67 public: 68 OriginalAdvancesForCharacterTreatedAsSpace(bool isSpace, float advanceBefore, float advanceAt)68 explicit OriginalAdvancesForCharacterTreatedAsSpace(bool isSpace, float advanceBefore, float advanceAt) 69 69 : characterIsSpace(isSpace) 70 70 , advanceBeforeCharacter(advanceBefore) -
trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.h
r247377 r247688 36 36 37 37 struct SynthesisPair { 38 SynthesisPair(bool needsSyntheticBold, bool needsSyntheticOblique)38 explicit SynthesisPair(bool needsSyntheticBold, bool needsSyntheticOblique) 39 39 : needsSyntheticBold(needsSyntheticBold) 40 40 , needsSyntheticOblique(needsSyntheticOblique) -
trunk/Source/WebCore/platform/graphics/displaylists/DisplayListItems.h
r239427 r247688 163 163 class DrawingItem : public Item { 164 164 public: 165 DrawingItem(ItemType type)165 explicit DrawingItem(ItemType type) 166 166 : Item(type) 167 167 { -
trunk/Source/WebCore/platform/network/cf/ResourceRequest.h
r237266 r247688 42 42 class ResourceRequest : public ResourceRequestBase { 43 43 public: 44 ResourceRequest(const String& url)44 explicit ResourceRequest(const String& url) 45 45 : ResourceRequestBase(URL({ }, url), ResourceRequestCachePolicy::UseProtocolCachePolicy) 46 46 { -
trunk/Source/WebCore/platform/text/TextCodecICU.h
r241183 r247688 36 36 class TextCodecICU : public TextCodec { 37 37 public: 38 TextCodecICU(const char* encoding, const char* canonicalConverterName);38 explicit TextCodecICU(const char* encoding, const char* canonicalConverterName); 39 39 virtual ~TextCodecICU(); 40 40 -
trunk/Source/WebCore/rendering/RenderTableSection.h
r239427 r247688 43 43 struct CellSpan { 44 44 public: 45 CellSpan(unsigned start, unsigned end)45 explicit CellSpan(unsigned start, unsigned end) 46 46 : start(start) 47 47 , end(end) -
trunk/Source/WebCore/rendering/shapes/RasterShape.cpp
r172357 r247688 37 37 class MarginIntervalGenerator { 38 38 public: 39 MarginIntervalGenerator(unsigned radius);39 explicit MarginIntervalGenerator(unsigned radius); 40 40 void set(int y, const IntShapeInterval&); 41 41 IntShapeInterval intervalAt(int y) const; -
trunk/Source/WebCore/rendering/shapes/RasterShape.h
r208668 r247688 41 41 WTF_MAKE_FAST_ALLOCATED; 42 42 public: 43 RasterShapeIntervals(unsigned size, int offset = 0)43 explicit RasterShapeIntervals(unsigned size, int offset = 0) 44 44 : m_offset(offset) 45 45 { -
trunk/Source/WebCore/testing/MockLibWebRTCPeerConnection.h
r239030 r247688 113 113 class MockLibWebRTCIceCandidate : public webrtc::IceCandidateInterface { 114 114 public: 115 MockLibWebRTCIceCandidate(const char* sdp, const char* sdpMid)115 explicit MockLibWebRTCIceCandidate(const char* sdp, const char* sdpMid) 116 116 : m_sdp(sdp) 117 117 , m_sdpMid(sdpMid) { } -
trunk/Source/WebKit/ChangeLog
r247687 r247688 1 2019-07-22 Simon Fraser <simon.fraser@apple.com> 2 3 Make some constructors explicit 4 https://bugs.webkit.org/show_bug.cgi?id=199981 5 6 Reviewed by Daniel Bates. 7 8 Make explicit public constructors of objects that take POD or String& arguments, 9 to reduce the changes of the compiler doing implicit conversions. 10 11 * Platform/Module.h: 12 * WebProcess/WebPage/WebInspector.cpp: 13 (WebKit::WebInspector::openInNewTab): 14 1 15 2019-07-22 Daniel Bates <dabates@apple.com> 2 16 -
trunk/Source/WebKit/Platform/Module.h
r242325 r247688 47 47 WTF_MAKE_NONCOPYABLE(Module); 48 48 public: 49 Module(const String& path);49 explicit Module(const String& path); 50 50 ~Module(); 51 51 -
trunk/Source/WebKit/WebProcess/WebPage/WebInspector.cpp
r247662 r247688 168 168 169 169 Frame& inspectedMainFrame = inspectedPage->mainFrame(); 170 FrameLoadRequest frameLoadRequest { *inspectedMainFrame.document(), inspectedMainFrame.document()->securityOrigin(), { urlString }, "_blank"_s, LockHistory::No, LockBackForwardList::No, MaybeSendReferrer, AllowNavigationToInvalidURL::Yes, NewFrameOpenerPolicy::Allow, ShouldOpenExternalURLsPolicy::ShouldNotAllow, InitiatedByMainFrame::Unknown };170 FrameLoadRequest frameLoadRequest { *inspectedMainFrame.document(), inspectedMainFrame.document()->securityOrigin(), ResourceRequest { urlString }, "_blank"_s, LockHistory::No, LockBackForwardList::No, MaybeSendReferrer, AllowNavigationToInvalidURL::Yes, NewFrameOpenerPolicy::Allow, ShouldOpenExternalURLsPolicy::ShouldNotAllow, InitiatedByMainFrame::Unknown }; 171 171 172 172 NavigationAction action { *inspectedMainFrame.document(), frameLoadRequest.resourceRequest(), frameLoadRequest.initiatedByMainFrame(), NavigationType::LinkClicked };
Note: See TracChangeset
for help on using the changeset viewer.