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 43974
Geolocation requests in progress when the frame is disconnected should invoke the error callback
https://bugs.webkit.org/show_bug.cgi?id=43974
Summary
Geolocation requests in progress when the frame is disconnected should invoke...
Steve Block
Reported
2010-08-13 08:18:42 PDT
Currently, Geolocation::disconnectFrame() calls stopTimers() which prevents any future callbacks. This was added in
http://trac.webkit.org/changeset/59859
for
Bug 39388
to prevent callbacks after the script context has gone away. Instead, we should attempt to invoke the error callback for all ongoing requests. This is safe because we now make sure that the script context is still good before we make each callback, see
Bug 40162
.
Attachments
Patch
(12.92 KB, patch)
2010-08-13 08:46 PDT
,
Steve Block
no flags
Details
Formatted Diff
Diff
Patch
(12.97 KB, patch)
2010-08-16 02:37 PDT
,
Steve Block
ap
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Steve Block
Comment 1
2010-08-13 08:46:45 PDT
Created
attachment 64349
[details]
Patch
Steve Block
Comment 2
2010-08-16 02:37:39 PDT
Created
attachment 64481
[details]
Patch
Alexey Proskuryakov
Comment 3
2010-08-16 03:41:22 PDT
Comment on
attachment 64481
[details]
Patch
> Instead, we should attempt to invoke the error callback for all ongoing requests.
I think that this is a good change because it matches XMLHttpRequest (which dispatches an abort event when window is closed). But for posterity, it would be best to document why else we want this. Does any spec say so? + if (m_fatalError) + return; It might be helpful to add a comment explaining why the first error wins. r=me. The split js-test makes me sad.
Steve Block
Comment 4
2010-08-16 05:31:26 PDT
Committed
r65416
: <
http://trac.webkit.org/changeset/65416
>
Steve Block
Comment 5
2010-08-16 05:33:31 PDT
> I think that this is a good change because it matches XMLHttpRequest (which > dispatches an abort event when window is closed). But for posterity, it would > be best to document why else we want this. Does any spec say so?
No, the spec isn't specific to JavaScript or browsers so doesn't mention anything about Frames or windows.
> It might be helpful to add a comment explaining why the first error wins.
Done
WebKit Review Bot
Comment 6
2010-08-16 06:13:15 PDT
http://trac.webkit.org/changeset/65416
might have broken SnowLeopard Intel Release (Tests)
Steve Block
Comment 7
2010-08-16 12:13:16 PDT
Problems with fast/dom/Geolocation/disconnected-frame-permission-denied.html are being tracked in
Bug 44059
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