Bug 160649

Summary: Node.baseURI should not be nullable
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, cdumez, commit-queue, darin, dbates, esprehn+autocc, kangil.han, kondapallykalyan, rniwa, sam
Priority: P2 Keywords: WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://dom.spec.whatwg.org/#dom-node-baseuri
Bug Depends on: 160660    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from ews102 for mac-yosemite
none
Archive of layout-test-results from ews107 for mac-yosemite-wk2
none
Archive of layout-test-results from ews125 for ios-simulator-wk2
none
Archive of layout-test-results from ews117 for mac-yosemite
none
Patch none

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.