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
45214
Rename SecurityOrigin::canLoad to canDisplay
https://bugs.webkit.org/show_bug.cgi?id=45214
Summary
Rename SecurityOrigin::canLoad to canDisplay
Adam Barth
Reported
2010-09-03 16:24:00 PDT
Rename SecurityOrigin::canLoad to canDisplay
Attachments
Patch
(18.58 KB, patch)
2010-09-03 16:27 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch for landing
(17.16 KB, patch)
2010-09-05 23:41 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2010-09-03 16:27:51 PDT
Created
attachment 66563
[details]
Patch
Darin Adler
Comment 2
2010-09-03 16:41:24 PDT
Comment on
attachment 66563
[details]
Patch
> + // Returns true if |document| can dispaly content from the given URL (e.g.,
dispaly
> + // in an iframe or as an image). For example, web sites generally cannot > + // display content from the user's files system. If |document| is 0, > + // |referrer| is used to make this determination.
Are we going to have to go out into the alley and have a throw down over the two spaces vs. one space after period issue? ;-) In the programming world I am part of, the word "display" usually means "paint into a window", so I think the word display here is not perfect. Is there some terminology from the HTML5 specification or some other technical document that we can borrow here to find a phrase better than "display the contents"?
Adam Barth
Comment 3
2010-09-03 17:02:45 PDT
Thanks for the review.
> Are we going to have to go out into the alley and have a throw down over the two spaces vs. one space after period issue? ;-)
Sorry. Almost all the prose I write uses two-space indent. :(
> In the programming world I am part of, the word "display" usually means "paint into a window", so I think the word display here is not perfect. Is there some terminology from the HTML5 specification or some other technical document that we can borrow here to find a phrase better than "display the contents"?
canShow? canRender? My main beef with canLoad is that it's too similar to canRequest. Actually, "paint into a window" is pretty accurate here. For example, that's pretty much what the image element does with the URL...
Adam Barth
Comment 4
2010-09-05 23:41:57 PDT
Created
attachment 66614
[details]
Patch for landing
WebKit Commit Bot
Comment 5
2010-09-06 00:59:59 PDT
Comment on
attachment 66614
[details]
Patch for landing Clearing flags on attachment: 66614 Committed
r66815
: <
http://trac.webkit.org/changeset/66815
>
WebKit Commit Bot
Comment 6
2010-09-06 01:00:04 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