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 61326
fast/storage/storage-detached-iframe.html is crashing on chromium-linux
https://bugs.webkit.org/show_bug.cgi?id=61326
Summary
fast/storage/storage-detached-iframe.html is crashing on chromium-linux
Julien Chaffraix
Reported
2011-05-23 17:20:19 PDT
Follow up on
bug 57140
. I tried to find the cause of this problem but the backtrace does not help (see the previous bug for the EWS one). I suspect that it is an issue unrelated to the change that is making it fail as other platforms work fine (Qt/Linux + Mac).
Attachments
Patch
(3.97 KB, patch)
2012-01-02 08:15 PST
,
jochen
no flags
Details
Formatted Diff
Diff
Patch
(3.92 KB, patch)
2012-01-03 12:18 PST
,
jochen
no flags
Details
Formatted Diff
Diff
Patch
(3.93 KB, patch)
2012-01-03 12:31 PST
,
jochen
no flags
Details
Formatted Diff
Diff
Patch
(5.29 KB, patch)
2012-01-05 14:51 PST
,
jochen
no flags
Details
Formatted Diff
Diff
Patch
(5.86 KB, patch)
2012-01-05 15:23 PST
,
jochen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Justin Schuh
Comment 1
2011-05-23 19:05:40 PDT
Crashing on all Chromium platforms.
jochen
Comment 2
2012-01-02 08:15:44 PST
Created
attachment 120881
[details]
Patch
jochen
Comment 3
2012-01-02 08:16:32 PST
Darin, can you review please? Is my assumption correct that detached iframes don't have a webView?
Darin Fisher (:fishd, Google)
Comment 4
2012-01-03 12:11:48 PST
Comment on
attachment 120881
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=120881&action=review
> Source/WebKit/chromium/src/StorageAreaProxy.cpp:169 > {
it might be more canonical to add an early check to see if frame->page() is null, and then return if so.
jochen
Comment 5
2012-01-03 12:18:09 PST
Created
attachment 120978
[details]
Patch
WebKit Review Bot
Comment 6
2012-01-03 12:19:45 PST
Attachment 120978
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/update-webkit']" exit_code: 9 Updating OpenSource From git://git.webkit.org/WebKit 8e973cb..e1e2538 master -> origin/master Partial-rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc ... Currently at 103955 = 6aab0dafec68b43a47f81ab79d03001e05e99b64
r103949
= e1e2538cff7d320c2b7cc22c0b75c9369ce9cdb2 Done rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc A LayoutTests/svg/custom/webkit-transform-crash.html A LayoutTests/svg/custom/webkit-transform-crash-expected.txt M LayoutTests/ChangeLog M Source/WebCore/ChangeLog M Source/WebCore/svg/SVGStyledTransformableElement.cpp 103950 = 8282a1d85ad097ce4064a5896912bdb211b115e6 already exists! Why are we refetching it? at /usr/lib/git-core/git-svn line 5210 Died at Tools/Scripts/update-webkit line 158. If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 7
2012-01-03 12:23:17 PST
Comment on
attachment 120978
[details]
Patch
Attachment 120978
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/11084081
jochen
Comment 8
2012-01-03 12:31:48 PST
Created
attachment 120979
[details]
Patch
WebKit Review Bot
Comment 9
2012-01-03 12:38:41 PST
Attachment 120979
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/update-webkit']" exit_code: 9 Updating OpenSource Index mismatch: 3a7674dadd24ecd6a1b023eba203ecf2ed62fc59 != edb861612940a3244431d239dacdbc36317b627c rereading e1e2538cff7d320c2b7cc22c0b75c9369ce9cdb2 A LayoutTests/svg/custom/webkit-transform-crash.html A LayoutTests/svg/custom/webkit-transform-crash-expected.txt M LayoutTests/ChangeLog M Source/WebCore/ChangeLog M Source/WebCore/svg/SVGStyledTransformableElement.cpp 103950 = 8282a1d85ad097ce4064a5896912bdb211b115e6 already exists! Why are we refetching it? at /usr/lib/git-core/git-svn line 5210 Died at Tools/Scripts/update-webkit line 158. If any of these errors are false positives, please file a bug against check-webkit-style.
jochen
Comment 10
2012-01-05 05:33:31 PST
PTAL The style bot error is because of a problem with the bots checkout, unrelated to my CL
Adam Barth
Comment 11
2012-01-05 11:21:59 PST
Comment on
attachment 120979
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=120979&action=review
> Source/WebKit/chromium/src/StorageAreaProxy.cpp:171 > + return false;
Bad indent. I don't see where frame->page() is accessed in this function. Would it be better to null check something else? For example, maybe we should null-check the webView.
> LayoutTests/fast/storage/storage-detached-iframe.html:26 > + } catch (e) { > + // Throws an exception on chromium, and fails silently on other platforms. > + }
Should we make Chromium and other ports work the same?
jochen
Comment 12
2012-01-05 13:19:02 PST
(In reply to
comment #11
)
> (From update of
attachment 120979
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=120979&action=review
> > > Source/WebKit/chromium/src/StorageAreaProxy.cpp:171 > > + return false; > > Bad indent. I don't see where frame->page() is accessed in this function. Would it be better to null check something else? For example, maybe we should null-check the webView.
See Darin's comment. Basically, the fact that frame->page() is NULL is canonical for the frame being detached.
> > > LayoutTests/fast/storage/storage-detached-iframe.html:26 > > + } catch (e) { > > + // Throws an exception on chromium, and fails silently on other platforms. > > + } > > Should we make Chromium and other ports work the same?
Actually, other ports don't fail silently, but the access works for them :-/ We can't just allow access if there's no page. A possible work around would be to move permissionClient() from WebView to WebFrameClient, wdyt?
Adam Barth
Comment 13
2012-01-05 13:42:19 PST
(In reply to
comment #12
)
> (In reply to
comment #11
) > > (From update of
attachment 120979
[details]
[details]) > > View in context:
https://bugs.webkit.org/attachment.cgi?id=120979&action=review
> > > > > Source/WebKit/chromium/src/StorageAreaProxy.cpp:171 > > > + return false; > > > > Bad indent. I don't see where frame->page() is accessed in this function. Would it be better to null check something else? For example, maybe we should null-check the webView. > > See Darin's comment. > > Basically, the fact that frame->page() is NULL is canonical for the frame being detached.
Ok.
> > > LayoutTests/fast/storage/storage-detached-iframe.html:26 > > > + } catch (e) { > > > + // Throws an exception on chromium, and fails silently on other platforms. > > > + } > > > > Should we make Chromium and other ports work the same? > > Actually, other ports don't fail silently, but the access works for them :-/ > > We can't just allow access if there's no page. A possible work around would be to move permissionClient() from WebView to WebFrameClient, wdyt?
Hum... How do other browsers handle this case? We probably don't want any ports to allow access to local storage while detached.
jochen
Comment 14
2012-01-05 14:51:25 PST
Created
attachment 121334
[details]
Patch
Adam Barth
Comment 15
2012-01-05 15:06:52 PST
Comment on
attachment 121334
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=121334&action=review
> Source/WebKit/chromium/src/StorageAreaProxy.cpp:170 > + // Disallow all access to storage on detached frames.
I would skip these comments. They're redundant with the code.
> LayoutTests/fast/storage/storage-detached-iframe.html:24 > + } catch (e) {
Should we print a success message in this catch?
jochen
Comment 16
2012-01-05 15:23:05 PST
Created
attachment 121346
[details]
Patch
WebKit Review Bot
Comment 17
2012-01-05 17:33:03 PST
Comment on
attachment 121346
[details]
Patch Clearing flags on attachment: 121346 Committed
r104257
: <
http://trac.webkit.org/changeset/104257
>
WebKit Review Bot
Comment 18
2012-01-05 17:33:10 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