WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
30781
noreferrer links currently suppress window.opener in origin frame incorrectly
https://bugs.webkit.org/show_bug.cgi?id=30781
Summary
noreferrer links currently suppress window.opener in origin frame incorrectly
Nate Chapin
Reported
2009-10-26 11:49:20 PDT
A noreferrer link should only suppress window.opener if the link is a <a rel="noreferrer" target="_blank">, and only in the new frame. I am incorrectly calling setOpener(0) for the original FrameLoader, causing window.opener to be nulled in the origin frame (which shouldn't happen in any case, even if we're opening a noreferrer link in the current frame).
Attachments
patch + updated layout test
(4.53 KB, patch)
2009-10-26 11:55 PDT
,
Nate Chapin
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Nate Chapin
Comment 1
2009-10-26 11:55:33 PDT
Created
attachment 41880
[details]
patch + updated layout test
Alexey Proskuryakov
Comment 2
2009-10-26 12:30:15 PDT
Comment on
attachment 41880
[details]
patch + updated layout test r=me It would help to have the reasons for this change documented here for posterity (the bug description says "should", but doesn't explain why - are we following the spec? other browser's behavior? fixing website compatibility? just pure common sense?). This change seems logical though.
Nate Chapin
Comment 3
2009-10-26 12:36:59 PDT
(In reply to
comment #2
)
> (From update of
attachment 41880
[details]
) > r=me > > It would help to have the reasons for this change documented here for posterity > (the bug description says "should", but doesn't explain why - are we following > the spec? other browser's behavior? fixing website compatibility? just pure > common sense?). This change seems logical though.
Certainly, sorry for not including that. After discussions with a couple of chromium folks that initially helped me realize something wasn't quite right, I posted to whatwg (
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-October/023800.html
) The spec (
http://www.whatwg.org/specs/web-apps/current-work/#link-type-noreferrer
) only states that opener should remain null when a noreferrer link is opened in a new browsing context. In the absence of specific instructions on what to do when opened in an existing context, I seem to have extrapolated incorrectly.
WebKit Commit Bot
Comment 4
2009-10-26 13:04:31 PDT
Comment on
attachment 41880
[details]
patch + updated layout test Rejecting patch 41880 from commit-queue. Failed to run "['git', 'svn', 'dcommit']" exit_code: 1 Committing to
http://svn.webkit.org/repository/webkit/trunk
... M LayoutTests/ChangeLog M LayoutTests/http/tests/navigation/no-referrer-reset-expected.txt M LayoutTests/http/tests/navigation/no-referrer-reset.html M WebCore/ChangeLog M WebCore/loader/FrameLoader.cpp Merge conflict during commit: MERGE request failed on '/repository/webkit/trunk': Conflict at '/trunk/WebCore/ChangeLog' at /usr/local/libexec/git-core//git-svn line 469
Eric Seidel (no email)
Comment 5
2009-10-26 13:41:52 PDT
Comment on
attachment 41880
[details]
patch + updated layout test bugzilla-tool has code to catch this type of error. That's not an expected error from git svn. Perhaps it was related the fact that svn.webkit.org went down right as/after this commit happened... Trying again.
WebKit Commit Bot
Comment 6
2009-10-26 13:45:41 PDT
Comment on
attachment 41880
[details]
patch + updated layout test Rejecting patch 41880 from commit-queue. Failed to run "WebKitTools/Scripts/build-webkit" exit_code: 1 Last 500 characters of output: l/Projects/build/WebCore.build/Release/WebCore.build/Script-5D0D540D0E9862F60029E223.sh Touch /Users/eseidel/Projects/build/Release/WebCore.framework cd /Users/eseidel/Projects/CommitQueue/WebCore /usr/bin/touch -c /Users/eseidel/Projects/build/Release/WebCore.framework ** BUILD FAILED ** The following build commands failed: Derived Sources: PhaseScriptExecution "/Users/eseidel/Projects/build/WebCore.build/Release/Derived Sources.build/Script-DD041FBD09D9DDBE0010AF2A.sh" (1 failure)
Eric Seidel (no email)
Comment 7
2009-10-26 13:48:09 PDT
Comment on
attachment 41880
[details]
patch + updated layout test Some cosmic power does not want this patch landed. Lets try again, this could be exciting! :)
WebKit Commit Bot
Comment 8
2009-10-26 14:02:23 PDT
Comment on
attachment 41880
[details]
patch + updated layout test Clearing flags on attachment: 41880 Committed
r50092
: <
http://trac.webkit.org/changeset/50092
>
WebKit Commit Bot
Comment 9
2009-10-26 14:02:29 PDT
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