Bug 160649 - Node.baseURI should not be nullable
Summary: Node.baseURI should not be nullable
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: https://dom.spec.whatwg.org/#dom-node...
Keywords: WebExposed
Depends on: 160660
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-07 15:39 PDT by Chris Dumez
Modified: 2016-08-08 09:44 PDT (History)
10 users (show)

See Also:


Attachments
Patch (15.56 KB, patch)
2016-08-07 15:44 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (15.37 KB, patch)
2016-08-07 17:29 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-yosemite (831.71 KB, application/zip)
2016-08-07 18:24 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (915.77 KB, application/zip)
2016-08-07 18:28 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews125 for ios-simulator-wk2 (680.37 KB, application/zip)
2016-08-07 18:34 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews117 for mac-yosemite (1.45 MB, application/zip)
2016-08-07 18:36 PDT, Build Bot
no flags Details
Patch (17.63 KB, patch)
2016-08-07 19:16 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2016-08-07 15:39:54 PDT
Node.baseURI should not be nullable as per the latest DOM specification:
- https://dom.spec.whatwg.org/#dom-node-baseuri

It is not nullable in Firefox. It is supposed to fallback to using the document's URL.
Comment 1 Chris Dumez 2016-08-07 15:44:56 PDT
Created attachment 285538 [details]
Patch
Comment 2 Darin Adler 2016-08-07 16:19:15 PDT
Comment on attachment 285538 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=285538&action=review

OK, but seems a little messy.

> Source/WebCore/dom/Node.h:165
> +    const URL& baseURI() const;
> +    const URL& baseURIForBindings() const;

What is the code that still needs to use the old Node::baseURI function? I don’t think we should be keeping it around.

> LayoutTests/imported/w3c/ChangeLog:13
> +        is still failing. We are failling back to using the document's URL, as expected.

typo: "failling"
Comment 3 Chris Dumez 2016-08-07 16:37:46 PDT
(In reply to comment #2)
> Comment on attachment 285538 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=285538&action=review
> 
> OK, but seems a little messy.
> 
> > Source/WebCore/dom/Node.h:165
> > +    const URL& baseURI() const;
> > +    const URL& baseURIForBindings() const;
> 
> What is the code that still needs to use the old Node::baseURI function? I
> don’t think we should be keeping it around.
> 
> > LayoutTests/imported/w3c/ChangeLog:13
> > +        is still failing. We are failling back to using the document's URL, as expected.
> 
> typo: "failling"

Ok, I see if I can make this a bit cleaner.
Comment 4 Chris Dumez 2016-08-07 17:29:24 PDT
Created attachment 285544 [details]
Patch
Comment 5 Build Bot 2016-08-07 18:24:38 PDT
Comment on attachment 285544 [details]
Patch

Attachment 285544 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/1831699

New failing tests:
fast/filter-image/filter-image-blur.html
Comment 6 Build Bot 2016-08-07 18:24:42 PDT
Created attachment 285549 [details]
Archive of layout-test-results from ews102 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 7 Build Bot 2016-08-07 18:28:41 PDT
Comment on attachment 285544 [details]
Patch

Attachment 285544 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1831703

New failing tests:
fast/filter-image/filter-image-blur.html
Comment 8 Build Bot 2016-08-07 18:28:45 PDT
Created attachment 285550 [details]
Archive of layout-test-results from ews107 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 9 Build Bot 2016-08-07 18:34:17 PDT
Comment on attachment 285544 [details]
Patch

Attachment 285544 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/1831702

New failing tests:
fast/filter-image/filter-image-blur.html
Comment 10 Build Bot 2016-08-07 18:34:21 PDT
Created attachment 285551 [details]
Archive of layout-test-results from ews125 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125  Port: ios-simulator-wk2  Platform: Mac OS X 10.11.5
Comment 11 Build Bot 2016-08-07 18:36:47 PDT
Comment on attachment 285544 [details]
Patch

Attachment 285544 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/1831704

New failing tests:
fast/filter-image/filter-image-blur.html
Comment 12 Build Bot 2016-08-07 18:36:51 PDT
Created attachment 285552 [details]
Archive of layout-test-results from ews117 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 13 Chris Dumez 2016-08-07 19:16:54 PDT
Created attachment 285554 [details]
Patch
Comment 14 WebKit Commit Bot 2016-08-07 19:49:25 PDT
Comment on attachment 285554 [details]
Patch

Clearing flags on attachment: 285554

Committed r204247: <http://trac.webkit.org/changeset/204247>
Comment 15 WebKit Commit Bot 2016-08-07 19:49:31 PDT
All reviewed patches have been landed.  Closing bug.