Bug 27437 - make HTMLAppletElement and HTMLEmbedElement compliant with de-facto JS-based standards under gobject bindings
Summary: make HTMLAppletElement and HTMLEmbedElement compliant with de-facto JS-based ...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-19 16:20 PDT by Luke Kenneth Casson Leighton
Modified: 2016-08-04 14:17 PDT (History)
1 user (show)

See Also:


Attachments
patch bringing language gobject bindings up on a par with its peers (de-facto standards compliant) wrt HTMLAppletElement and HTMLEmbedElement (3.09 KB, patch)
2009-07-19 16:28 PDT, Luke Kenneth Casson Leighton
mrowe: review-
Details | Formatted Diff | Diff
makes HTMLAppletElement and HTMLEmbedElement width and height DOMString except for Obj-C bindings (3.18 KB, patch)
2009-07-21 11:23 PDT, Luke Kenneth Casson Leighton
mrowe: review-
Details | Formatted Diff | Diff
corrects grammar, complies with precommit hook, adds correct date and name (3.27 KB, patch)
2009-07-23 06:33 PDT, Luke Kenneth Casson Leighton
mrowe: review-
Details | Formatted Diff | Diff
removes tabs, corrects date (3.28 KB, patch)
2009-07-23 14:32 PDT, Luke Kenneth Casson Leighton
mjs: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Kenneth Casson Leighton 2009-07-19 16:20:39 PDT
this is part of the series to split #16401 into smaller patches,
as part of an agreement recommended by david.

discussions are awaiting responses from the webkit reviewers on the issues raised by proposing that these two elements comply with de-facto JS-based standards rather than the strict W3C DOM standards.

twelve separate and distinct requests have been made to solicit responses, and all twelve requests have been ignored.  by raising this as a separate butreport, the requests for the discussions to continue which request that the research material be reviewed which show that it is only webkit that complies strictly with the W3C standards on these DOM elements.

as was shown by the XMLHTTPRequest discussions: when these matters come to the attention of other people, my suggestions are actually listened to and discussed reasonably.

i trust that such reasonable discussions will take place on this specific topic.
Comment 1 Luke Kenneth Casson Leighton 2009-07-19 16:28:44 PDT
Created attachment 33066 [details]
patch bringing language gobject bindings up on a par with its peers (de-facto standards compliant) wrt HTMLAppletElement and HTMLEmbedElement

the relevant research material begins here:

https://bugs.webkit.org/show_bug.cgi?id=16401#c121
Comment 2 Luke Kenneth Casson Leighton 2009-07-20 09:41:51 PDT
(In reply to comment #0)
> this is part of the series to split #16401 into smaller patches,
> as part of an agreement recommended by david.
> 
> discussions are awaiting responses from the webkit reviewers on the issues
> raised by proposing that these two elements comply with de-facto JS-based
> standards rather than the strict W3C DOM standards.

 please note: i would not dare to presume to say how the objective-c bindings
 should go, but as the lead developer of a project which, through its users,
 covers absolutely every corner of the DOM bindings, i have a responsibility
 to the users to ensure that the project is useable and useful, and that
 thus extends to its DOM bindings.

 for more insight into the differences between the use of gobject bindings,
 the javascript bindings and the objective-c bindings, see point 2) here:

 https://bugs.webkit.org/show_bug.cgi?id=16401#c218
Comment 3 Eric Seidel (no email) 2009-07-20 14:52:58 PDT
I think these should change to !objc instead.

I don't see why these would only be exposed to JS.
Comment 4 Mark Rowe (bdash) 2009-07-20 19:49:13 PDT
(In reply to comment #3)
> I think these should change to !objc instead.
> 
> I don't see why these would only be exposed to JS.

The members aren't *only* being exposed to JS.  They're being exposed with different types.  Your underlying point is correct though.  The HTML 5 specification marks HTMLEmbedElement's width and height attribute as a DOMString, so in theory all platforms should use the same type for these members.  In practice, Objective-C's DOM is API so they'll need to stay as the different type for sake of API compatibility.
Comment 5 Mark Rowe (bdash) 2009-07-20 19:50:12 PDT
Comment on attachment 33066 [details]
patch bringing language gobject bindings up on a par with its peers (de-facto standards compliant) wrt HTMLAppletElement and HTMLEmbedElement

Per comment 3 and comment 4, the current patch is not correct but the idea is good.  Please revise and resubmit.  Please also include a more useful ChangeLog entry.
Comment 6 Luke Kenneth Casson Leighton 2009-07-21 01:44:57 PDT
(In reply to comment #5)
> (From update of attachment 33066 [details])
> Per comment 3 and comment 4, the current patch is not correct but the idea is
> good.  Please revise and resubmit.  Please also include a more useful ChangeLog
> entry.

 ack will do.
Comment 7 Luke Kenneth Casson Leighton 2009-07-21 11:23:37 PDT
Created attachment 33192 [details]
makes HTMLAppletElement and HTMLEmbedElement width and height DOMString except for Obj-C bindings

is this better?
Comment 8 Mark Rowe (bdash) 2009-07-23 00:04:51 PDT
Comment on attachment 33192 [details]
makes HTMLAppletElement and HTMLEmbedElement width and height DOMString except for Obj-C bindings

> Index: WebCore/ChangeLog
> ===================================================================
> --- WebCore/ChangeLog	(revision 44473)
> +++ WebCore/ChangeLog	(working copy)
> @@ -62327,6 +62335,21 @@
>          (WebCore::PluginPackage::fetchInfo):
>          (WebCore::PluginPackage::isPluginBlacklisted):
>  
> +2008-11-30  lkcl <lkcl@lkcl.net>

Please put the correct date and your name here.

> +
> +        Reviewed by NOBODY (OOPS!)
> +
> +        https://bugs.webkit.org/show_bug.cgi?id=27437
> +
> +		Make width and height attributes DOMString except for
> +		LANGUAGE_OBJECTIVE_C due to API backwards-compatibility
> +		reasons.  HTML5 specification has HTMLAppletElement
> +		and HTMLEmbedElement width and height now marked as a
> +		DOMString.

You have a number of tabs here that our pre-commit hook will be unhappy with.

> +
> +        * html/HTMLAppletElement.idl: width and height attributes DOMString except for LANGUAGE_OBJECTIVE_C
> +        * html/HTMLEmbedElement.idl: width and height attributes DOMString except for LANGUAGE_OBJECTIVE_C

It'd be great if these sentences had correct grammar.

Please resubmit with an updated ChangeLog so that this can be landed.
Comment 9 Luke Kenneth Casson Leighton 2009-07-23 06:26:42 PDT
(In reply to comment #8)
> (From update of attachment 33192 [details])
> > Index: WebCore/ChangeLog
> > ===================================================================
> > --- WebCore/ChangeLog	(revision 44473)
> > +++ WebCore/ChangeLog	(working copy)
> > @@ -62327,6 +62335,21 @@
> >          (WebCore::PluginPackage::fetchInfo):
> >          (WebCore::PluginPackage::isPluginBlacklisted):
> >  
> > +2008-11-30  lkcl <lkcl@lkcl.net>
> 
> Please put the correct date and your name here.

 ack.

> > +
> > +        Reviewed by NOBODY (OOPS!)
> > +
> > +        https://bugs.webkit.org/show_bug.cgi?id=27437
> > +
> > +		Make width and height attributes DOMString except for
> > +		LANGUAGE_OBJECTIVE_C due to API backwards-compatibility
> > +		reasons.  HTML5 specification has HTMLAppletElement
> > +		and HTMLEmbedElement width and height now marked as a
> > +		DOMString.
> 
> You have a number of tabs here that our pre-commit hook will be unhappy with.

 ah, drat.  didn't know that.  did wonder why stuff was on one line.  duh.
 
> > +
> > +        * html/HTMLAppletElement.idl: width and height attributes DOMString except for LANGUAGE_OBJECTIVE_C
> > +        * html/HTMLEmbedElement.idl: width and height attributes DOMString except for LANGUAGE_OBJECTIVE_C
> 
> It'd be great if these sentences had correct grammar.

 *chortle* yes it would.
 
> Please resubmit with an updated ChangeLog so that this can be landed.

 ack.
Comment 10 Luke Kenneth Casson Leighton 2009-07-23 06:33:07 PDT
Created attachment 33328 [details]
corrects grammar, complies with precommit hook, adds correct date and name
Comment 11 Mark Rowe (bdash) 2009-07-23 09:58:57 PDT
Comment on attachment 33328 [details]
corrects grammar, complies with precommit hook, adds correct date and name

> Index: WebCore/ChangeLog
> ===================================================================
> --- WebCore/ChangeLog	(revision 44473)
> +++ WebCore/ChangeLog	(working copy)
> @@ -62327,6 +62347,17 @@
>          (WebCore::PluginPackage::fetchInfo):
>          (WebCore::PluginPackage::isPluginBlacklisted):
>  
> +2008-11-30  Luke Kenneth Casson Leighton <lkcl@lkcl.net>
> +
> +        Reviewed by NOBODY (OOPS!)
> +
> +        https://bugs.webkit.org/show_bug.cgi?id=27437
> +
> +		Make width and height attributes DOMString except for LANGUAGE_OBJECTIVE_C due to API backwards-compatibility reasons.  HTML5 specification has HTMLAppletElement and HTMLEmbedElement width and height now marked as a DOMString.
> +
> +        * html/HTMLAppletElement.idl: width and height attributes made to be DOMString except for LANGUAGE_OBJECTIVE_C where they are kept as long
> +        * html/HTMLEmbedElement.idl: width and height attributes made to be DOMString except for LANGUAGE_OBJECTIVE_C where they are kept as long
> +

It's no longer November 2008 and there are still tabs in your ChangeLog entry…  Can you please fix this minor issue so that this can be landed?
Comment 12 Luke Kenneth Casson Leighton 2009-07-23 14:32:50 PDT
Created attachment 33377 [details]
removes tabs, corrects date

damnit, so sorry, mark - the process of maintaining what is currently 15 separate patches is somewhat cumbersome.  your patience here is really appreciated.  s/^I/    /g got rid of stupid vim-auto-generated tabs.
Comment 13 Luke Kenneth Casson Leighton 2009-08-03 08:57:25 PDT
Comment on attachment 33377 [details]
removes tabs, corrects date

whoops, forgot to flick the review flag...
Comment 14 Eric Seidel (no email) 2009-08-06 19:03:50 PDT
Comment on attachment 33377 [details]
removes tabs, corrects date

Please get Mark Rowe to sign off on this patch.
Comment 15 Eric Seidel (no email) 2009-08-06 19:05:29 PDT
Comment on attachment 33377 [details]
removes tabs, corrects date

Please get Mark Rowe to sign off on this patch.
Comment 16 Maciej Stachowiak 2009-08-07 15:53:15 PDT
Comment on attachment 33377 [details]
removes tabs, corrects date

Luke, everything in this patch looks ok on the substance. The one problem I see is that the ChangeLog hunk is wrong - it has lines above the + lines. This will lead to the patch applying wrong. Please move the ChangeLog entry to the top of WebCore/ChangeLog and resubmit, then I will r+ this. Everything else looks fine. (r- for minor technicality).
Comment 17 Anders Carlsson 2016-08-04 14:17:41 PDT
No point in keeping this bug open.