RESOLVED FIXED 174386
NavigationAction should track whether the navigation was initiated by the main frame
https://bugs.webkit.org/show_bug.cgi?id=174386
Summary NavigationAction should track whether the navigation was initiated by the mai...
Daniel Bates
Reported 2017-07-11 13:38:49 PDT
Towards fixing bug #174385, we make NavigationAction actually track whether the navigation was initiated by the main frame.
Attachments
Patch (24.46 KB, patch)
2017-07-11 13:41 PDT, Daniel Bates
beidson: review+
Daniel Bates
Comment 1 2017-07-11 13:41:12 PDT
Radar WebKit Bug Importer
Comment 2 2017-07-11 13:44:16 PDT
Daniel Bates
Comment 3 2017-07-12 09:32:57 PDT
Comment on attachment 315157 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=315157&action=review > Source/WebCore/ChangeLog:9 > + initiated by the main frame in r219170 is not possible to initialize this state "is not" => "it is not" > Source/WebCore/ChangeLog:12 > + when asking the embedding client whether to allow a navigation. We will make us us => use > Source/WebCore/ChangeLog:13 > + of it in a subsequent commit. "in a subsequent commit" => "in the fix for <https://bugs.webkit.org/show_bug.cgi?id=174385>"
Brady Eidson
Comment 4 2017-07-12 09:38:39 PDT
Comment on attachment 315157 [details] Patch In some places in this patch you change names: e.g. m_navigationInitiatedByMainFrame becomes m_initiatedByMainFrame I'm not sure why when the type remains "NavigationInitiatedByMainFrame" I do think this flag of "initiated by main frame" has way more potential uses besides navigation, so the name changes actually kind of make sense. But please either change the typename as well, or leave the variable/method names for now.
Daniel Bates
Comment 5 2017-07-12 10:10:25 PDT
(In reply to Brady Eidson from comment #4) > Comment on attachment 315157 [details] > Patch > > In some places in this patch you change names: > e.g. m_navigationInitiatedByMainFrame becomes m_initiatedByMainFrame > > I'm not sure why when the type remains "NavigationInitiatedByMainFrame" > Filed bug #174427 to rename NavigationInitiatedByMainFrame to InitiatedByMainFrame.
Daniel Bates
Comment 6 2017-07-12 10:25:45 PDT
Daniel Bates
Comment 7 2017-07-12 11:02:30 PDT
Note You need to log in before you can comment on or make changes to this bug.