WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
102758
[Blackberry] When a frame is being detached, cancel all its network jobs.
https://bugs.webkit.org/show_bug.cgi?id=102758
Summary
[Blackberry] When a frame is being detached, cancel all its network jobs.
Chris.Guan
Reported
2012-11-19 19:20:53 PST
When a frame is being detached, cancel all its network jobs with exception of PingLoader. This is a follow-up of RIM PR134207. Each NetworkJob contains a pointer to Frame. The safety relies on the assumption that FrameLoader::stopAllLoaders() always cancels all network jobs that belongs to the frame (except PingLoader, for which we unlink the NetworkJob from the Frame, so it is safe). If one day that is no longer true, we are in trouble. We already maintain the full list of active NetworkJob in the NetworkManager skeleton. So it is easy to cancel all network jobs that link to the falling-down Frame if any, or clear their m_frame pointers... At least we should assert no such NetworkJob exists in debug build.
Attachments
Patch
(14.57 KB, patch)
2012-11-19 19:56 PST
,
Chris.Guan
no flags
Details
Formatted Diff
Diff
Patch
(14.58 KB, patch)
2012-11-19 20:02 PST
,
Chris.Guan
no flags
Details
Formatted Diff
Diff
Patch
(14.58 KB, patch)
2012-11-19 20:07 PST
,
Chris.Guan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris.Guan
Comment 1
2012-11-19 19:56:31 PST
Created
attachment 175120
[details]
Patch
WebKit Review Bot
Comment 2
2012-11-19 19:59:06 PST
Attachment 175120
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/ChangeLog:15: Line contains tab character. [whitespace/tab] [5] Source/WebCore/ChangeLog:16: Line contains tab character. [whitespace/tab] [5] Total errors found: 2 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
George Staikos
Comment 3
2012-11-19 20:02:17 PST
Comment on
attachment 175120
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=175120&action=review
I like this patch a lot. I don't think it's worth it to fix the typo in the commit log as a new round of changes.
> Source/WebCore/ChangeLog:8 > + I use FrameDestructionObserver to refatcor Networkjob code.
Typo here - refactor
George Staikos
Comment 4
2012-11-19 20:02:42 PST
(In reply to
comment #2
)
>
Attachment 175120
[details]
did not pass style-queue: > > Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 > Source/WebCore/ChangeLog:15: Line contains tab character. [whitespace/tab] [5] > Source/WebCore/ChangeLog:16: Line contains tab character. [whitespace/tab] [5] > Total errors found: 2 in 6 files > > > If any of these errors are false positives, please file a bug against check-webkit-style.
But you have to fix these. So you might as well fix the typo too
Chris.Guan
Comment 5
2012-11-19 20:02:54 PST
Created
attachment 175123
[details]
Patch
Chris.Guan
Comment 6
2012-11-19 20:07:03 PST
Created
attachment 175124
[details]
Patch
WebKit Review Bot
Comment 7
2012-11-19 20:55:54 PST
Comment on
attachment 175124
[details]
Patch Clearing flags on attachment: 175124 Committed
r135243
: <
http://trac.webkit.org/changeset/135243
>
WebKit Review Bot
Comment 8
2012-11-19 20:55:57 PST
All reviewed patches have been landed. Closing bug.
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