WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 220102
Use WeakHashSet<Page> instead of HashSet<Page*>
https://bugs.webkit.org/show_bug.cgi?id=220102
Summary
Use WeakHashSet<Page> instead of HashSet<Page*>
Alex Christensen
Reported
2020-12-22 13:30:53 PST
Use WeakHashSet<Page> instead of HashSet<Page*>
Attachments
Patch
(24.60 KB, patch)
2020-12-22 13:32 PST
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(24.60 KB, patch)
2021-01-05 10:07 PST
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2020-12-22 13:32:29 PST
Created
attachment 416687
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2020-12-29 13:31:12 PST
<
rdar://problem/72728030
>
Darin Adler
Comment 3
2021-01-02 14:38:30 PST
Comment on
attachment 416687
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=416687&action=review
> Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp:173 > + for (const auto& page : PageGroup::pageGroup(pageGroup->identifier())->pages())
Not sure we should have the const here. For one thing, changing the settings for a page doesn’t seem very "const".
> Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp:289 > + for (const auto& page : PageGroup::pageGroup(pageGroup->identifier())->pages())
Ditto.
> Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp:345 > + for (const auto& page : PageGroup::pageGroup(pageGroup->identifier())->pages()) { > + for (const auto* frame = &page.mainFrame(); frame; frame = frame->tree().traverseNext()) {
Could omit const here too.
Alex Christensen
Comment 4
2021-01-05 10:07:58 PST
Created
attachment 417016
[details]
Patch
Alex Christensen
Comment 5
2021-01-05 10:16:17 PST
http://trac.webkit.org/r271153
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug